From 5dcfed2d51726b97f25dcecb925ef46c969c8ad7 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Wed, 19 Jun 2024 18:54:26 +0800 Subject: [PATCH 01/36] feat:[TS-4921]add logic for slow log --- include/common/tglobal.h | 3 + include/common/tmsg.h | 21 +- include/libs/catalog/catalog.h | 2 +- include/libs/monitor/clientMonitor.h | 35 +- include/libs/monitor/monitor.h | 2 +- include/os/osFile.h | 3 + source/client/inc/clientInt.h | 14 +- source/client/src/clientEnv.c | 110 +++- source/client/src/clientHb.c | 11 +- source/client/src/clientImpl.c | 23 +- source/client/src/clientMain.c | 5 +- source/client/src/clientMonitor.c | 616 ++++++++++++++++++ ...slowQueryMonitor.c => clientMonitorSlow.c} | 29 +- ...{clientSqlMonitor.c => clientMonitorSql.c} | 29 +- source/client/src/clientMsgHandler.c | 14 +- source/client/src/clientSml.c | 2 +- source/client/test/clientMonitorTests.cpp | 147 ++++- source/client/test/clientTests.cpp | 7 + source/common/src/tglobal.c | 131 ++-- source/common/src/tmsg.c | 39 +- source/common/test/commonTests.cpp | 114 ++++ source/dnode/mgmt/mgmt_dnode/src/dmHandle.c | 5 + source/dnode/mnode/impl/src/mndDnode.c | 197 +----- source/dnode/mnode/impl/src/mndProfile.c | 11 +- source/libs/catalog/inc/catalogInt.h | 2 +- source/libs/catalog/src/catalog.c | 2 +- source/libs/catalog/src/ctgUtil.c | 4 +- source/libs/monitor/src/clientMonitor.c | 210 ------ source/libs/monitor/src/monMain.c | 5 +- source/os/src/osEnv.c | 4 +- source/os/src/osFile.c | 8 +- 31 files changed, 1225 insertions(+), 580 deletions(-) create mode 100644 source/client/src/clientMonitor.c rename source/client/src/{slowQueryMonitor.c => clientMonitorSlow.c} (64%) rename source/client/src/{clientSqlMonitor.c => clientMonitorSql.c} (64%) delete mode 100644 source/libs/monitor/src/clientMonitor.c diff --git a/include/common/tglobal.h b/include/common/tglobal.h index 90ee6f7cc0..58dc8fb354 100644 --- a/include/common/tglobal.h +++ b/include/common/tglobal.h @@ -24,6 +24,7 @@ extern "C" { #endif +#define SLOW_LOG_TYPE_NULL 0x0 #define SLOW_LOG_TYPE_QUERY 0x1 #define SLOW_LOG_TYPE_INSERT 0x2 #define SLOW_LOG_TYPE_OTHERS 0x4 @@ -176,7 +177,9 @@ extern int32_t tsMaxRetryWaitTime; extern bool tsUseAdapter; extern int32_t tsMetaCacheMaxSize; extern int32_t tsSlowLogThreshold; +extern int32_t tsSlowLogThresholdTest; extern int32_t tsSlowLogScope; +extern int32_t tsSlowLogMaxLen; extern int32_t tsTimeSeriesThreshold; extern bool tsMultiResultFunctionStarReturnTags; diff --git a/include/common/tmsg.h b/include/common/tmsg.h index c840aef6cf..4907d2a643 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -652,6 +652,14 @@ void tFreeSSubmitRsp(SSubmitRsp* pRsp); #define SSCHMEA_BYTES(s) ((s)->bytes) #define SSCHMEA_NAME(s) ((s)->name) +typedef struct { + bool tsEnableMonitor; + int32_t tsMonitorInterval; + int32_t tsSlowLogThreshold; + int32_t tsSlowLogMaxLen; + int32_t tsSlowLogScope; +} SMonitorParas; + typedef struct { int32_t nCols; int32_t version; @@ -966,6 +974,7 @@ typedef struct { char sVer[TSDB_VERSION_LEN]; char sDetailVer[128]; int64_t whiteListVer; + SMonitorParas monitorParas; } SConnectRsp; int32_t tSerializeSConnectRsp(void* buf, int32_t bufLen, SConnectRsp* pRsp); @@ -1631,6 +1640,7 @@ typedef struct { int8_t enableWhiteList; int8_t encryptionKeyStat; uint32_t encryptionKeyChksum; + SMonitorParas monitorParas; } SClusterCfg; typedef struct { @@ -1722,9 +1732,15 @@ int32_t tSerializeSStatusReq(void* buf, int32_t bufLen, SStatusReq* pReq); int32_t tDeserializeSStatusReq(void* buf, int32_t bufLen, SStatusReq* pReq); void tFreeSStatusReq(SStatusReq* pReq); +typedef enum { + MONITOR_TYPE_COUNTER = 0, + MONITOR_TYPE_SLOW_LOG = 1, +} MONITOR_TYPE; + typedef struct { - int32_t contLen; - char* pCont; + int32_t contLen; + char* pCont; + MONITOR_TYPE type; } SStatisReq; int32_t tSerializeSStatisReq(void* buf, int32_t bufLen, SStatisReq* pReq); @@ -3254,6 +3270,7 @@ typedef struct { int64_t rspId; int32_t svrTimestamp; SArray* rsps; // SArray + SMonitorParas monitorParas; } SClientHbBatchRsp; static FORCE_INLINE uint32_t hbKeyHashFunc(const char* key, uint32_t keyLen) { return taosIntHash_64(key, keyLen); } diff --git a/include/libs/catalog/catalog.h b/include/libs/catalog/catalog.h index 90cc4ac157..3f1cf74cfa 100644 --- a/include/libs/catalog/catalog.h +++ b/include/libs/catalog/catalog.h @@ -206,7 +206,7 @@ int32_t catalogInit(SCatalogCfg* cfg); * @param catalogHandle (output, NO need to free it) * @return error code */ -int32_t catalogGetHandle(uint64_t clusterId, SCatalog** catalogHandle); +int32_t catalogGetHandle(int64_t clusterId, SCatalog** catalogHandle); int32_t catalogGetDBVgVersion(SCatalog* pCtg, const char* dbFName, int32_t* version, int64_t* dbId, int32_t* tableNum, int64_t* stateTs); diff --git a/include/libs/monitor/clientMonitor.h b/include/libs/monitor/clientMonitor.h index 9c0302a15f..dfe083b732 100644 --- a/include/libs/monitor/clientMonitor.h +++ b/include/libs/monitor/clientMonitor.h @@ -23,6 +23,7 @@ extern "C" { #include "taos_monitor.h" #include "thash.h" #include "query.h" +#include "tqueue.h" typedef enum SQL_RESULT_CODE { SQL_RESULT_SUCCESS = 0, @@ -30,23 +31,35 @@ typedef enum SQL_RESULT_CODE { SQL_RESULT_CANCEL = 2, } SQL_RESULT_CODE; -const char* resultStr(SQL_RESULT_CODE code); +#define SLOW_LOG_SEND_SIZE 1024*1024 +extern tsem2_t monitorSem; +extern STaosQueue* monitorQueue; typedef struct { - char clusterKey[512]; - SEpSet epSet; - void* pTransporter; + int64_t clusterId; taos_collector_registry_t* registry; taos_collector_t* colector; SHashObj* counters; -} ClientMonitor; +} MonitorClient; -void clusterMonitorInit(const char* clusterKey, SEpSet epSet, void* pTransporter); -void clusterMonitorClose(const char* clusterKey); -taos_counter_t* createClusterCounter(const char* clusterKey, const char* name, const char* help, size_t label_key_count, - const char** label_keys); -int taosClusterCounterInc(const char* clusterKey, const char* counterName, const char** label_values); -void cluster_monitor_stop(); +typedef struct { + int64_t clusterId; + char *value; +} MonitorSlowLogData; + +void monitorClose(); +void monitorInit(); +void monitorSendAllSlowLogFromTempDir(void* pInst); + +void monitorClientSQLReqInit(int64_t clusterKey); +void monitorClientSlowQueryInit(int64_t clusterId); +void monitorCreateClient(int64_t clusterId); +void monitorCreateClientCounter(int64_t clusterId, const char* name, const char* help, size_t label_key_count, const char** label_keys); +void monitorCounterInc(int64_t clusterId, const char* counterName, const char** label_values); +void* monitorThreadFunc(void *param); +void monitorFreeSlowLogData(MonitorSlowLogData* pData); +const char* monitorResultStr(SQL_RESULT_CODE code); +void monitorReadSendSlowLog(TdFilePtr pFile, void* pTransporter, SEpSet *epSet); #ifdef __cplusplus } diff --git a/include/libs/monitor/monitor.h b/include/libs/monitor/monitor.h index 256be26999..9d7878ecf7 100644 --- a/include/libs/monitor/monitor.h +++ b/include/libs/monitor/monitor.h @@ -227,7 +227,7 @@ void monSetSmInfo(SMonSmInfo *pInfo); void monSetBmInfo(SMonBmInfo *pInfo); void monGenAndSendReport(); void monGenAndSendReportBasic(); -void monSendContent(char *pCont); +void monSendContent(char *pCont, const char* uri); void tFreeSMonMmInfo(SMonMmInfo *pInfo); void tFreeSMonVmInfo(SMonVmInfo *pInfo); diff --git a/include/os/osFile.h b/include/os/osFile.h index 9c9027e931..4c56244278 100644 --- a/include/os/osFile.h +++ b/include/os/osFile.h @@ -72,6 +72,9 @@ TdFilePtr taosCreateFile(const char *path, int32_t tdFileOptions); #define TD_FILE_ACCESS_EXIST_OK 0x1 #define TD_FILE_ACCESS_READ_OK 0x2 #define TD_FILE_ACCESS_WRITE_OK 0x4 + +#define TD_TMP_FILE_PREFIX "tdengine-" + bool taosCheckAccessFile(const char *pathname, int mode); int32_t taosLockFile(TdFilePtr pFile); diff --git a/source/client/inc/clientInt.h b/source/client/inc/clientInt.h index 2fbf4eeabb..7a84215e12 100644 --- a/source/client/inc/clientInt.h +++ b/source/client/inc/clientInt.h @@ -115,10 +115,11 @@ struct SAppInstInfo { SArray* pQnodeList; SAppClusterSummary summary; SList* pConnList; // STscObj linked list - uint64_t clusterId; + int64_t clusterId; void* pTransporter; SAppHbMgr* pAppHbMgr; char* instKey; + SMonitorParas monitorParas; }; typedef struct SAppInfo { @@ -127,6 +128,7 @@ typedef struct SAppInfo { int32_t pid; int32_t numOfThreads; SHashObj* pInstMap; + SHashObj* pInstMapByClusterId; TdThreadMutex mutex; } SAppInfo; @@ -350,7 +352,7 @@ void* createTscObj(const char* user, const char* auth, const char* db, int32_ void destroyTscObj(void* pObj); STscObj* acquireTscObj(int64_t rid); int32_t releaseTscObj(int64_t rid); -void destroyAppInst(SAppInstInfo* pAppInfo); +void destroyAppInst(void* pAppInfo); uint64_t generateRequestId(); @@ -403,7 +405,7 @@ void hbRemoveAppHbMrg(SAppHbMgr** pAppHbMgr); void destroyAllRequests(SHashObj* pRequests); void stopAllRequests(SHashObj* pRequests); -SAppInstInfo* getAppInstInfo(const char* clusterKey); +//SAppInstInfo* getAppInstInfo(const char* clusterKey); // conn level int hbRegisterConn(SAppHbMgr* pAppHbMgr, int64_t tscRefId, int64_t clusterId, int8_t connType); @@ -441,10 +443,8 @@ void freeQueryParam(SSyncQueryParam* param); int32_t clientParseSqlImpl(void* param, const char* dbName, const char* sql, bool parseOnly, const char* effeciveUser, SParseSqlRes* pRes); #endif -void clientSlowQueryMonitorInit(const char* clusterKey); -void SlowQueryLog(int64_t rid, bool killed, int32_t code, int32_t cost); -void clientSQLReqMonitorInit(const char* clusterKey); +void slowQueryLog(int64_t rid, bool killed, int32_t code, int32_t cost); enum { MONITORSQLTYPESELECT = 0, @@ -454,8 +454,6 @@ enum { void sqlReqLog(int64_t rid, bool killed, int32_t code, int8_t type); -void clientMonitorClose(const char* clusterKey); - #ifdef __cplusplus } #endif diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index 23b9649c6b..0a790e5a8c 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -13,9 +13,12 @@ * along with this program. If not, see . */ +#include +#include "cJSON.h" #include "catalog.h" #include "clientInt.h" #include "clientLog.h" +#include "clientMonitor.h" #include "functionMgt.h" #include "os.h" #include "osSleep.h" @@ -26,6 +29,7 @@ #include "tglobal.h" #include "thttp.h" #include "tmsg.h" +#include "tqueue.h" #include "tref.h" #include "trpc.h" #include "tsched.h" @@ -70,6 +74,72 @@ static int32_t registerRequest(SRequestObj *pRequest, STscObj *pTscObj) { return TSDB_CODE_SUCCESS; } +static void concatStrings(SArray *list, char* buf, int size){ + int len = 0; + for(int i = 0; i < taosArrayGetSize(list); i++){ + char* db = taosArrayGet(list, i); + int ret = snprintf(buf, size - len, "%s,", db); + if (ret < 0) { + tscError("snprintf failed, buf:%s, ret:%d", buf, ret); + break; + } + len += ret; + if (len >= size){ + tscInfo("dbList is truncated, buf:%s, len:%d", buf, len); + break; + } + } +} + +static void generateWriteSlowLog(STscObj *pTscObj, SRequestObj *pRequest, int32_t reqType, int64_t duration){ + cJSON* json = cJSON_CreateObject(); + if (json == NULL) { + tscError("[monitor] cJSON_CreateObject failed"); + return; + } + cJSON_AddItemToObject(json, "cluster_id", cJSON_CreateNumber(pTscObj->pAppInfo->clusterId)); + cJSON_AddItemToObject(json, "start_ts", cJSON_CreateNumber(pRequest->metric.start)); + cJSON_AddItemToObject(json, "request_id", cJSON_CreateNumber(pRequest->requestId)); + cJSON_AddItemToObject(json, "query_time", cJSON_CreateNumber(duration/1000)); + cJSON_AddItemToObject(json, "code", cJSON_CreateNumber(pRequest->code)); + cJSON_AddItemToObject(json, "error_info", cJSON_CreateString(tstrerror(pRequest->code))); + cJSON_AddItemToObject(json, "type", cJSON_CreateNumber(reqType)); + cJSON_AddItemToObject(json, "rows_num", cJSON_CreateNumber(pRequest->body.resInfo.totalRows)); + if(strlen(pRequest->sqlstr) > pTscObj->pAppInfo->monitorParas.tsSlowLogMaxLen){ + char tmp = pRequest->sqlstr[pTscObj->pAppInfo->monitorParas.tsSlowLogMaxLen]; + pRequest->sqlstr[pTscObj->pAppInfo->monitorParas.tsSlowLogMaxLen] = '\0'; + cJSON_AddItemToObject(json, "sql", cJSON_CreateString(pRequest->sqlstr)); + pRequest->sqlstr[pTscObj->pAppInfo->monitorParas.tsSlowLogMaxLen] = tmp; + }else{ + cJSON_AddItemToObject(json, "sql", cJSON_CreateString(pRequest->sqlstr)); + } + + cJSON_AddItemToObject(json, "user", cJSON_CreateString(pTscObj->user)); + cJSON_AddItemToObject(json, "process_name", cJSON_CreateString(appInfo.appName)); + cJSON_AddItemToObject(json, "ip", cJSON_CreateString(tsLocalFqdn)); + cJSON_AddItemToObject(json, "process_id", cJSON_CreateNumber(appInfo.pid)); + char dbList[1024] = {0}; + concatStrings(pRequest->dbList, dbList, sizeof(dbList)); + cJSON_AddItemToObject(json, "db", cJSON_CreateString(dbList)); + + MonitorSlowLogData* slowLogData = taosAllocateQitem(sizeof(MonitorSlowLogData), DEF_QITEM, 0); + if (slowLogData == NULL) { + cJSON_Delete(json); + tscError("[monitor] failed to allocate slow log data"); + return; + } + slowLogData->clusterId = pTscObj->pAppInfo->clusterId; + slowLogData->value = cJSON_PrintUnformatted(json); + tscDebug("[monitor] write slow log to queue, clusterId:%"PRIx64 " value:%s", slowLogData->clusterId, slowLogData->value); + if (taosWriteQitem(monitorQueue, slowLogData) == 0){ + tsem2_post(&monitorSem); + }else{ + monitorFreeSlowLogData(slowLogData); + taosFreeQitem(slowLogData); + } + cJSON_Delete(json); +} + static void deregisterRequest(SRequestObj *pRequest) { if (pRequest == NULL) { tscError("pRequest == NULL"); @@ -83,7 +153,7 @@ static void deregisterRequest(SRequestObj *pRequest) { int32_t num = atomic_sub_fetch_32(&pTscObj->numOfReqs, 1); int32_t reqType = SLOW_LOG_TYPE_OTHERS; - int64_t duration = taosGetTimestampUs() - pRequest->metric.start; + int64_t duration = taosGetTimestampUs() - pRequest->metric.start/1000; tscDebug("0x%" PRIx64 " free Request from connObj: 0x%" PRIx64 ", reqId:0x%" PRIx64 " elapsed:%.2f ms, " "current:%d, app current:%d", @@ -113,21 +183,26 @@ static void deregisterRequest(SRequestObj *pRequest) { nodesSimReleaseAllocator(pRequest->allocatorRefId); } - if (QUERY_NODE_VNODE_MODIFY_STMT == pRequest->stmtType || QUERY_NODE_INSERT_STMT == pRequest->stmtType) { - sqlReqLog(pTscObj->id, pRequest->killed, pRequest->code, MONITORSQLTYPEINSERT); - } else if (QUERY_NODE_SELECT_STMT == pRequest->stmtType) { - sqlReqLog(pTscObj->id, pRequest->killed, pRequest->code, MONITORSQLTYPESELECT); - } else if (QUERY_NODE_DELETE_STMT == pRequest->stmtType) { - sqlReqLog(pTscObj->id, pRequest->killed, pRequest->code, MONITORSQLTYPEDELETE); + if(pTscObj->pAppInfo->monitorParas.tsEnableMonitor){ + if (QUERY_NODE_VNODE_MODIFY_STMT == pRequest->stmtType || QUERY_NODE_INSERT_STMT == pRequest->stmtType) { + sqlReqLog(pTscObj->id, pRequest->killed, pRequest->code, MONITORSQLTYPEINSERT); + } else if (QUERY_NODE_SELECT_STMT == pRequest->stmtType) { + sqlReqLog(pTscObj->id, pRequest->killed, pRequest->code, MONITORSQLTYPESELECT); + } else if (QUERY_NODE_DELETE_STMT == pRequest->stmtType) { + sqlReqLog(pTscObj->id, pRequest->killed, pRequest->code, MONITORSQLTYPEDELETE); + } } - if (duration >= (tsSlowLogThreshold * 1000000UL)) { + if (duration >= (pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || duration >= tsSlowLogThresholdTest)) { atomic_add_fetch_64((int64_t *)&pActivity->numOfSlowQueries, 1); - if (tsSlowLogScope & reqType) { - taosPrintSlowLog("PID:%d, Conn:%u, QID:0x%" PRIx64 ", Start:%" PRId64 ", Duration:%" PRId64 "us, SQL:%s", + if (pTscObj->pAppInfo->monitorParas.tsSlowLogScope & reqType) { + taosPrintSlowLog("PID:%d, Conn:%u, QID:0x%" PRIx64 ", Start:%" PRId64 " ns, Duration:%" PRId64 "us, SQL:%s", taosGetPId(), pTscObj->connId, pRequest->requestId, pRequest->metric.start, duration, pRequest->sqlstr); - SlowQueryLog(pTscObj->id, pRequest->killed, pRequest->code, duration); + if(pTscObj->pAppInfo->monitorParas.tsEnableMonitor){ + slowQueryLog(pTscObj->id, pRequest->killed, pRequest->code, duration); + generateWriteSlowLog(pTscObj, pRequest, reqType, duration); + } } } @@ -233,14 +308,13 @@ void stopAllRequests(SHashObj *pRequests) { } } -void destroyAppInst(SAppInstInfo *pAppInfo) { +void destroyAppInst(void *info) { + SAppInstInfo* pAppInfo = (SAppInstInfo*)info; tscDebug("destroy app inst mgr %p", pAppInfo); taosThreadMutexLock(&appInfo.mutex); - clientMonitorClose(pAppInfo->instKey); hbRemoveAppHbMrg(&pAppInfo->pAppHbMgr); - taosHashRemove(appInfo.pInstMap, pAppInfo->instKey, strlen(pAppInfo->instKey)); taosThreadMutexUnlock(&appInfo.mutex); @@ -345,7 +419,7 @@ void *createRequest(uint64_t connId, int32_t type, int64_t reqid) { pRequest->resType = RES_TYPE__QUERY; pRequest->requestId = reqid == 0 ? generateRequestId() : reqid; - pRequest->metric.start = taosGetTimestampUs(); + pRequest->metric.start = taosGetTimestampNs(); pRequest->body.resInfo.convertUcs4 = true; // convert ucs4 by default pRequest->type = type; @@ -670,7 +744,7 @@ void tscStopCrashReport() { } if (atomic_val_compare_exchange_32(&clientStop, 0, 1)) { - tscDebug("hb thread already stopped"); + tscDebug("crash report thread already stopped"); return; } @@ -719,7 +793,8 @@ void taos_init_imp(void) { appInfo.pid = taosGetPId(); appInfo.startTime = taosGetTimestampMs(); appInfo.pInstMap = taosHashInit(4, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), true, HASH_ENTRY_LOCK); - + appInfo.pInstMapByClusterId = taosHashInit(4, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), true, HASH_ENTRY_LOCK); + taosHashSetFreeFp(appInfo.pInstMap, destroyAppInst); deltaToUtcInitOnce(); char logDirName[64] = {0}; @@ -769,6 +844,7 @@ void taos_init_imp(void) { taosThreadMutexInit(&appInfo.mutex, NULL); tscCrashReportInit(); + monitorInit(); tscDebug("client is initialized successfully"); } diff --git a/source/client/src/clientHb.c b/source/client/src/clientHb.c index 1b6cb8fd22..d4ce42d8b1 100644 --- a/source/client/src/clientHb.c +++ b/source/client/src/clientHb.c @@ -18,6 +18,7 @@ #include "clientLog.h" #include "scheduler.h" #include "trpc.h" +#include "tglobal.h" typedef struct { union { @@ -67,7 +68,7 @@ static int32_t hbProcessUserAuthInfoRsp(void *value, int32_t valueLen, struct SC } static int32_t hbUpdateUserAuthInfo(SAppHbMgr *pAppHbMgr, SUserAuthBatchRsp *batchRsp) { - uint64_t clusterId = pAppHbMgr->pAppInstInfo->clusterId; + int64_t clusterId = pAppHbMgr->pAppInstInfo->clusterId; for (int i = 0; i < TARRAY_SIZE(clientHbMgr.appHbMgrs); ++i) { SAppHbMgr *hbMgr = taosArrayGetP(clientHbMgr.appHbMgrs, i); if (!hbMgr || hbMgr->pAppInstInfo->clusterId != clusterId) { @@ -536,6 +537,8 @@ static int32_t hbAsyncCallBack(void *param, SDataBuf *pMsg, int32_t code) { } SAppInstInfo *pInst = pAppHbMgr->pAppInstInfo; + pInst->monitorParas = pRsp.monitorParas; + tscDebug("[monitor] paras from hb, clusterId:%" PRIx64 " monitorParas threshold:%d", pInst->clusterId, pRsp.monitorParas.tsSlowLogThreshold); if (code != 0) { pInst->onlineDnodes = pInst->totalDnodes ? 0 : -1; @@ -593,9 +596,9 @@ int32_t hbBuildQueryDesc(SQueryHbReqBasic *hbBasic, STscObj *pObj) { } tstrncpy(desc.sql, pRequest->sqlstr, sizeof(desc.sql)); - desc.stime = pRequest->metric.start / 1000; + desc.stime = pRequest->metric.start / 1000000; desc.queryId = pRequest->requestId; - desc.useconds = now - pRequest->metric.start; + desc.useconds = now - pRequest->metric.start/1000; desc.reqRid = pRequest->self; desc.stableQuery = pRequest->stableQuery; desc.isSubQuery = pRequest->isSubReq; @@ -1115,7 +1118,7 @@ int32_t hbGatherAppInfo(void) { SAppHbMgr *pAppHbMgr = taosArrayGetP(clientHbMgr.appHbMgrs, i); if (pAppHbMgr == NULL) continue; - uint64_t clusterId = pAppHbMgr->pAppInstInfo->clusterId; + int64_t clusterId = pAppHbMgr->pAppInstInfo->clusterId; SAppHbReq *pApp = taosHashGet(clientHbMgr.appSummary, &clusterId, sizeof(clusterId)); if (NULL == pApp) { memcpy(&req.summary, &pAppHbMgr->pAppInstInfo->summary, sizeof(req.summary)); diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index 1057a00725..521eb02a24 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -158,9 +158,6 @@ STscObj* taos_connect_internal(const char* ip, const char* user, const char* pas tscDebug("new app inst mgr %p, user:%s, ip:%s, port:%d", p, user, epSet.epSet.eps[0].fqdn, epSet.epSet.eps[0].port); pInst = &p; - - clientSlowQueryMonitorInit(p->instKey); - clientSQLReqMonitorInit(p->instKey); } else { ASSERTS((*pInst) && (*pInst)->pAppHbMgr, "*pInst:%p, pAppHgMgr:%p", *pInst, (*pInst) ? (*pInst)->pAppHbMgr : NULL); // reset to 0 in case of conn with duplicated user key but its user has ever been dropped. @@ -174,14 +171,14 @@ STscObj* taos_connect_internal(const char* ip, const char* user, const char* pas return taosConnectImpl(user, &secretEncrypt[0], localDb, NULL, NULL, *pInst, connType); } -SAppInstInfo* getAppInstInfo(const char* clusterKey) { - SAppInstInfo** ppAppInstInfo = taosHashGet(appInfo.pInstMap, clusterKey, strlen(clusterKey)); - if (ppAppInstInfo != NULL && *ppAppInstInfo != NULL) { - return *ppAppInstInfo; - } else { - return NULL; - } -} +//SAppInstInfo* getAppInstInfo(const char* clusterKey) { +// SAppInstInfo** ppAppInstInfo = taosHashGet(appInfo.pInstMap, clusterKey, strlen(clusterKey)); +// if (ppAppInstInfo != NULL && *ppAppInstInfo != NULL) { +// return *ppAppInstInfo; +// } else { +// return NULL; +// } +//} void freeQueryParam(SSyncQueryParam* param) { if (param == NULL) return; @@ -737,7 +734,7 @@ int32_t scheduleQuery(SRequestObj* pRequest, SQueryPlan* pDag, SArray* pNodeList .pNodeList = pNodeList, .pDag = pDag, .sql = pRequest->sqlstr, - .startTs = pRequest->metric.start, + .startTs = pRequest->metric.start/1000, .execFp = NULL, .cbParam = NULL, .chkKillFp = chkRequestKilled, @@ -1208,7 +1205,7 @@ static int32_t asyncExecSchQuery(SRequestObj* pRequest, SQuery* pQuery, SMetaDat .pDag = pDag, .allocatorRefId = pRequest->allocatorRefId, .sql = pRequest->sqlstr, - .startTs = pRequest->metric.start, + .startTs = pRequest->metric.start/1000, .execFp = schedulerExecCb, .cbParam = pWrapper, .chkKillFp = chkRequestKilled, diff --git a/source/client/src/clientMain.c b/source/client/src/clientMain.c index 81ae465cd2..ba9493258b 100644 --- a/source/client/src/clientMain.c +++ b/source/client/src/clientMain.c @@ -17,6 +17,7 @@ #include "clientInt.h" #include "clientLog.h" #include "clientStmt.h" +#include "clientMonitor.h" #include "functionMgt.h" #include "os.h" #include "query.h" @@ -55,6 +56,9 @@ void taos_cleanup(void) { return; } + monitorClose(); + taosHashCleanup(appInfo.pInstMap); + taosHashCleanup(appInfo.pInstMapByClusterId); tscStopCrashReport(); hbMgrCleanUp(); @@ -279,7 +283,6 @@ void taos_close_internal(void *taos) { STscObj *pTscObj = (STscObj *)taos; tscDebug("0x%" PRIx64 " try to close connection, numOfReq:%d", pTscObj->id, pTscObj->numOfReqs); - // clientMonitorClose(pTscObj->pAppInfo->instKey); taosRemoveRef(clientConnRefPool, pTscObj->id); } diff --git a/source/client/src/clientMonitor.c b/source/client/src/clientMonitor.c new file mode 100644 index 0000000000..86e4da4517 --- /dev/null +++ b/source/client/src/clientMonitor.c @@ -0,0 +1,616 @@ +#include "clientMonitor.h" +#include "os.h" +#include "tmisce.h" +#include "ttime.h" +#include "ttimer.h" +#include "tglobal.h" +#include "tqueue.h" +#include "cJSON.h" +#include "clientInt.h" + +SRWLatch monitorLock; +void* monitorTimer; +SHashObj* monitorCounterHash; +int32_t monitorStop = -1; +tsem2_t monitorSem; +STaosQueue* monitorQueue; +SHashObj* monitorSlowLogHash; + +static int32_t getSlowLogTmpDir(char* tmpPath, int32_t size){ + if (tsTempDir == NULL) { + return -1; + } + int ret = snprintf(tmpPath, size, "%s/tdengine_slow_log/", tsTempDir); + if (ret < 0){ + uError("failed to get tmp path ret:%d", ret); + return ret; + } + return 0; +} + +static void destroyCounter(void* data){ + if (data == NULL) { + return; + } + taos_counter_t* conuter = *(taos_counter_t**)data; + if(conuter == NULL){ + return; + } + taos_counter_destroy(conuter); +} + +static void destroyClientFile(void* data){ + if (data == NULL) { + return; + } + TdFilePtr pFile = *(TdFilePtr*)data; + if(pFile == NULL){ + return; + } + taosUnLockFile(pFile); + taosCloseFile(&pFile); +} + +static void destroyMonitorClient(void* data){ + if (data == NULL) { + return; + } + MonitorClient* pMonitor = *(MonitorClient**)data; + if(pMonitor == NULL){ + return; + } + taosHashCleanup(pMonitor->counters); + taos_collector_registry_destroy(pMonitor->registry); + taos_collector_destroy(pMonitor->colector); + taosMemoryFree(pMonitor); +} + +static SAppInstInfo* getAppInstByClusterId(int64_t clusterId) { + void *p = taosHashGet(appInfo.pInstMapByClusterId, &clusterId, LONG_BYTES); + if(p == NULL){ + uError("failed to get app inst, clusterId:%" PRIx64, clusterId); + return NULL; + } + return *(SAppInstInfo**)p; +} + +static int32_t tscMonitortInit() { + TdThreadAttr thAttr; + taosThreadAttrInit(&thAttr); + taosThreadAttrSetDetachState(&thAttr, PTHREAD_CREATE_JOINABLE); + TdThread monitorThread; + if (taosThreadCreate(&monitorThread, &thAttr, monitorThreadFunc, NULL) != 0) { + uError("failed to create monitor thread since %s", strerror(errno)); + return -1; + } + + taosThreadAttrDestroy(&thAttr); + return 0; +} + +static void tscMonitorStop() { + if (atomic_val_compare_exchange_32(&monitorStop, 0, 1)) { + uDebug("monitor thread already stopped"); + return; + } + + while (atomic_load_32(&monitorStop) > 0) { + taosMsleep(100); + } +} + +static int32_t monitorReportAsyncCB(void* param, SDataBuf* pMsg, int32_t code) { + if (TSDB_CODE_SUCCESS != code) { + uError("found error in monitorReport send callback, code:%d, please check the network.", code); + } + if (pMsg) { + taosMemoryFree(pMsg->pData); + taosMemoryFree(pMsg->pEpSet); + } + return code; +} + +static int32_t sendReport(void* pTransporter, SEpSet *epSet, char* pCont, MONITOR_TYPE type) { + SStatisReq sStatisReq; + sStatisReq.pCont = pCont; + sStatisReq.contLen = strlen(pCont); + sStatisReq.type = type; + + int tlen = tSerializeSStatisReq(NULL, 0, &sStatisReq); + if (tlen < 0) return 0; + void* buf = taosMemoryMalloc(tlen); + if (buf == NULL) { + uError("sendReport failed, out of memory, len:%d", tlen); + terrno = TSDB_CODE_OUT_OF_MEMORY; + return -1; + } + tSerializeSStatisReq(buf, tlen, &sStatisReq); + + SMsgSendInfo* pInfo = taosMemoryCalloc(1, sizeof(SMsgSendInfo)); + if (pInfo == NULL) { + uError("sendReport failed, out of memory send info"); + terrno = TSDB_CODE_OUT_OF_MEMORY; + return -1; + } + pInfo->fp = monitorReportAsyncCB; + pInfo->msgInfo.pData = buf; + pInfo->msgInfo.len = tlen; + pInfo->msgType = TDMT_MND_STATIS; + // pInfo->param = taosMemoryMalloc(sizeof(int32_t)); + // *(int32_t*)pInfo->param = i; + pInfo->paramFreeFp = taosMemoryFree; + pInfo->requestId = tGenIdPI64(); + pInfo->requestObjRefId = 0; + + int64_t transporterId = 0; + int32_t code = asyncSendMsgToServer(pTransporter, epSet, &transporterId, pInfo); + if (code != TSDB_CODE_SUCCESS) { + uError("sendReport failed, code:%d", code); + } + return code; +} + +void monitorReadSendSlowLog(TdFilePtr pFile, void* pTransporter, SEpSet *epSet){ + char buf[SLOW_LOG_SEND_SIZE + 1] = {0}; // +1 for \0, for print log + int32_t offset = 0; + if(taosLSeekFile(pFile, 0, SEEK_SET) < 0){ + uError("failed to seek file:%p code: %d", pFile, errno); + return; + } + while(1){ + int64_t readSize = taosReadFile(pFile, buf + offset, SLOW_LOG_SEND_SIZE - offset); + if (readSize <= 0) { + uError("failed to read len from file:%p since %s", pFile, terrstr()); + return; + } + + cJSON* pArray = cJSON_CreateArray(); + char* string = buf; + for(int i = 0; i < readSize + offset; i++){ + if (buf[i] == '\0') { + cJSON_AddItemToArray(pArray, cJSON_CreateString(string)); + uDebug("[monitor] slow log:%s", string); + string = buf + i + 1; + } + } + + ASSERT(cJSON_GetArraySize(pArray) > 0); // make sure SLOW_LOG_SEND_SIZE is bigger than one line in pFile + char* pCont = cJSON_PrintUnformatted(pArray); + if (pTransporter && pCont != NULL) { + if(sendReport(pTransporter, epSet, pCont, MONITOR_TYPE_SLOW_LOG) != 0){ + if(taosLSeekFile(pFile, -readSize, SEEK_CUR) < 0){ + uError("failed to seek file:%p code: %d", pFile, errno); + } + uError("failed to send report:%s", pCont); + cJSON_free(pCont); + cJSON_Delete(pArray); + return; + } + uDebug("[monitor] send slow log:%s", pCont) + } + cJSON_free(pCont); + cJSON_Delete(pArray); + + if (readSize + offset < SLOW_LOG_SEND_SIZE) { + break; + } + offset = SLOW_LOG_SEND_SIZE - (string - buf); + if(buf != string && offset != 0){ + memmove(buf, string, offset); + uDebug("[monitor] left slow log:%s", buf) + } + } + if(taosFtruncateFile(pFile, 0) < 0){ + uError("failed to truncate file:%p code: %d", pFile, errno); + } + uDebug("[monitor] send slow log file:%p", pFile); +} + +static void generateClusterReport(taos_collector_registry_t* registry, void* pTransporter, SEpSet *epSet) { + char ts[50] = {0}; + sprintf(ts, "%" PRId64, taosGetTimestamp(TSDB_TIME_PRECISION_MILLI)); + char* pCont = (char*)taos_collector_registry_bridge_new(registry, ts, "%" PRId64, NULL); + if(NULL == pCont) { + uError("generateClusterReport failed, get null content."); + return; + } + + if (strlen(pCont) != 0 && sendReport(pTransporter, epSet, pCont, MONITOR_TYPE_COUNTER) == 0) { + taos_collector_registry_clear_batch(registry); + } + taosMemoryFreeClear(pCont); +} + +static void reportSendProcess(void* param, void* tmrId) { + taosRLockLatch(&monitorLock); + MonitorClient* pMonitor = (MonitorClient*)param; + SAppInstInfo* pInst = getAppInstByClusterId(pMonitor->clusterId); + if(pInst == NULL){ + taosRUnLockLatch(&monitorLock); + return; + } + + SEpSet ep = getEpSet_s(&pInst->mgmtEp); + generateClusterReport(pMonitor->registry, pInst->pTransporter, &ep); + taosRUnLockLatch(&monitorLock); + taosTmrReset(reportSendProcess, pInst->monitorParas.tsMonitorInterval * 1000, param, monitorTimer, &tmrId); +} + +static void sendAllSlowLog(){ + taosRLockLatch(&monitorLock); + void* data = taosHashIterate(monitorSlowLogHash, NULL); + while (data != NULL) { + TdFilePtr pFile = *(TdFilePtr*)data; + if (pFile != NULL){ + int64_t clusterId = *(int64_t*)taosHashGetKey(data, NULL); + SAppInstInfo* pInst = getAppInstByClusterId(clusterId); + if(pInst == NULL){ + taosHashCancelIterate(monitorSlowLogHash, data); + break; + } + SEpSet ep = getEpSet_s(&pInst->mgmtEp); + monitorReadSendSlowLog(pFile, pInst->pTransporter, &ep); + } + data = taosHashIterate(monitorSlowLogHash, data); + } + taosRUnLockLatch(&monitorLock); +} + +void monitorSendAllSlowLogFromTempDir(void* inst){ + SAppInstInfo* pInst = (SAppInstInfo*)inst; + if(pInst == NULL || !pInst->monitorParas.tsEnableMonitor){ + uInfo("[monitor] monitor is disabled, skip send slow log"); + return; + } + char namePrefix[PATH_MAX] = {0}; + if (snprintf(namePrefix, sizeof(namePrefix), "%s%"PRIx64, TD_TMP_FILE_PREFIX, pInst->clusterId) < 0) { + uError("failed to generate slow log file name prefix"); + return; + } + + taosRLockLatch(&monitorLock); + + char tmpPath[PATH_MAX] = {0}; + if (getSlowLogTmpDir(tmpPath, sizeof(tmpPath)) < 0) { + goto END; + } + + TdDirPtr pDir = taosOpenDir(tmpPath); + if (pDir == NULL) { + goto END; + } + + TdDirEntryPtr de = NULL; + while ((de = taosReadDir(pDir)) != NULL) { + if (taosDirEntryIsDir(de)) { + continue; + } + + char *name = taosGetDirEntryName(de); + if (strcmp(name, ".") == 0 || + strcmp(name, "..") == 0 || + strstr(name, namePrefix) == NULL) { + uInfo("skip file:%s, for cluster id:%"PRIx64, name, pInst->clusterId); + continue; + } + + char filename[PATH_MAX] = {0}; + snprintf(filename, sizeof(filename), "%s%s", tmpPath, name); + uDebug("[monitor] send slow log file:%s", filename); + TdFilePtr pFile = taosOpenFile(filename, TD_FILE_READ); + if (pFile == NULL) { + uError("failed to open file:%s since %s", filename, terrstr()); + continue; + } + if (taosLockFile(pFile) < 0) { + uError("failed to lock file:%s since %s, maybe used by other process", filename, terrstr()); + taosCloseFile(&pFile); + continue; + } + SEpSet ep = getEpSet_s(&pInst->mgmtEp); + monitorReadSendSlowLog(pFile, pInst->pTransporter, &ep); + taosUnLockFile(pFile); + taosCloseFile(&pFile); + taosRemoveFile(filename); + } + + taosCloseDir(&pDir); + +END: + taosRUnLockLatch(&monitorLock); +} + +static void sendAllCounter(){ + taosRLockLatch(&monitorLock); + MonitorClient** ppMonitor = (MonitorClient**)taosHashIterate(monitorCounterHash, NULL); + while (ppMonitor != NULL) { + MonitorClient* pMonitor = *ppMonitor; + if (pMonitor != NULL){ + SAppInstInfo* pInst = getAppInstByClusterId(pMonitor->clusterId); + if(pInst == NULL){ + taosHashCancelIterate(monitorCounterHash, ppMonitor); + break; + } + SEpSet ep = getEpSet_s(&pInst->mgmtEp); + generateClusterReport(pMonitor->registry, pInst->pTransporter, &ep); + } + ppMonitor = taosHashIterate(monitorCounterHash, ppMonitor); + } + taosRUnLockLatch(&monitorLock); +} + +void monitorInit() { + uInfo("[monitor] tscMonitor init"); + monitorCounterHash = (SHashObj*)taosHashInit(64, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), false, HASH_ENTRY_LOCK); + if (monitorCounterHash == NULL) { + uError("failed to create monitorCounterHash"); + } + taosHashSetFreeFp(monitorCounterHash, destroyMonitorClient); + + monitorSlowLogHash = (SHashObj*)taosHashInit(64, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), false, HASH_ENTRY_LOCK); + if (monitorSlowLogHash == NULL) { + uError("failed to create monitorSlowLogHash"); + } + taosHashSetFreeFp(monitorSlowLogHash, destroyClientFile); + + monitorTimer = taosTmrInit(0, 0, 0, "MONITOR"); + if (monitorTimer == NULL) { + uError("failed to create monitor timer"); + } + + taosInitRWLatch(&monitorLock); + tscMonitortInit(); +} + +void monitorClose() { + uInfo("[monitor] tscMonitor close"); + tscMonitorStop(); + sendAllSlowLog(); + sendAllCounter(); + taosHashCleanup(monitorCounterHash); + taosHashCleanup(monitorSlowLogHash); + taosTmrCleanUp(monitorTimer); +} + +void monitorCreateClient(int64_t clusterId) { + MonitorClient* pMonitor = NULL; + taosWLockLatch(&monitorLock); + if (taosHashGet(monitorCounterHash, &clusterId, LONG_BYTES) == NULL) { + uInfo("[monitor] monitorCreateClient for %" PRIx64, clusterId); + pMonitor = taosMemoryCalloc(1, sizeof(MonitorClient)); + if (pMonitor == NULL) { + uError("failed to create monitor client"); + goto fail; + } + pMonitor->clusterId = clusterId; + char clusterKey[32] = {0}; + if(snprintf(clusterKey, sizeof(clusterKey), "%"PRId64, clusterId) < 0){ + uError("failed to create cluster key"); + goto fail; + } + pMonitor->registry = taos_collector_registry_new(clusterKey); + if(pMonitor->registry == NULL){ + uError("failed to create registry"); + goto fail; + } + pMonitor->colector = taos_collector_new(clusterKey); + if(pMonitor->colector == NULL){ + uError("failed to create collector"); + goto fail; + } + + taos_collector_registry_register_collector(pMonitor->registry, pMonitor->colector); + pMonitor->counters = (SHashObj*)taosHashInit(64, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), true, HASH_ENTRY_LOCK); + if (pMonitor->counters == NULL) { + uError("failed to create monitor counters"); + goto fail; + } + taosHashSetFreeFp(pMonitor->counters, destroyCounter); + + if(taosHashPut(monitorCounterHash, &clusterId, LONG_BYTES, &pMonitor, POINTER_BYTES) != 0){ + uError("failed to put monitor client to hash"); + goto fail; + } + + SAppInstInfo* pInst = getAppInstByClusterId(clusterId); + if(pInst == NULL){ + uError("failed to get app instance by cluster id"); + pMonitor = NULL; + goto fail; + } + taosTmrStart(reportSendProcess, pInst->monitorParas.tsMonitorInterval * 1000, (void*)pMonitor, monitorTimer); + uInfo("[monitor] monitorCreateClient for %"PRIx64 "finished %p.", clusterId, pMonitor); + } + taosWUnLockLatch(&monitorLock); + return; + +fail: + destroyMonitorClient(&pMonitor); + taosWUnLockLatch(&monitorLock); +} + +void monitorCreateClientCounter(int64_t clusterId, const char* name, const char* help, size_t label_key_count, const char** label_keys) { + taosWLockLatch(&monitorLock); + MonitorClient** ppMonitor = (MonitorClient**)taosHashGet(monitorCounterHash, &clusterId, LONG_BYTES); + if (ppMonitor == NULL || *ppMonitor == NULL) { + uError("failed to get monitor client"); + goto end; + } + taos_counter_t* newCounter = taos_counter_new(name, help, label_key_count, label_keys); + if (newCounter == NULL) + return; + MonitorClient* pMonitor = *ppMonitor; + taos_collector_add_metric(pMonitor->colector, newCounter); + if(taosHashPut(pMonitor->counters, name, strlen(name), &newCounter, POINTER_BYTES) != 0){ + uError("failed to put counter to monitor"); + taos_counter_destroy(newCounter); + goto end; + } + uInfo("[monitor] monitorCreateClientCounter %"PRIx64"(%p):%s : %p.", pMonitor->clusterId, pMonitor, name, newCounter); + +end: + taosWUnLockLatch(&monitorLock); +} + +void monitorCounterInc(int64_t clusterId, const char* counterName, const char** label_values) { + taosRLockLatch(&monitorLock); + MonitorClient** ppMonitor = (MonitorClient**)taosHashGet(monitorCounterHash, &clusterId, LONG_BYTES); + if (ppMonitor == NULL || *ppMonitor == NULL) { + uError("monitorCounterInc not found pMonitor %"PRId64, clusterId); + goto end; + } + + MonitorClient* pMonitor = *ppMonitor; + taos_counter_t** ppCounter = (taos_counter_t**)taosHashGet(pMonitor->counters, counterName, strlen(counterName)); + if (ppCounter == NULL || *ppCounter != NULL) { + uError("monitorCounterInc not found pCounter %"PRIx64":%s.", clusterId, counterName); + goto end; + } + taos_counter_inc(*ppCounter, label_values); + uInfo("[monitor] monitorCounterInc %"PRIx64"(%p):%s", pMonitor->clusterId, pMonitor, counterName); + +end: + taosRUnLockLatch(&monitorLock); +} + +const char* monitorResultStr(SQL_RESULT_CODE code) { + static const char* result_state[] = {"Success", "Failed", "Cancel"}; + return result_state[code]; +} + +void monitorFreeSlowLogData(MonitorSlowLogData* pData) { + if (pData == NULL) { + return; + } + taosMemoryFree(pData->value); +} + +void monitorThreadFuncUnexpectedStopped(void) { atomic_store_32(&monitorStop, -1); } + +void reportSlowLog(void* param, void* tmrId) { + taosRLockLatch(&monitorLock); + SAppInstInfo* pInst = getAppInstByClusterId((int64_t)param); + if(pInst == NULL){ + uError("failed to get app inst, clusterId:%"PRIx64, (int64_t)param); + taosRUnLockLatch(&monitorLock); + return; + } + + void* tmp = taosHashGet(monitorSlowLogHash, ¶m, LONG_BYTES); + if(tmp == NULL){ + uError("failed to get file inst, clusterId:%"PRIx64, (int64_t)param); + taosRUnLockLatch(&monitorLock); + return; + } + + SEpSet ep = getEpSet_s(&pInst->mgmtEp); + monitorReadSendSlowLog(*(TdFilePtr*)tmp, pInst->pTransporter, &ep); + taosRUnLockLatch(&monitorLock); + + taosTmrReset(reportSlowLog, pInst->monitorParas.tsMonitorInterval * 1000, param, monitorTimer, &tmrId); +} + +void monitorWriteSlowLog2File(MonitorSlowLogData* slowLogData, char *tmpPath){ + taosRLockLatch(&monitorLock); + TdFilePtr pFile = NULL; + void* tmp = taosHashGet(monitorSlowLogHash, &slowLogData->clusterId, LONG_BYTES); + if (tmp == NULL){ + char path[PATH_MAX] = {0}; + char clusterId[32] = {0}; + if (snprintf(clusterId, sizeof(clusterId), "%" PRIx64, slowLogData->clusterId) < 0){ + uError("failed to generate clusterId:%" PRIx64, slowLogData->clusterId); + goto FAILED; + } + taosGetTmpfilePath(tmpPath, clusterId, path); + uInfo("[monitor] create slow log file:%s", path); + pFile = taosOpenFile(path, TD_FILE_CREATE | TD_FILE_WRITE | TD_FILE_APPEND | TD_FILE_READ | TD_FILE_TRUNC); + if (pFile == NULL) { + terrno = TAOS_SYSTEM_ERROR(errno); + uError("failed to open file:%s since %s", path, terrstr()); + goto FAILED; + } + + if (taosHashPut(monitorSlowLogHash, &slowLogData->clusterId, LONG_BYTES, &pFile, POINTER_BYTES) != 0){ + uError("failed to put clusterId:%" PRId64 " to hash table", slowLogData->clusterId); + taosCloseFile(&pFile); + goto FAILED; + } + + if(taosLockFile(pFile) < 0){ + uError("failed to lock file:%p since %s", pFile, terrstr()); + goto FAILED; + } + + SAppInstInfo* pInst = getAppInstByClusterId(slowLogData->clusterId); + if(pInst == NULL){ + uError("failed to get app instance by clusterId:%" PRId64, slowLogData->clusterId); + goto FAILED; + } + + taosTmrStart(reportSlowLog, pInst->monitorParas.tsMonitorInterval * 1000, (void*)slowLogData->clusterId, monitorTimer); + }else{ + pFile = *(TdFilePtr*)tmp; + } + + if (taosWriteFile(pFile, slowLogData->value, strlen(slowLogData->value) + 1) < 0){ + uError("failed to write len to file:%p since %s", pFile, terrstr()); + } + uDebug("[monitor] write slow log to file:%p, clusterId:%"PRIx64, pFile, slowLogData->clusterId); + +FAILED: + taosRUnLockLatch(&monitorLock); +} + +void* monitorThreadFunc(void *param){ + setThreadName("client-monitor-slowlog"); + +#ifdef WINDOWS + if (taosCheckCurrentInDll()) { + atexit(monitorThreadFuncUnexpectedStopped); + } +#endif + + if (-1 != atomic_val_compare_exchange_32(&monitorStop, -1, 0)) { + return NULL; + } + + char tmpPath[PATH_MAX] = {0}; + if (getSlowLogTmpDir(tmpPath, sizeof(tmpPath)) < 0){ + return NULL; + } + + if (taosMulModeMkDir(tmpPath, 0777, true) != 0) { + terrno = TAOS_SYSTEM_ERROR(errno); + printf("failed to create dir:%s since %s", tmpPath, terrstr()); + return NULL; + } + + if (tsem2_init(&monitorSem, 0, 0) != 0) { + uError("sem init error since %s", terrstr()); + return NULL; + } + + monitorQueue = taosOpenQueue(); + if(monitorQueue == NULL){ + uError("open queue error since %s", terrstr()); + return NULL; + } + while (1) { + if (monitorStop > 0) break; + + MonitorSlowLogData* slowLogData = NULL; + taosReadQitem(monitorQueue, (void**)&slowLogData); + if (slowLogData != NULL) { + uDebug("[monitor] read slow log data from queue, clusterId:%" PRIx64 " value:%s", slowLogData->clusterId, slowLogData->value); + monitorWriteSlowLog2File(slowLogData, tmpPath); + } + monitorFreeSlowLogData(slowLogData); + taosFreeQitem(slowLogData); + tsem2_wait(&monitorSem); + } + + taosCloseQueue(monitorQueue); + tsem2_destroy(&monitorSem); + monitorStop = -2; + return NULL; +} \ No newline at end of file diff --git a/source/client/src/slowQueryMonitor.c b/source/client/src/clientMonitorSlow.c similarity index 64% rename from source/client/src/slowQueryMonitor.c rename to source/client/src/clientMonitorSlow.c index b41343443d..192792f43e 100644 --- a/source/client/src/slowQueryMonitor.c +++ b/source/client/src/clientMonitorSlow.c @@ -21,7 +21,6 @@ const char* slowQueryName = "taos_slow_sql:count"; const char* slowQueryHelp = "slow query log when cost over than config duration"; const int slowQueryLabelCount = 4; const char* slowQueryLabels[] = {"cluster_id", "username", "result", "duration"}; -static const char* defaultClusterID = ""; const int64_t usInSeconds = 1000 * 1000; const int64_t msInMinutes = 60 * 1000; @@ -39,21 +38,21 @@ static const char* getSlowQueryLableCostDesc(int64_t cost) { return "0-3s"; } -void clientSlowQueryMonitorInit(const char* clusterKey) { - if (!tsEnableMonitor) return; - SAppInstInfo* pAppInstInfo = getAppInstInfo(clusterKey); - SEpSet epSet = getEpSet_s(&pAppInstInfo->mgmtEp); - clusterMonitorInit(clusterKey, epSet, pAppInstInfo->pTransporter); - createClusterCounter(clusterKey, slowQueryName, slowQueryHelp, slowQueryLabelCount, slowQueryLabels); +void monitorClientSlowQueryInit(int64_t clusterid) { + monitorCreateClient(clusterid); + monitorCreateClientCounter(clusterid, slowQueryName, slowQueryHelp, slowQueryLabelCount, slowQueryLabels); } -void clientSlowQueryLog(const char* clusterKey, const char* user, SQL_RESULT_CODE result, int32_t cost) { - const char* slowQueryLabelValues[] = {defaultClusterID, user, resultStr(result), getSlowQueryLableCostDesc(cost)}; - taosClusterCounterInc(clusterKey, slowQueryName, slowQueryLabelValues); +void clientSlowQueryLog(int64_t clusterId, const char* user, SQL_RESULT_CODE result, int32_t cost) { + char clusterIdStr[32] = {0}; + if (snprintf(clusterIdStr, sizeof(clusterIdStr), "%" PRId64, clusterId) < 0){ + uError("failed to generate clusterId:%" PRId64, clusterId); + } + const char* slowQueryLabelValues[] = {clusterIdStr, user, monitorResultStr(result), getSlowQueryLableCostDesc(cost)}; + monitorCounterInc(clusterId, slowQueryName, slowQueryLabelValues); } -void SlowQueryLog(int64_t rid, bool killed, int32_t code, int32_t cost) { - if (!tsEnableMonitor) return; +void slowQueryLog(int64_t rid, bool killed, int32_t code, int32_t cost) { SQL_RESULT_CODE result = SQL_RESULT_SUCCESS; if (TSDB_CODE_SUCCESS != code) { result = SQL_RESULT_FAILED; @@ -66,12 +65,12 @@ void SlowQueryLog(int64_t rid, bool killed, int32_t code, int32_t cost) { STscObj* pTscObj = acquireTscObj(rid); if (pTscObj != NULL) { if(pTscObj->pAppInfo == NULL) { - tscLog("SlowQueryLog, not found pAppInfo"); + tscLog("slowQueryLog, not found pAppInfo"); } else { - clientSlowQueryLog(pTscObj->pAppInfo->instKey, pTscObj->user, result, cost); + clientSlowQueryLog(pTscObj->pAppInfo->clusterId, pTscObj->user, result, cost); } releaseTscObj(rid); } else { - tscLog("SlowQueryLog, not found rid"); + tscLog("slowQueryLog, not found rid"); } } diff --git a/source/client/src/clientSqlMonitor.c b/source/client/src/clientMonitorSql.c similarity index 64% rename from source/client/src/clientSqlMonitor.c rename to source/client/src/clientMonitorSql.c index 572af7ff55..19d5b7506e 100644 --- a/source/client/src/clientSqlMonitor.c +++ b/source/client/src/clientMonitorSql.c @@ -22,17 +22,12 @@ const char* selectMonitorHelp = "count for select sql"; const int selectMonitorLabelCount = 4; const char* selectMonitorLabels[] = {"cluster_id", "sql_type", "username", "result"}; -static const char* defaultClusterID = ""; - -void clientSQLReqMonitorInit(const char* clusterKey) { - if (!tsEnableMonitor) return; - SAppInstInfo* pAppInstInfo = getAppInstInfo(clusterKey); - SEpSet epSet = getEpSet_s(&pAppInstInfo->mgmtEp); - clusterMonitorInit(clusterKey, epSet, pAppInstInfo->pTransporter); - createClusterCounter(clusterKey, selectMonitorName, selectMonitorHelp, selectMonitorLabelCount, selectMonitorLabels); +void monitorClientSQLReqInit(int64_t clusterId) { + monitorCreateClient(clusterId); + monitorCreateClientCounter(clusterId, selectMonitorName, selectMonitorHelp, selectMonitorLabelCount, selectMonitorLabels); } -void clientSQLReqLog(const char* clusterKey, const char* user, SQL_RESULT_CODE result, int8_t type) { +void clientSQLReqLog(int64_t clusterId, const char* user, SQL_RESULT_CODE result, int8_t type) { const char* typeStr; switch (type) { case MONITORSQLTYPEDELETE: @@ -45,12 +40,15 @@ void clientSQLReqLog(const char* clusterKey, const char* user, SQL_RESULT_CODE r typeStr = "select"; break; } - const char* selectMonitorLabelValues[] = {defaultClusterID, typeStr, user, resultStr(result)}; - taosClusterCounterInc(clusterKey, selectMonitorName, selectMonitorLabelValues); + char clusterIdStr[32] = {0}; + if (snprintf(clusterIdStr, sizeof(clusterIdStr), "%" PRId64, clusterId) < 0){ + uError("failed to generate clusterId:%" PRId64, clusterId); + } + const char* selectMonitorLabelValues[] = {clusterIdStr, typeStr, user, monitorResultStr(result)}; + monitorCounterInc(clusterId, selectMonitorName, selectMonitorLabelValues); } void sqlReqLog(int64_t rid, bool killed, int32_t code, int8_t type) { - if (!tsEnableMonitor) return; SQL_RESULT_CODE result = SQL_RESULT_SUCCESS; if (TSDB_CODE_SUCCESS != code) { result = SQL_RESULT_FAILED; @@ -65,15 +63,10 @@ void sqlReqLog(int64_t rid, bool killed, int32_t code, int8_t type) { if (pTscObj->pAppInfo == NULL) { tscLog("sqlReqLog, not found pAppInfo"); } else { - clientSQLReqLog(pTscObj->pAppInfo->instKey, pTscObj->user, result, type); + clientSQLReqLog(pTscObj->pAppInfo->clusterId, pTscObj->user, result, type); } releaseTscObj(rid); } else { tscLog("sqlReqLog, not found rid"); } } - -void clientMonitorClose(const char* clusterKey) { - tscLog("clientMonitorClose, key:%s", clusterKey); - clusterMonitorClose(clusterKey); -} diff --git a/source/client/src/clientMsgHandler.c b/source/client/src/clientMsgHandler.c index f04e5e53c6..effdc693cf 100644 --- a/source/client/src/clientMsgHandler.c +++ b/source/client/src/clientMsgHandler.c @@ -15,6 +15,7 @@ #include "catalog.h" #include "clientInt.h" +#include "clientMonitor.h" #include "clientLog.h" #include "cmdnodes.h" #include "os.h" @@ -140,6 +141,8 @@ int32_t processConnectRsp(void* param, SDataBuf* pMsg, int32_t code) { // update the appInstInfo pTscObj->pAppInfo->clusterId = connectRsp.clusterId; + pTscObj->pAppInfo->monitorParas = connectRsp.monitorParas; + tscDebug("[monitor] paras from connect rsp, clusterId:%" PRIx64 " monitorParas threshold:%d", connectRsp.clusterId, connectRsp.monitorParas.tsSlowLogThreshold); lastClusterId = connectRsp.clusterId; pTscObj->connType = connectRsp.connType; @@ -147,6 +150,15 @@ int32_t processConnectRsp(void* param, SDataBuf* pMsg, int32_t code) { pTscObj->authVer = connectRsp.authVer; pTscObj->whiteListInfo.ver = connectRsp.whiteListVer; + if(taosHashGet(appInfo.pInstMapByClusterId, &connectRsp.clusterId, LONG_BYTES) == NULL){ + if(taosHashPut(appInfo.pInstMapByClusterId, &connectRsp.clusterId, LONG_BYTES, &pTscObj->pAppInfo, POINTER_BYTES) != 0){ + tscError("failed to put appInfo into appInfo.pInstMapByClusterId"); + } + monitorSendAllSlowLogFromTempDir(pTscObj->pAppInfo); + monitorClientSlowQueryInit(connectRsp.clusterId); + monitorClientSQLReqInit(connectRsp.clusterId); + } + taosThreadMutexLock(&clientHbMgr.lock); SAppHbMgr* pAppHbMgr = taosArrayGetP(clientHbMgr.appHbMgrs, pTscObj->appHbMgrIdx); if (pAppHbMgr) { @@ -233,7 +245,7 @@ int32_t processUseDbRsp(void* param, SDataBuf* pMsg, int32_t code) { struct SCatalog* pCatalog = NULL; if (usedbRsp.vgVersion >= 0) { // cached in local - uint64_t clusterId = pRequest->pTscObj->pAppInfo->clusterId; + int64_t clusterId = pRequest->pTscObj->pAppInfo->clusterId; int32_t code1 = catalogGetHandle(clusterId, &pCatalog); if (code1 != TSDB_CODE_SUCCESS) { tscWarn("0x%" PRIx64 "catalogGetHandle failed, clusterId:%" PRIx64 ", error:%s", pRequest->requestId, clusterId, diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index 6eb7abe0eb..a771fc1635 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -1851,7 +1851,7 @@ static int smlProcess(SSmlHandle *info, char *lines[], char *rawLine, char *rawL } void smlSetReqSQL(SRequestObj *request, char *lines[], char *rawLine, char *rawLineEnd) { - if (tsSlowLogScope & SLOW_LOG_TYPE_INSERT) { + if (request->pTscObj->pAppInfo->monitorParas.tsSlowLogScope & SLOW_LOG_TYPE_INSERT) { int32_t len = 0; int32_t rlen = 0; char *p = NULL; diff --git a/source/client/test/clientMonitorTests.cpp b/source/client/test/clientMonitorTests.cpp index f7ddc1a5cd..c74f4f7290 100644 --- a/source/client/test/clientMonitorTests.cpp +++ b/source/client/test/clientMonitorTests.cpp @@ -35,34 +35,34 @@ int main(int argc, char** argv) { return RUN_ALL_TESTS(); } -TEST(clientMonitorTest, monitorTest) { - const char* cluster1 = "cluster1"; - const char* cluster2 = "cluster2"; - SEpSet epSet; - clusterMonitorInit(cluster1, epSet, NULL); - const char* counterName1 = "slow_query"; - const char* counterName2 = "select_count"; - const char* help1 = "test for slowQuery"; - const char* help2 = "test for selectSQL"; - const char* lables[] = {"lable1"}; - taos_counter_t* c1 = createClusterCounter(cluster1, counterName1, help1, 1, lables); - ASSERT_TRUE(c1 != NULL); - taos_counter_t* c2 = createClusterCounter(cluster1, counterName2, help2, 1, lables); - ASSERT_TRUE(c2 != NULL); - ASSERT_TRUE(c1 != c2); - taos_counter_t* c21 = createClusterCounter(cluster2, counterName1, help2, 1, lables); - ASSERT_TRUE(c21 == NULL); - clusterMonitorInit(cluster2, epSet, NULL); - c21 = createClusterCounter(cluster2, counterName1, help2, 1, lables); - ASSERT_TRUE(c21 != NULL); - int i = 0; - while (i < 12) { - taosMsleep(10); - ++i; - } - clusterMonitorClose(cluster1); - clusterMonitorClose(cluster2); -} +//TEST(clientMonitorTest, monitorTest) { +// const char* cluster1 = "cluster1"; +// const char* cluster2 = "cluster2"; +// SEpSet epSet; +// clientMonitorInit(cluster1, epSet, NULL); +// const char* counterName1 = "slow_query"; +// const char* counterName2 = "select_count"; +// const char* help1 = "test for slowQuery"; +// const char* help2 = "test for selectSQL"; +// const char* lables[] = {"lable1"}; +// taos_counter_t* c1 = createClusterCounter(cluster1, counterName1, help1, 1, lables); +// ASSERT_TRUE(c1 != NULL); +// taos_counter_t* c2 = createClusterCounter(cluster1, counterName2, help2, 1, lables); +// ASSERT_TRUE(c2 != NULL); +// ASSERT_TRUE(c1 != c2); +// taos_counter_t* c21 = createClusterCounter(cluster2, counterName1, help2, 1, lables); +// ASSERT_TRUE(c21 == NULL); +// clientMonitorInit(cluster2, epSet, NULL); +// c21 = createClusterCounter(cluster2, counterName1, help2, 1, lables); +// ASSERT_TRUE(c21 != NULL); +// int i = 0; +// while (i < 12) { +// taosMsleep(10); +// ++i; +// } +// clusterMonitorClose(cluster1); +// clusterMonitorClose(cluster2); +//} TEST(clientMonitorTest, sendTest) { TAOS* taos = taos_connect("127.0.0.1", "root", "taosdata", NULL, 0); @@ -70,13 +70,100 @@ TEST(clientMonitorTest, sendTest) { printf("connect taosd sucessfully.\n"); int64_t rid = *(int64_t *)taos; - SlowQueryLog(rid, false, -1, 1000); + slowQueryLog(rid, false, -1, 1000); int i = 0; while (i < 20) { - SlowQueryLog(rid, false, 0, i * 1000); + slowQueryLog(rid, false, 0, i * 1000); taosMsleep(10); ++i; } taos_close(taos); } + +TEST(clientMonitorTest, ReadOneFile) { + // Create a TdFilePtr object and set it up for testing + + TdFilePtr pFile = taosOpenFile("./tdengine-1-wewe", TD_FILE_CREATE | TD_FILE_WRITE | TD_FILE_APPEND | TD_FILE_READ | TD_FILE_TRUNC); + if (pFile == NULL) { + uError("failed to open file:./test.txt since %s", terrstr()); + return; + } + + const int batch = 10; + const int size = SLOW_LOG_SEND_SIZE/batch; + for(int i = 0; i < batch + 1; i++){ + char value[size] = {0}; + memset(value, '0' + i, size - 1); + if (taosWriteFile(pFile, value, strlen(value) + 1) < 0){ + uError("failed to write len to file:%p since %s", pFile, terrstr()); + } + } + + // Create a void pointer and set it up for testing + void* pTransporter = NULL; + + // Create an SEpSet object and set it up for testing + SEpSet* epSet = NULL; + + // Call the function to be tested + monitorReadSendSlowLog(pFile, pTransporter, epSet); + + char value[size] = {0}; + memset(value, '0', size - 1); + if (taosWriteFile(pFile, value, strlen(value) + 1) < 0){ + uError("failed to write len to file:%p since %s", pFile, terrstr()); + } + + monitorReadSendSlowLog(pFile, pTransporter, epSet); + + // Clean up any resources created for testing + taosCloseFile(&pFile); +} + +TEST(clientMonitorTest, ReadTwoFile) { + // Create a TdFilePtr object and set it up for testing + + TdFilePtr pFile = taosOpenFile("/tmp/tdengine_slow_log/tdengine-1-wewe", TD_FILE_CREATE | TD_FILE_WRITE | TD_FILE_APPEND | TD_FILE_READ | TD_FILE_TRUNC); + if (pFile == NULL) { + uError("failed to open file:./test.txt since %s", terrstr()); + return; + } + + const int batch = 10; + const int size = SLOW_LOG_SEND_SIZE/batch; + for(int i = 0; i < batch + 1; i++){ + char value[size] = {0}; + memset(value, '0' + i, size - 1); + if (taosWriteFile(pFile, value, strlen(value) + 1) < 0){ + uError("failed to write len to file:%p since %s", pFile, terrstr()); + } + } + + taosFsyncFile(pFile); + taosCloseFile(&pFile); + + pFile = taosOpenFile("/tmp/tdengine_slow_log/tdengine-2-wewe", TD_FILE_CREATE | TD_FILE_WRITE | TD_FILE_APPEND | TD_FILE_READ | TD_FILE_TRUNC); + if (pFile == NULL) { + uError("failed to open file:./test.txt since %s", terrstr()); + return; + } + + for(int i = 0; i < batch + 1; i++){ + char value[size] = {0}; + memset(value, '0' + i, size - 1); + if (taosWriteFile(pFile, value, strlen(value) + 1) < 0){ + uError("failed to write len to file:%p since %s", pFile, terrstr()); + } + } + + taosFsyncFile(pFile); + taosCloseFile(&pFile); + + SAppInstInfo pAppInfo = {0}; + pAppInfo.clusterId = 2; + pAppInfo.monitorParas.tsEnableMonitor = 1; + strcpy(tsTempDir,"/tmp"); + monitorSendAllSlowLogFromTempDir(&pAppInfo); + +} \ No newline at end of file diff --git a/source/client/test/clientTests.cpp b/source/client/test/clientTests.cpp index b5bad92dc4..1bc1fb2240 100644 --- a/source/client/test/clientTests.cpp +++ b/source/client/test/clientTests.cpp @@ -1525,6 +1525,13 @@ TEST(clientCase, sub_tb_test) { } TEST(clientCase, sub_tb_mt_test) { + char *user = NULL; + char *auth = NULL; + char *ip = NULL; + int port = 0; + char key[512] = {0}; + snprintf(key, sizeof(key), "%s:%s:%s:%d", user, auth, ip, port); + taos_options(TSDB_OPTION_CONFIGDIR, "~/first/cfg"); TdThread qid[20] = {0}; diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index c68dc85c29..8b821f9ede 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -178,8 +178,10 @@ int32_t tsRedirectMaxPeriod = 1000; int32_t tsMaxRetryWaitTime = 10000; bool tsUseAdapter = false; int32_t tsMetaCacheMaxSize = -1; // MB -int32_t tsSlowLogThreshold = 3; // seconds -int32_t tsSlowLogScope = SLOW_LOG_TYPE_ALL; +int32_t tsSlowLogThreshold = 10; // seconds +int32_t tsSlowLogThresholdTest = 10; // seconds +int32_t tsSlowLogScope = SLOW_LOG_TYPE_QUERY; +int32_t tsSlowLogMaxLen = 4096; int32_t tsTimeSeriesThreshold = 50; bool tsMultiResultFunctionStarReturnTags = false; @@ -541,9 +543,6 @@ static int32_t taosAddClientCfg(SConfig *pCfg) { return -1; if (cfgAddInt32(pCfg, "metaCacheMaxSize", tsMetaCacheMaxSize, -1, INT32_MAX, CFG_SCOPE_CLIENT, CFG_DYN_CLIENT) != 0) return -1; - if (cfgAddInt32(pCfg, "slowLogThreshold", tsSlowLogThreshold, 0, INT32_MAX, CFG_SCOPE_CLIENT, CFG_DYN_CLIENT) != 0) - return -1; - if (cfgAddString(pCfg, "slowLogScope", "", CFG_SCOPE_CLIENT, CFG_DYN_CLIENT) != 0) return -1; tsNumOfRpcThreads = tsNumOfCores / 2; tsNumOfRpcThreads = TRANGE(tsNumOfRpcThreads, 2, TSDB_MAX_RPC_THREADS); @@ -568,9 +567,6 @@ static int32_t taosAddClientCfg(SConfig *pCfg) { return -1; if (cfgAddBool(pCfg, "experimental", tsExperimental, CFG_SCOPE_BOTH, CFG_DYN_BOTH) != 0) return -1; - if (cfgAddBool(pCfg, "monitor", tsEnableMonitor, CFG_SCOPE_BOTH, CFG_DYN_BOTH) != 0) return -1; - if (cfgAddInt32(pCfg, "monitorInterval", tsMonitorInterval, 1, 200000, CFG_SCOPE_BOTH, CFG_DYN_NONE) != 0) return -1; - if (cfgAddBool(pCfg, "multiResultFunctionStarReturnTags", tsMultiResultFunctionStarReturnTags, CFG_SCOPE_CLIENT, CFG_DYN_CLIENT) != 0) return -1; @@ -698,6 +694,14 @@ static int32_t taosAddServerCfg(SConfig *pCfg) { if (cfgAddInt64(pCfg, "mndLogRetention", tsMndLogRetention, 500, 10000, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; if (cfgAddBool(pCfg, "skipGrant", tsMndSkipGrant, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; + if (cfgAddBool(pCfg, "monitor", tsEnableMonitor, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + if (cfgAddInt32(pCfg, "monitorInterval", tsMonitorInterval, 1, 86400, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + + if (cfgAddInt32(pCfg, "slowLogThresholdTest", tsSlowLogThresholdTest, 0, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + if (cfgAddInt32(pCfg, "slowLogThreshold", tsSlowLogThreshold, 1, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + if (cfgAddInt32(pCfg, "slowLogMaxLen", tsSlowLogMaxLen, 0, 16384, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + if (cfgAddString(pCfg, "slowLogScope", "", CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + if (cfgAddString(pCfg, "monitorFqdn", tsMonitorFqdn, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; if (cfgAddInt32(pCfg, "monitorPort", tsMonitorPort, 1, 65056, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; if (cfgAddInt32(pCfg, "monitorMaxLogs", tsMonitorMaxLogs, 1, 1000000, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; @@ -962,40 +966,52 @@ static void taosSetServerLogCfg(SConfig *pCfg) { sndDebugFlag = cfgGetItem(pCfg, "sndDebugFlag")->i32; } -static int32_t taosSetSlowLogScope(const char *pScope) { +static int32_t taosSetSlowLogScope(char *pScope) { if (NULL == pScope || 0 == strlen(pScope)) { - tsSlowLogScope = SLOW_LOG_TYPE_ALL; - return 0; + return SLOW_LOG_TYPE_QUERY; } - if (0 == strcasecmp(pScope, "all")) { - tsSlowLogScope = SLOW_LOG_TYPE_ALL; - return 0; + int32_t slowScope = 0; + + char* scope = NULL; + char *tmp = NULL; + while((scope = strsep(&pScope, "|")) != NULL){ + taosMemoryFreeClear(tmp); + tmp = strdup(scope); + strtrim(tmp); + if (0 == strcasecmp(tmp, "all")) { + slowScope |= SLOW_LOG_TYPE_ALL; + continue; + } + + if (0 == strcasecmp(tmp, "query")) { + slowScope |= SLOW_LOG_TYPE_QUERY; + continue; + } + + if (0 == strcasecmp(tmp, "insert")) { + slowScope |= SLOW_LOG_TYPE_INSERT; + continue; + } + + if (0 == strcasecmp(tmp, "others")) { + slowScope |= SLOW_LOG_TYPE_OTHERS; + continue; + } + + if (0 == strcasecmp(tmp, "none")) { + slowScope |= SLOW_LOG_TYPE_NULL; + continue; + } + + taosMemoryFreeClear(tmp); + uError("Invalid slowLog scope value:%s", pScope); + terrno = TSDB_CODE_INVALID_CFG_VALUE; + return -1; } - if (0 == strcasecmp(pScope, "query")) { - tsSlowLogScope = SLOW_LOG_TYPE_QUERY; - return 0; - } - - if (0 == strcasecmp(pScope, "insert")) { - tsSlowLogScope = SLOW_LOG_TYPE_INSERT; - return 0; - } - - if (0 == strcasecmp(pScope, "others")) { - tsSlowLogScope = SLOW_LOG_TYPE_OTHERS; - return 0; - } - - if (0 == strcasecmp(pScope, "none")) { - tsSlowLogScope = 0; - return 0; - } - - uError("Invalid slowLog scope value:%s", pScope); - terrno = TSDB_CODE_INVALID_CFG_VALUE; - return -1; + taosMemoryFreeClear(tmp); + return slowScope; } // for common configs @@ -1053,12 +1069,6 @@ static int32_t taosSetClientCfg(SConfig *pCfg) { tsEnableCrashReport = cfgGetItem(pCfg, "crashReporting")->bval; tsQueryMaxConcurrentTables = cfgGetItem(pCfg, "queryMaxConcurrentTables")->i64; tsMetaCacheMaxSize = cfgGetItem(pCfg, "metaCacheMaxSize")->i32; - tsSlowLogThreshold = cfgGetItem(pCfg, "slowLogThreshold")->i32; - tsEnableMonitor = cfgGetItem(pCfg, "monitor")->bval; - tsMonitorInterval = cfgGetItem(pCfg, "monitorInterval")->i32; - if (taosSetSlowLogScope(cfgGetItem(pCfg, "slowLogScope")->str)) { - return -1; - } tsCountAlwaysReturnValue = cfgGetItem(pCfg, "countAlwaysReturnValue")->i32; tsMaxRetryWaitTime = cfgGetItem(pCfg, "maxRetryWaitTime")->i32; @@ -1131,6 +1141,15 @@ static int32_t taosSetServerCfg(SConfig *pCfg) { tsSIMDEnable = (bool)cfgGetItem(pCfg, "simdEnable")->bval; tsTagFilterCache = (bool)cfgGetItem(pCfg, "tagFilterCache")->bval; + tsSlowLogThresholdTest = cfgGetItem(pCfg, "slowLogThresholdTest")->i32; + tsSlowLogThreshold = cfgGetItem(pCfg, "slowLogThreshold")->i32; + tsSlowLogMaxLen = cfgGetItem(pCfg, "slowLogMaxLen")->i32; + int32_t scope = taosSetSlowLogScope(cfgGetItem(pCfg, "slowLogScope")->str); + if(scope < 0){ + return -1; + } + tsSlowLogScope = scope; + tsEnableMonitor = cfgGetItem(pCfg, "monitor")->bval; tsMonitorInterval = cfgGetItem(pCfg, "monitorInterval")->i32; tstrncpy(tsMonitorFqdn, cfgGetItem(pCfg, "monitorFqdn")->str, TSDB_FQDN_LEN); @@ -1492,6 +1511,17 @@ static int32_t taosCfgDynamicOptionsForServer(SConfig *pCfg, const char *name) { return 0; } + if (strcasecmp("slowLogScope", name) == 0) { + int32_t scope = taosSetSlowLogScope(pItem->str); + if(scope < 0){ + cfgUnLock(pCfg); + return -1; + } + tsSlowLogScope = scope; + cfgUnLock(pCfg); + return 0; + } + { // 'bool/int32_t/int64_t/float/double' variables with general modification function static OptionNameAndVar debugOptions[] = { {"dDebugFlag", &dDebugFlag}, {"vDebugFlag", &vDebugFlag}, {"mDebugFlag", &mDebugFlag}, @@ -1509,6 +1539,9 @@ static int32_t taosCfgDynamicOptionsForServer(SConfig *pCfg, const char *name) { {"enableWhiteList", &tsEnableWhiteList}, {"telemetryReporting", &tsEnableTelem}, {"monitor", &tsEnableMonitor}, + {"monitorInterval", &tsMonitorInterval}, + {"slowLogThreshold", &tsSlowLogThreshold}, + {"slowLogMaxLen", &tsSlowLogMaxLen}, {"mndSdbWriteDelta", &tsMndSdbWriteDelta}, {"minDiskFreeSize", &tsMinDiskFreeSize}, @@ -1651,10 +1684,6 @@ static int32_t taosCfgDynamicOptionsForClient(SConfig *pCfg, const char *name) { tsLogSpace.reserved = (int64_t)(((double)pItem->fval) * 1024 * 1024 * 1024); uInfo("%s set to %" PRId64, name, tsLogSpace.reserved); matched = true; - } else if (strcasecmp("monitor", name) == 0) { - tsEnableMonitor = pItem->bval; - uInfo("%s set to %d", name, tsEnableMonitor); - matched = true; } break; } @@ -1698,13 +1727,6 @@ static int32_t taosCfgDynamicOptionsForClient(SConfig *pCfg, const char *name) { cfgSetItem(pCfg, "firstEp", tsFirst, pFirstEpItem->stype, false); uInfo("localEp set to '%s', tsFirst set to '%s'", tsLocalEp, tsFirst); matched = true; - } else if (strcasecmp("slowLogScope", name) == 0) { - if (taosSetSlowLogScope(pItem->str)) { - cfgUnLock(pCfg); - return -1; - } - uInfo("%s set to %s", name, pItem->str); - matched = true; } break; } @@ -1765,7 +1787,6 @@ static int32_t taosCfgDynamicOptionsForClient(SConfig *pCfg, const char *name) { {"queryUseNodeAllocator", &tsQueryUseNodeAllocator}, {"smlDot2Underline", &tsSmlDot2Underline}, {"shellActivityTimer", &tsShellActivityTimer}, - {"slowLogThreshold", &tsSlowLogThreshold}, {"useAdapter", &tsUseAdapter}, {"experimental", &tsExperimental}, {"multiResultFunctionStarReturnTags", &tsMultiResultFunctionStarReturnTags}, diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index d465e24d5b..cd663d8ee1 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -69,6 +69,24 @@ pReq->sql = NULL; \ } while (0) +static int32_t tSerializeSMonitorParas(SEncoder *encoder, const SMonitorParas* pMonitorParas) { + if (tEncodeI8(encoder, pMonitorParas->tsEnableMonitor) < 0) return -1; + if (tEncodeI32(encoder, pMonitorParas->tsMonitorInterval) < 0) return -1; + if (tEncodeI32(encoder, pMonitorParas->tsSlowLogScope) < 0) return -1; + if (tEncodeI32(encoder, pMonitorParas->tsSlowLogMaxLen) < 0) return -1; + if (tEncodeI32(encoder, pMonitorParas->tsSlowLogThreshold) < 0) return -1; + return 0; +} + +static int32_t tDeserializeSMonitorParas(SDecoder *decoder, SMonitorParas* pMonitorParas){ + if (tDecodeI8(decoder, (int8_t *)&pMonitorParas->tsEnableMonitor) < 0) return -1; + if (tDecodeI32(decoder, &pMonitorParas->tsMonitorInterval) < 0) return -1; + if (tDecodeI32(decoder, &pMonitorParas->tsSlowLogScope) < 0) return -1; + if (tDecodeI32(decoder, &pMonitorParas->tsSlowLogMaxLen) < 0) return -1; + if (tDecodeI32(decoder, &pMonitorParas->tsSlowLogThreshold) < 0) return -1; + return 0; +} + static int32_t tDecodeSVAlterTbReqCommon(SDecoder *pDecoder, SVAlterTbReq *pReq); static int32_t tDecodeSBatchDeleteReqCommon(SDecoder *pDecoder, SBatchDeleteReq *pReq); static int32_t tEncodeTableTSMAInfoRsp(SEncoder *pEncoder, const STableTSMAInfoRsp *pRsp); @@ -513,6 +531,7 @@ int32_t tSerializeSClientHbBatchRsp(void *buf, int32_t bufLen, const SClientHbBa SClientHbRsp *pRsp = taosArrayGet(pBatchRsp->rsps, i); if (tSerializeSClientHbRsp(&encoder, pRsp) < 0) return -1; } + if (tSerializeSMonitorParas(&encoder, &pBatchRsp->monitorParas) < 0) return -1; tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -540,6 +559,10 @@ int32_t tDeserializeSClientHbBatchRsp(void *buf, int32_t bufLen, SClientHbBatchR taosArrayPush(pBatchRsp->rsps, &rsp); } + if (!tDecodeIsEnd(&decoder)) { + if (tDeserializeSMonitorParas(&decoder, &pBatchRsp->monitorParas) < 0) return -1; + } + tEndDecode(&decoder); tDecoderClear(&decoder); return 0; @@ -1303,6 +1326,9 @@ int32_t tSerializeSStatusReq(void *buf, int32_t bufLen, SStatusReq *pReq) { } if (tEncodeI64(&encoder, pReq->ipWhiteVer) < 0) return -1; + + if (tSerializeSMonitorParas(&encoder, &pReq->clusterCfg.monitorParas) < 0) return -1; + tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -1421,6 +1447,10 @@ int32_t tDeserializeSStatusReq(void *buf, int32_t bufLen, SStatusReq *pReq) { if (tDecodeI64(&decoder, &pReq->ipWhiteVer) < 0) return -1; } + if (!tDecodeIsEnd(&decoder)) { + if (tDeserializeSMonitorParas(&decoder, &pReq->clusterCfg.monitorParas) < 0) return -1; + } + tEndDecode(&decoder); tDecoderClear(&decoder); return 0; @@ -1516,6 +1546,7 @@ int32_t tSerializeSStatisReq(void *buf, int32_t bufLen, SStatisReq *pReq) { if (tEncodeI32(&encoder, pReq->contLen) < 0) return -1; if (tEncodeCStr(&encoder, pReq->pCont) < 0) return -1; + if (tEncodeI8(&encoder, pReq->type) < 0) return -1; tEndEncode(&encoder); @@ -1536,7 +1567,9 @@ int32_t tDeserializeSStatisReq(void *buf, int32_t bufLen, SStatisReq *pReq) { if (pReq->pCont == NULL) return -1; if (tDecodeCStrTo(&decoder, pReq->pCont) < 0) return -1; } - + if (!tDecodeIsEnd(&decoder)) { + if (tDecodeI8(&decoder, (int8_t*)&pReq->type) < 0) return -1; + } tEndDecode(&decoder); tDecoderClear(&decoder); return 0; @@ -5139,6 +5172,7 @@ int32_t tSerializeSConnectRsp(void *buf, int32_t bufLen, SConnectRsp *pRsp) { if (tEncodeI32(&encoder, pRsp->passVer) < 0) return -1; if (tEncodeI32(&encoder, pRsp->authVer) < 0) return -1; if (tEncodeI64(&encoder, pRsp->whiteListVer) < 0) return -1; + if (tSerializeSMonitorParas(&encoder, &pRsp->monitorParas) < 0) return -1; tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -5180,6 +5214,9 @@ int32_t tDeserializeSConnectRsp(void *buf, int32_t bufLen, SConnectRsp *pRsp) { } else { pRsp->whiteListVer = 0; } + if (!tDecodeIsEnd(&decoder)) { + if (tDeserializeSMonitorParas(&decoder, &pRsp->monitorParas) < 0) return -1; + } tEndDecode(&decoder); tDecoderClear(&decoder); diff --git a/source/common/test/commonTests.cpp b/source/common/test/commonTests.cpp index d30b26e564..af7f3c373f 100644 --- a/source/common/test/commonTests.cpp +++ b/source/common/test/commonTests.cpp @@ -726,4 +726,118 @@ TEST(AlreadyAddGroupIdTest, GroupIdAddedWithDifferentLength) { EXPECT_FALSE(result); } +#define SLOW_LOG_TYPE_NULL 0x0 +#define SLOW_LOG_TYPE_QUERY 0x1 +#define SLOW_LOG_TYPE_INSERT 0x2 +#define SLOW_LOG_TYPE_OTHERS 0x4 +#define SLOW_LOG_TYPE_ALL 0xFFFFFFFF + +static int32_t taosSetSlowLogScope(char *pScope) { + if (NULL == pScope || 0 == strlen(pScope)) { + return SLOW_LOG_TYPE_QUERY; + } + + int32_t slowScope = 0; + + char* scope = NULL; + char *tmp = NULL; + while((scope = strsep(&pScope, "|")) != NULL){ + taosMemoryFreeClear(tmp); + tmp = strdup(scope); + strtrim(tmp); + if (0 == strcasecmp(tmp, "all")) { + slowScope |= SLOW_LOG_TYPE_ALL; + continue; + } + + if (0 == strcasecmp(tmp, "query")) { + slowScope |= SLOW_LOG_TYPE_QUERY; + continue; + } + + if (0 == strcasecmp(tmp, "insert")) { + slowScope |= SLOW_LOG_TYPE_INSERT; + continue; + } + + if (0 == strcasecmp(tmp, "others")) { + slowScope |= SLOW_LOG_TYPE_OTHERS; + continue; + } + + if (0 == strcasecmp(tmp, "none")) { + slowScope |= SLOW_LOG_TYPE_NULL; + continue; + } + + taosMemoryFreeClear(tmp); + uError("Invalid slowLog scope value:%s", pScope); + terrno = TSDB_CODE_INVALID_CFG_VALUE; + return -1; + } + + taosMemoryFreeClear(tmp); + return slowScope; +} + +TEST(TaosSetSlowLogScopeTest, NullPointerInput) { + char *pScope = NULL; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, SLOW_LOG_TYPE_QUERY); +} + +TEST(TaosSetSlowLogScopeTest, EmptyStringInput) { + char pScope[1] = ""; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, SLOW_LOG_TYPE_QUERY); +} + +TEST(TaosSetSlowLogScopeTest, AllScopeInput) { + char pScope[] = "all"; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, SLOW_LOG_TYPE_ALL); +} + +TEST(TaosSetSlowLogScopeTest, QueryScopeInput) { + char pScope[] = " query"; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, SLOW_LOG_TYPE_QUERY); +} + +TEST(TaosSetSlowLogScopeTest, InsertScopeInput) { + char pScope[] = "insert"; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, SLOW_LOG_TYPE_INSERT); +} + +TEST(TaosSetSlowLogScopeTest, OthersScopeInput) { + char pScope[] = "others"; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, SLOW_LOG_TYPE_OTHERS); +} + +TEST(TaosSetSlowLogScopeTest, NoneScopeInput) { + char pScope[] = "none"; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, SLOW_LOG_TYPE_NULL); +} + +TEST(TaosSetSlowLogScopeTest, InvalidScopeInput) { + char pScope[] = "invalid"; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, -1); +} + +TEST(TaosSetSlowLogScopeTest, MixedScopesInput) { + char pScope[] = "query|insert|others|none"; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, (SLOW_LOG_TYPE_QUERY | SLOW_LOG_TYPE_INSERT | SLOW_LOG_TYPE_OTHERS)); +} + +TEST(TaosSetSlowLogScopeTest, MixedScopesInputWithSpaces) { + char pScope[] = "query | insert | others "; + int32_t result = taosSetSlowLogScope(pScope); + EXPECT_EQ(result, (SLOW_LOG_TYPE_QUERY | SLOW_LOG_TYPE_INSERT | SLOW_LOG_TYPE_OTHERS)); +} + #pragma GCC diagnostic pop diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c index 800f7f7864..cb0bc6102c 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c @@ -116,6 +116,11 @@ void dmSendStatusReq(SDnodeMgmt *pMgmt) { req.clusterCfg.enableWhiteList = tsEnableWhiteList ? 1 : 0; req.clusterCfg.encryptionKeyStat = tsEncryptionKeyStat; req.clusterCfg.encryptionKeyChksum = tsEncryptionKeyChksum; + req.clusterCfg.monitorParas.tsEnableMonitor = tsEnableMonitor; + req.clusterCfg.monitorParas.tsMonitorInterval = tsMonitorInterval; + req.clusterCfg.monitorParas.tsSlowLogScope = tsSlowLogScope; + req.clusterCfg.monitorParas.tsSlowLogMaxLen = tsSlowLogMaxLen; + req.clusterCfg.monitorParas.tsSlowLogThreshold = tsSlowLogThreshold; char timestr[32] = "1970-01-01 00:00:00.00"; (void)taosParseTime(timestr, &req.clusterCfg.checkTime, (int32_t)strlen(timestr), TSDB_TIME_PRECISION_MILLI, 0); memcpy(req.clusterCfg.timezone, tsTimezoneStr, TD_TIMEZONE_LEN); diff --git a/source/dnode/mnode/impl/src/mndDnode.c b/source/dnode/mnode/impl/src/mndDnode.c index d02aec98ca..35900fc1dd 100644 --- a/source/dnode/mnode/impl/src/mndDnode.c +++ b/source/dnode/mnode/impl/src/mndDnode.c @@ -438,7 +438,20 @@ void mndGetDnodeData(SMnode *pMnode, SArray *pDnodeInfo) { } } +#define CHECK_MONITOR_PARA(para) \ +if (pCfg->monitorParas.para != para) { \ + mError("dnode:%d, para:%d inconsistent with cluster:%d", pDnode->id, pCfg->monitorParas.para, para); \ + terrno = TSDB_CODE_DNODE_INVALID_STATUS_INTERVAL; \ + return DND_REASON_STATUS_INTERVAL_NOT_MATCH;\ +} + static int32_t mndCheckClusterCfgPara(SMnode *pMnode, SDnodeObj *pDnode, const SClusterCfg *pCfg) { + CHECK_MONITOR_PARA(tsEnableMonitor); + CHECK_MONITOR_PARA(tsMonitorInterval); + CHECK_MONITOR_PARA(tsSlowLogThreshold); + CHECK_MONITOR_PARA(tsSlowLogMaxLen); + CHECK_MONITOR_PARA(tsSlowLogScope); + if (pCfg->statusInterval != tsStatusInterval) { mError("dnode:%d, statusInterval:%d inconsistent with cluster:%d", pDnode->id, pCfg->statusInterval, tsStatusInterval); @@ -530,6 +543,8 @@ static bool mndUpdateMnodeState(SMnodeObj *pObj, SMnodeLoad *pMload) { return stateChanged; } +extern char* tsMonFwUri; +extern char* tsMonSlowLogUri; static int32_t mndProcessStatisReq(SRpcMsg *pReq) { SMnode *pMnode = pReq->info.node; SStatisReq statisReq = {0}; @@ -547,188 +562,14 @@ static int32_t mndProcessStatisReq(SRpcMsg *pReq) { mInfo("process statis req,\n %s", statisReq.pCont); } - SJson *pJson = tjsonParse(statisReq.pCont); - - int32_t ts_size = tjsonGetArraySize(pJson); - - for (int32_t i = 0; i < ts_size; i++) { - SJson *item = tjsonGetArrayItem(pJson, i); - - SJson *tables = tjsonGetObjectItem(item, "tables"); - - int32_t tableSize = tjsonGetArraySize(tables); - for (int32_t i = 0; i < tableSize; i++) { - SJson *table = tjsonGetArrayItem(tables, i); - - char tableName[MONITOR_TABLENAME_LEN] = {0}; - tjsonGetStringValue(table, "name", tableName); - - SJson *metricGroups = tjsonGetObjectItem(table, "metric_groups"); - - int32_t size = tjsonGetArraySize(metricGroups); - for (int32_t i = 0; i < size; i++) { - SJson *item = tjsonGetArrayItem(metricGroups, i); - - SJson *arrayTag = tjsonGetObjectItem(item, "tags"); - - int32_t tagSize = tjsonGetArraySize(arrayTag); - for (int32_t j = 0; j < tagSize; j++) { - SJson *item = tjsonGetArrayItem(arrayTag, j); - - char tagName[MONITOR_TAG_NAME_LEN] = {0}; - tjsonGetStringValue(item, "name", tagName); - - if (strncmp(tagName, "cluster_id", MONITOR_TAG_NAME_LEN) == 0) { - tjsonDeleteItemFromObject(item, "value"); - tjsonAddStringToObject(item, "value", strClusterId); - } - } - } - } - } - - char *pCont = tjsonToString(pJson); - monSendContent(pCont); - - if (pJson != NULL) { - tjsonDelete(pJson); - pJson = NULL; - } - - if (pCont != NULL) { - taosMemoryFree(pCont); - pCont = NULL; + if (statisReq.type == MONITOR_TYPE_COUNTER){ + monSendContent(statisReq.pCont, tsMonFwUri); + }else if(statisReq.type == MONITOR_TYPE_SLOW_LOG){ + monSendContent(statisReq.pCont, tsMonSlowLogUri); } tFreeSStatisReq(&statisReq); return 0; - - /* - SJson* pJson = tjsonParse(statisReq.pCont); - - int32_t ts_size = tjsonGetArraySize(pJson); - - for(int32_t i = 0; i < ts_size; i++){ - SJson* item = tjsonGetArrayItem(pJson, i); - - SJson* tables = tjsonGetObjectItem(item, "tables"); - - int32_t tableSize = tjsonGetArraySize(tables); - for(int32_t i = 0; i < tableSize; i++){ - SJson* table = tjsonGetArrayItem(tables, i); - - char tableName[MONITOR_TABLENAME_LEN] = {0}; - tjsonGetStringValue(table, "name", tableName); - - SJson* metricGroups = tjsonGetObjectItem(table, "metric_groups"); - - int32_t size = tjsonGetArraySize(metricGroups); - for(int32_t i = 0; i < size; i++){ - SJson* item = tjsonGetArrayItem(metricGroups, i); - - SJson* arrayTag = tjsonGetObjectItem(item, "tags"); - - int32_t tagSize = tjsonGetArraySize(arrayTag); - - char** labels = taosMemoryMalloc(sizeof(char*) * tagSize); - char** sample_labels = taosMemoryMalloc(sizeof(char*) * tagSize); - - for(int32_t j = 0; j < tagSize; j++){ - SJson* item = tjsonGetArrayItem(arrayTag, j); - - *(labels + j) = taosMemoryMalloc(MONITOR_TAG_NAME_LEN); - tjsonGetStringValue(item, "name", *(labels + j)); - - *(sample_labels + j) = taosMemoryMalloc(MONITOR_TAG_VALUE_LEN); - tjsonGetStringValue(item, "value", *(sample_labels + j)); - if(strncmp(*(labels + j), "cluster_id", MONITOR_TAG_NAME_LEN) == 0) { - strncpy(*(sample_labels + j), strClusterId, MONITOR_TAG_VALUE_LEN); - } - } - - SJson* metrics = tjsonGetObjectItem(item, "metrics"); - - int32_t metricLen = tjsonGetArraySize(metrics); - for(int32_t j = 0; j < metricLen; j++){ - SJson *item = tjsonGetArrayItem(metrics, j); - - char name[MONITOR_METRIC_NAME_LEN] = {0}; - tjsonGetStringValue(item, "name", name); - - double value = 0; - tjsonGetDoubleValue(item, "value", &value); - - double type = 0; - tjsonGetDoubleValue(item, "type", &type); - - int32_t metricNameLen = strlen(name) + strlen(tableName) + 2; - char* metricName = taosMemoryMalloc(metricNameLen); - memset(metricName, 0, metricNameLen); - sprintf(metricName, "%s:%s", tableName, name); - - taos_metric_t* metric = taos_collector_registry_get_metric(metricName); - if(metric == NULL){ - if(type == 0){ - metric = taos_counter_new(metricName, "", tagSize, (const char**)labels); - } - if(type == 1){ - metric = taos_gauge_new(metricName, "", tagSize, (const char**)labels); - } - mTrace("fail to get metric from registry, new one metric:%p", metric); - - if(taos_collector_registry_register_metric(metric) == 1){ - if(type == 0){ - taos_counter_destroy(metric); - } - if(type == 1){ - taos_gauge_destroy(metric); - } - - metric = taos_collector_registry_get_metric(metricName); - - mTrace("fail to register metric, get metric from registry:%p", metric); - } - else{ - mTrace("succeed to register metric:%p", metric); - } - } - else{ - mTrace("get metric from registry:%p", metric); - } - - if(type == 0){ - taos_counter_add(metric, value, (const char**)sample_labels); - } - if(type == 1){ - taos_gauge_set(metric, value, (const char**)sample_labels); - } - - taosMemoryFreeClear(metricName); - } - - for(int32_t j = 0; j < tagSize; j++){ - taosMemoryFreeClear(*(labels + j)); - taosMemoryFreeClear(*(sample_labels + j)); - } - - taosMemoryFreeClear(sample_labels); - taosMemoryFreeClear(labels); - } - } - - } - - code = 0; - - _OVER: - if(pJson != NULL){ - tjsonDelete(pJson); - pJson = NULL; - } - - tFreeSStatisReq(&statisReq); - return code; - */ } static int32_t mndUpdateDnodeObj(SMnode *pMnode, SDnodeObj *pDnode) { diff --git a/source/dnode/mnode/impl/src/mndProfile.c b/source/dnode/mnode/impl/src/mndProfile.c index fafdb539fb..2b83419dce 100644 --- a/source/dnode/mnode/impl/src/mndProfile.c +++ b/source/dnode/mnode/impl/src/mndProfile.c @@ -281,7 +281,6 @@ static int32_t mndProcessConnectReq(SRpcMsg *pReq) { } } -_CONNECT: pConn = mndCreateConn(pMnode, pReq->info.conn.user, connReq.connType, pReq->info.conn.clientIp, pReq->info.conn.clientPort, connReq.pid, connReq.app, connReq.startTime); if (pConn == NULL) { @@ -301,6 +300,11 @@ _CONNECT: connectRsp.passVer = pUser->passVersion; connectRsp.authVer = pUser->authVersion; connectRsp.whiteListVer = pUser->ipWhiteListVer; + connectRsp.monitorParas.tsEnableMonitor = tsEnableMonitor; + connectRsp.monitorParas.tsMonitorInterval = tsMonitorInterval; + connectRsp.monitorParas.tsSlowLogScope = tsSlowLogScope; + connectRsp.monitorParas.tsSlowLogMaxLen = tsSlowLogMaxLen; + connectRsp.monitorParas.tsSlowLogThreshold = tsSlowLogThreshold; strcpy(connectRsp.sVer, version); snprintf(connectRsp.sDetailVer, sizeof(connectRsp.sDetailVer), "ver:%s\nbuild:%s\ngitinfo:%s", version, buildinfo, @@ -657,6 +661,11 @@ static int32_t mndProcessHeartBeatReq(SRpcMsg *pReq) { SClientHbBatchRsp batchRsp = {0}; batchRsp.svrTimestamp = taosGetTimestampSec(); batchRsp.rsps = taosArrayInit(0, sizeof(SClientHbRsp)); + batchRsp.monitorParas.tsEnableMonitor = tsEnableMonitor; + batchRsp.monitorParas.tsMonitorInterval = tsMonitorInterval; + batchRsp.monitorParas.tsSlowLogThreshold = tsSlowLogThreshold; + batchRsp.monitorParas.tsSlowLogMaxLen = tsSlowLogMaxLen; + batchRsp.monitorParas.tsSlowLogScope = tsSlowLogScope; int32_t sz = taosArrayGetSize(batchReq.reqs); for (int i = 0; i < sz; i++) { diff --git a/source/libs/catalog/inc/catalogInt.h b/source/libs/catalog/inc/catalogInt.h index c5c14950b2..6aaa79bb31 100644 --- a/source/libs/catalog/inc/catalogInt.h +++ b/source/libs/catalog/inc/catalogInt.h @@ -363,7 +363,7 @@ typedef struct SCtgUserAuth { } SCtgUserAuth; typedef struct SCatalog { - uint64_t clusterId; + int64_t clusterId; bool stopUpdate; SDynViewVersion dynViewVer; SHashObj* userCache; // key:user, value:SCtgUserAuth diff --git a/source/libs/catalog/src/catalog.c b/source/libs/catalog/src/catalog.c index e7d5a89d6f..4048c8841b 100644 --- a/source/libs/catalog/src/catalog.c +++ b/source/libs/catalog/src/catalog.c @@ -834,7 +834,7 @@ int32_t catalogInit(SCatalogCfg* cfg) { return TSDB_CODE_SUCCESS; } -int32_t catalogGetHandle(uint64_t clusterId, SCatalog** catalogHandle) { +int32_t catalogGetHandle(int64_t clusterId, SCatalog** catalogHandle) { if (NULL == catalogHandle) { CTG_ERR_RET(TSDB_CODE_CTG_INVALID_INPUT); } diff --git a/source/libs/catalog/src/ctgUtil.c b/source/libs/catalog/src/ctgUtil.c index 6da1da2b52..eac716339b 100644 --- a/source/libs/catalog/src/ctgUtil.c +++ b/source/libs/catalog/src/ctgUtil.c @@ -410,7 +410,7 @@ void ctgFreeHandle(SCatalog* pCtg) { return; } - uint64_t clusterId = pCtg->clusterId; + int64_t clusterId = pCtg->clusterId; ctgFreeMetaRent(&pCtg->dbRent); ctgFreeMetaRent(&pCtg->stbRent); @@ -498,7 +498,7 @@ void ctgClearHandle(SCatalog* pCtg) { return; } - uint64_t clusterId = pCtg->clusterId; + int64_t clusterId = pCtg->clusterId; ctgFreeMetaRent(&pCtg->dbRent); ctgFreeMetaRent(&pCtg->stbRent); diff --git a/source/libs/monitor/src/clientMonitor.c b/source/libs/monitor/src/clientMonitor.c deleted file mode 100644 index 0891932583..0000000000 --- a/source/libs/monitor/src/clientMonitor.c +++ /dev/null @@ -1,210 +0,0 @@ -#include "clientMonitor.h" -#include "os.h" -#include "tmisce.h" -#include "ttime.h" -#include "ttimer.h" -#include "tglobal.h" - -SRWLatch monitorLock; -void* tmrClientMonitor; -tmr_h tmrStartHandle; -SHashObj* clusterMonitorInfoTable; - -static int interval = 30 * 1000; -static int sendBathchSize = 1; - -int32_t sendReport(ClientMonitor* pMonitor, char* pCont); -void generateClusterReport(ClientMonitor* pMonitor, bool send) { - char ts[50]; - sprintf(ts, "%" PRId64, taosGetTimestamp(TSDB_TIME_PRECISION_MILLI)); - char* pCont = (char*)taos_collector_registry_bridge_new(pMonitor->registry, ts, "%" PRId64, NULL); - if(NULL == pCont) { - uError("generateClusterReport failed, get null content."); - return; - } - if (send && strlen(pCont) != 0) { - if (sendReport(pMonitor, pCont) == 0) { - taos_collector_registry_clear_batch(pMonitor->registry); - } - } - taosMemoryFreeClear(pCont); -} - -void reportSendProcess(void* param, void* tmrId) { - taosTmrReset(reportSendProcess, tsMonitorInterval * 1000, NULL, tmrClientMonitor, &tmrStartHandle); - taosRLockLatch(&monitorLock); - - static int index = 0; - index++; - ClientMonitor** ppMonitor = (ClientMonitor**)taosHashIterate(clusterMonitorInfoTable, NULL); - while (ppMonitor != NULL && *ppMonitor != NULL) { - ClientMonitor* pMonitor = *ppMonitor; - generateClusterReport(*ppMonitor, index == sendBathchSize); - ppMonitor = taosHashIterate(clusterMonitorInfoTable, ppMonitor); - } - - if (index == sendBathchSize) index = 0; - taosRUnLockLatch(&monitorLock); -} - -void monitorClientInitOnce() { - static int8_t init = 0; - if (atomic_exchange_8(&init, 1) == 0) { - uInfo("tscMonitorInit once."); - clusterMonitorInfoTable = - (SHashObj*)taosHashInit(64, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), false, HASH_ENTRY_LOCK); - - tmrClientMonitor = taosTmrInit(0, 0, 0, "MONITOR"); - tmrStartHandle = taosTmrStart(reportSendProcess, tsMonitorInterval * 1000, NULL, tmrClientMonitor); - if(tsMonitorInterval < 1){ - interval = 30 * 1000; - } else { - interval = tsMonitorInterval * 1000; - } - if (tsMonitorInterval < 10) { - sendBathchSize = (10 / sendBathchSize) + 1; - } - taosInitRWLatch(&monitorLock); - } -} - -void createMonitorClient(const char* clusterKey, SEpSet epSet, void* pTransporter) { - if (clusterKey == NULL || strlen(clusterKey) == 0) { - uError("createMonitorClient failed, clusterKey is NULL"); - return; - } - taosWLockLatch(&monitorLock); - if (taosHashGet(clusterMonitorInfoTable, clusterKey, strlen(clusterKey)) == NULL) { - uInfo("createMonitorClient for %s.", clusterKey); - ClientMonitor* pMonitor = taosMemoryCalloc(1, sizeof(ClientMonitor)); - snprintf(pMonitor->clusterKey, sizeof(pMonitor->clusterKey), "%s", clusterKey); - pMonitor->registry = taos_collector_registry_new(clusterKey); - pMonitor->colector = taos_collector_new(clusterKey); - epsetAssign(&pMonitor->epSet, &epSet); - pMonitor->pTransporter = pTransporter; - - taos_collector_registry_register_collector(pMonitor->registry, pMonitor->colector); - pMonitor->counters = - (SHashObj*)taosHashInit(64, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), false, HASH_ENTRY_LOCK); - - taosHashPut(clusterMonitorInfoTable, clusterKey, strlen(clusterKey), &pMonitor, sizeof(ClientMonitor*)); - uInfo("createMonitorClient for %s finished %p.", clusterKey, pMonitor); - } - taosWUnLockLatch(&monitorLock); -} - -static int32_t monitorReportAsyncCB(void* param, SDataBuf* pMsg, int32_t code) { - static int32_t emptyRspNum = 0; - if (TSDB_CODE_SUCCESS != code) { - uError("found error in monitorReport send callback, code:%d, please check the network.", code); - } - if (pMsg) { - taosMemoryFree(pMsg->pData); - taosMemoryFree(pMsg->pEpSet); - } - return code; -} - -int32_t sendReport(ClientMonitor* pMonitor, char* pCont) { - SStatisReq sStatisReq; - sStatisReq.pCont = pCont; - sStatisReq.contLen = strlen(pCont); - - int tlen = tSerializeSStatisReq(NULL, 0, &sStatisReq); - if (tlen < 0) return 0; - void* buf = taosMemoryMalloc(tlen); - if (buf == NULL) { - terrno = TSDB_CODE_OUT_OF_MEMORY; - return -1; - } - tSerializeSStatisReq(buf, tlen, &sStatisReq); - - SMsgSendInfo* pInfo = taosMemoryCalloc(1, sizeof(SMsgSendInfo)); - if (pInfo == NULL) { - terrno = TSDB_CODE_OUT_OF_MEMORY; - return -1; - } - pInfo->fp = monitorReportAsyncCB; - pInfo->msgInfo.pData = buf; - pInfo->msgInfo.len = tlen; - pInfo->msgType = TDMT_MND_STATIS; - // pInfo->param = taosMemoryMalloc(sizeof(int32_t)); - // *(int32_t*)pInfo->param = i; - pInfo->paramFreeFp = taosMemoryFree; - pInfo->requestId = tGenIdPI64(); - pInfo->requestObjRefId = 0; - - int64_t transporterId = 0; - return asyncSendMsgToServer(pMonitor->pTransporter, &pMonitor->epSet, &transporterId, pInfo); -} - -void clusterMonitorInit(const char* clusterKey, SEpSet epSet, void* pTransporter) { - monitorClientInitOnce(); - createMonitorClient(clusterKey, epSet, pTransporter); -} - -taos_counter_t* createClusterCounter(const char* clusterKey, const char* name, const char* help, size_t label_key_count, - const char** label_keys) { - ClientMonitor** ppMonitor = (ClientMonitor**)taosHashGet(clusterMonitorInfoTable, clusterKey, strlen(clusterKey)); - - if (ppMonitor != NULL && *ppMonitor != NULL) { - ClientMonitor* pMonitor = *ppMonitor; - taos_counter_t** ppCounter = (taos_counter_t**)taosHashGet(pMonitor->counters, name, strlen(name)); - if (ppCounter != NULL && *ppCounter != NULL) { - taosHashRemove(pMonitor->counters, name, strlen(name)); - uInfo("createClusterCounter remove old counter: %s.", name); - } - - taos_counter_t* newCounter = taos_counter_new(name, help, label_key_count, label_keys); - if (newCounter != NULL) { - taos_collector_add_metric(pMonitor->colector, newCounter); - taosHashPut(pMonitor->counters, name, strlen(name), &newCounter, sizeof(taos_counter_t*)); - uInfo("createClusterCounter %s(%p):%s : %p.", pMonitor->clusterKey, pMonitor, name, newCounter); - return newCounter; - } else { - return NULL; - } - } else { - return NULL; - } - return NULL; -} - -int taosClusterCounterInc(const char* clusterKey, const char* counterName, const char** label_values) { - taosRLockLatch(&monitorLock); - ClientMonitor** ppMonitor = (ClientMonitor**)taosHashGet(clusterMonitorInfoTable, clusterKey, strlen(clusterKey)); - - if (ppMonitor != NULL && *ppMonitor != NULL) { - ClientMonitor* pMonitor = *ppMonitor; - taos_counter_t** ppCounter = (taos_counter_t**)taosHashGet(pMonitor->counters, counterName, strlen(counterName)); - if (ppCounter != NULL && *ppCounter != NULL) { - taos_counter_inc(*ppCounter, label_values); - } else { - uError("taosClusterCounterInc not found pCounter %s:%s.", clusterKey, counterName); - } - } else { - uError("taosClusterCounterInc not found pMonitor %s.", clusterKey); - } - taosRUnLockLatch(&monitorLock); - return 0; -} - -void clusterMonitorClose(const char* clusterKey) { - taosWLockLatch(&monitorLock); - ClientMonitor** ppMonitor = (ClientMonitor**)taosHashGet(clusterMonitorInfoTable, clusterKey, strlen(clusterKey)); - - if (ppMonitor != NULL && *ppMonitor != NULL) { - ClientMonitor* pMonitor = *ppMonitor; - uInfo("clusterMonitorClose valule:%p clusterKey:%s.", pMonitor, pMonitor->clusterKey); - taosHashCleanup(pMonitor->counters); - taos_collector_registry_destroy(pMonitor->registry); - taosMemoryFree(pMonitor); - taosHashRemove(clusterMonitorInfoTable, clusterKey, strlen(clusterKey)); - } - taosWUnLockLatch(&monitorLock); -} - -const char* resultStr(SQL_RESULT_CODE code) { - static const char* result_state[] = {"Success", "Failed", "Cancel"}; - return result_state[code]; -} diff --git a/source/libs/monitor/src/monMain.c b/source/libs/monitor/src/monMain.c index 4ecc6f1261..21c196872c 100644 --- a/source/libs/monitor/src/monMain.c +++ b/source/libs/monitor/src/monMain.c @@ -24,6 +24,7 @@ SMonitor tsMonitor = {0}; char* tsMonUri = "/report"; char* tsMonFwUri = "/general-metric"; +char* tsMonSlowLogUri = "/slow-sql-detail-batch"; char* tsMonFwBasicUri = "/taosd-cluster-basic"; void monRecordLog(int64_t ts, ELogLevel level, const char *content) { @@ -631,7 +632,7 @@ void monGenAndSendReportBasic() { monCleanupMonitorInfo(pMonitor); } -void monSendContent(char *pCont) { +void monSendContent(char *pCont, const char* uri) { if (!tsEnableMonitor || tsMonitorFqdn[0] == 0 || tsMonitorPort == 0) return; if(tsMonitorLogProtocol){ if (pCont != NULL){ @@ -640,7 +641,7 @@ void monSendContent(char *pCont) { } if (pCont != NULL) { EHttpCompFlag flag = tsMonitor.cfg.comp ? HTTP_GZIP : HTTP_FLAT; - if (taosSendHttpReport(tsMonitor.cfg.server, tsMonFwUri, tsMonitor.cfg.port, pCont, strlen(pCont), flag) != 0) { + if (taosSendHttpReport(tsMonitor.cfg.server, uri, tsMonitor.cfg.port, pCont, strlen(pCont), flag) != 0) { uError("failed to send monitor msg"); } } diff --git a/source/os/src/osEnv.c b/source/os/src/osEnv.c index 54107db325..3ebf20e94e 100644 --- a/source/os/src/osEnv.c +++ b/source/os/src/osEnv.c @@ -77,7 +77,9 @@ void osDefaultInit() { } strcpy(tsDataDir, TD_DATA_DIR_PATH); strcpy(tsLogDir, TD_LOG_DIR_PATH); - strcpy(tsTempDir, TD_TMP_DIR_PATH); + if(strlen(tsTempDir) == 0){ + strcpy(tsTempDir, TD_TMP_DIR_PATH); + } } void osUpdate() { diff --git a/source/os/src/osFile.c b/source/os/src/osFile.c index bdd43fe9fa..ac6cf7bad2 100644 --- a/source/os/src/osFile.c +++ b/source/os/src/osFile.c @@ -66,7 +66,7 @@ typedef struct TdFile { void taosGetTmpfilePath(const char *inputTmpDir, const char *fileNamePrefix, char *dstPath) { #ifdef WINDOWS - const char *tdengineTmpFileNamePrefix = "tdengine-"; + char tmpPath[PATH_MAX]; int32_t len = (int32_t)strlen(inputTmpDir); @@ -76,7 +76,7 @@ void taosGetTmpfilePath(const char *inputTmpDir, const char *fileNamePrefix, cha tmpPath[len++] = '\\'; } - strcpy(tmpPath + len, tdengineTmpFileNamePrefix); + strcpy(tmpPath + len, TD_TMP_FILE_PREFIX); if (strlen(tmpPath) + strlen(fileNamePrefix) + strlen("-%d-%s") < PATH_MAX) { strcat(tmpPath, fileNamePrefix); strcat(tmpPath, "-%d-%s"); @@ -88,8 +88,6 @@ void taosGetTmpfilePath(const char *inputTmpDir, const char *fileNamePrefix, cha #else - const char *tdengineTmpFileNamePrefix = "tdengine-"; - char tmpPath[PATH_MAX]; int32_t len = strlen(inputTmpDir); memcpy(tmpPath, inputTmpDir, len); @@ -99,7 +97,7 @@ void taosGetTmpfilePath(const char *inputTmpDir, const char *fileNamePrefix, cha tmpPath[len++] = '/'; } - strcpy(tmpPath + len, tdengineTmpFileNamePrefix); + strcpy(tmpPath + len, TD_TMP_FILE_PREFIX); if (strlen(tmpPath) + strlen(fileNamePrefix) + strlen("-%d-%s") < PATH_MAX) { strcat(tmpPath, fileNamePrefix); strcat(tmpPath, "-%d-%s"); From fe6eb5d8c3a2e036890f4bd5b7bee6da120f1b38 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 04:01:53 +0800 Subject: [PATCH 02/36] fix:[TS-4921] asan error --- source/client/src/clientEnv.c | 2 +- source/client/src/clientImpl.c | 2 +- source/client/src/clientMonitor.c | 26 +++++++++++++------------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index 0a790e5a8c..c4000534da 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -309,7 +309,7 @@ void stopAllRequests(SHashObj *pRequests) { } void destroyAppInst(void *info) { - SAppInstInfo* pAppInfo = (SAppInstInfo*)info; + SAppInstInfo* pAppInfo = *(SAppInstInfo**)info; tscDebug("destroy app inst mgr %p", pAppInfo); taosThreadMutexLock(&appInfo.mutex); diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index 521eb02a24..5492a8e32b 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -147,7 +147,7 @@ STscObj* taos_connect_internal(const char* ip, const char* user, const char* pas } p->pAppHbMgr = appHbMgrInit(p, key); if (NULL == p->pAppHbMgr) { - destroyAppInst(p); + destroyAppInst(&p); taosThreadMutexUnlock(&appInfo.mutex); taosMemoryFreeClear(key); return NULL; diff --git a/source/client/src/clientMonitor.c b/source/client/src/clientMonitor.c index 86e4da4517..1273a7546a 100644 --- a/source/client/src/clientMonitor.c +++ b/source/client/src/clientMonitor.c @@ -28,16 +28,16 @@ static int32_t getSlowLogTmpDir(char* tmpPath, int32_t size){ return 0; } -static void destroyCounter(void* data){ - if (data == NULL) { - return; - } - taos_counter_t* conuter = *(taos_counter_t**)data; - if(conuter == NULL){ - return; - } - taos_counter_destroy(conuter); -} +//static void destroyCounter(void* data){ +// if (data == NULL) { +// return; +// } +// taos_counter_t* conuter = *(taos_counter_t**)data; +// if(conuter == NULL){ +// return; +// } +// taos_counter_destroy(conuter); +//} static void destroyClientFile(void* data){ if (data == NULL) { @@ -61,7 +61,7 @@ static void destroyMonitorClient(void* data){ } taosHashCleanup(pMonitor->counters); taos_collector_registry_destroy(pMonitor->registry); - taos_collector_destroy(pMonitor->colector); +// taos_collector_destroy(pMonitor->colector); taosMemoryFree(pMonitor); } @@ -405,7 +405,7 @@ void monitorCreateClient(int64_t clusterId) { uError("failed to create monitor counters"); goto fail; } - taosHashSetFreeFp(pMonitor->counters, destroyCounter); +// taosHashSetFreeFp(pMonitor->counters, destroyCounter); if(taosHashPut(monitorCounterHash, &clusterId, LONG_BYTES, &pMonitor, POINTER_BYTES) != 0){ uError("failed to put monitor client to hash"); @@ -606,7 +606,7 @@ void* monitorThreadFunc(void *param){ } monitorFreeSlowLogData(slowLogData); taosFreeQitem(slowLogData); - tsem2_wait(&monitorSem); + tsem2_timewait(&monitorSem, 500); } taosCloseQueue(monitorQueue); From c5ef577b1b29bb608e6b1ca020ec6aac445bd5c6 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 11:21:32 +0800 Subject: [PATCH 03/36] fix:[TS-4921] logic error --- source/client/src/clientEnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index c4000534da..daec900921 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -557,7 +557,6 @@ void doDestroyRequest(void *p) { tsem_destroy(&pRequest->body.rspSem); taosArrayDestroy(pRequest->tableList); - taosArrayDestroy(pRequest->dbList); taosArrayDestroy(pRequest->targetTableList); destroyQueryExecRes(&pRequest->body.resInfo.execRes); @@ -566,6 +565,7 @@ void doDestroyRequest(void *p) { deregisterRequest(pRequest); } + taosArrayDestroy(pRequest->dbList); if (pRequest->body.interParam) { tsem_destroy(&((SSyncQueryParam *)pRequest->body.interParam)->sem); } From 2475fe9fa63d23608d3dca260ece35a19a759695 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 14:26:20 +0800 Subject: [PATCH 04/36] fix:[TS-4921] logic error --- source/client/src/clientMonitor.c | 28 ++++++++++++++-------------- source/common/src/tglobal.c | 6 +++--- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/source/client/src/clientMonitor.c b/source/client/src/clientMonitor.c index 1273a7546a..b8a2e07c52 100644 --- a/source/client/src/clientMonitor.c +++ b/source/client/src/clientMonitor.c @@ -152,6 +152,7 @@ static int32_t sendReport(void* pTransporter, SEpSet *epSet, char* pCont, MONITO void monitorReadSendSlowLog(TdFilePtr pFile, void* pTransporter, SEpSet *epSet){ char buf[SLOW_LOG_SEND_SIZE + 1] = {0}; // +1 for \0, for print log + char pCont[SLOW_LOG_SEND_SIZE + 1] = {0}; // +1 for \0, for print log int32_t offset = 0; if(taosLSeekFile(pFile, 0, SEEK_SET) < 0){ uError("failed to seek file:%p code: %d", pFile, errno); @@ -164,32 +165,28 @@ void monitorReadSendSlowLog(TdFilePtr pFile, void* pTransporter, SEpSet *epSet){ return; } - cJSON* pArray = cJSON_CreateArray(); + memset(pCont, 0, sizeof(pCont)); + strcat(pCont, "["); char* string = buf; for(int i = 0; i < readSize + offset; i++){ if (buf[i] == '\0') { - cJSON_AddItemToArray(pArray, cJSON_CreateString(string)); - uDebug("[monitor] slow log:%s", string); + if (string != buf) strcat(pCont, ","); + strcat(pCont, string); + uDebug("[monitor] monitorReadSendSlowLog slow log:%s", string); string = buf + i + 1; } } - - ASSERT(cJSON_GetArraySize(pArray) > 0); // make sure SLOW_LOG_SEND_SIZE is bigger than one line in pFile - char* pCont = cJSON_PrintUnformatted(pArray); + strcat(pCont, "]"); if (pTransporter && pCont != NULL) { if(sendReport(pTransporter, epSet, pCont, MONITOR_TYPE_SLOW_LOG) != 0){ if(taosLSeekFile(pFile, -readSize, SEEK_CUR) < 0){ uError("failed to seek file:%p code: %d", pFile, errno); } uError("failed to send report:%s", pCont); - cJSON_free(pCont); - cJSON_Delete(pArray); return; } - uDebug("[monitor] send slow log:%s", pCont) + uDebug("[monitor] monitorReadSendSlowLog send slow log to mnode:%s", pCont) } - cJSON_free(pCont); - cJSON_Delete(pArray); if (readSize + offset < SLOW_LOG_SEND_SIZE) { break; @@ -197,13 +194,13 @@ void monitorReadSendSlowLog(TdFilePtr pFile, void* pTransporter, SEpSet *epSet){ offset = SLOW_LOG_SEND_SIZE - (string - buf); if(buf != string && offset != 0){ memmove(buf, string, offset); - uDebug("[monitor] left slow log:%s", buf) + uDebug("[monitor] monitorReadSendSlowLog left slow log:%s", buf) } } if(taosFtruncateFile(pFile, 0) < 0){ uError("failed to truncate file:%p code: %d", pFile, errno); } - uDebug("[monitor] send slow log file:%p", pFile); + uDebug("[monitor] monitorReadSendSlowLog send slow log file:%p", pFile); } static void generateClusterReport(taos_collector_registry_t* registry, void* pTransporter, SEpSet *epSet) { @@ -253,6 +250,8 @@ static void sendAllSlowLog(){ } data = taosHashIterate(monitorSlowLogHash, data); } + uDebug("[monitor] sendAllSlowLog when client close"); + taosRUnLockLatch(&monitorLock); } @@ -296,7 +295,6 @@ void monitorSendAllSlowLogFromTempDir(void* inst){ char filename[PATH_MAX] = {0}; snprintf(filename, sizeof(filename), "%s%s", tmpPath, name); - uDebug("[monitor] send slow log file:%s", filename); TdFilePtr pFile = taosOpenFile(filename, TD_FILE_READ); if (pFile == NULL) { uError("failed to open file:%s since %s", filename, terrstr()); @@ -312,6 +310,8 @@ void monitorSendAllSlowLogFromTempDir(void* inst){ taosUnLockFile(pFile); taosCloseFile(&pFile); taosRemoveFile(filename); + uDebug("[monitor] send and delete slow log file when reveive connect rsp:%s", filename); + } taosCloseDir(&pDir); diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 8b821f9ede..627a800b0b 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -181,6 +181,7 @@ int32_t tsMetaCacheMaxSize = -1; // MB int32_t tsSlowLogThreshold = 10; // seconds int32_t tsSlowLogThresholdTest = 10; // seconds int32_t tsSlowLogScope = SLOW_LOG_TYPE_QUERY; +char* tsSlowLogScopeString = "query"; int32_t tsSlowLogMaxLen = 4096; int32_t tsTimeSeriesThreshold = 50; bool tsMultiResultFunctionStarReturnTags = false; @@ -700,7 +701,7 @@ static int32_t taosAddServerCfg(SConfig *pCfg) { if (cfgAddInt32(pCfg, "slowLogThresholdTest", tsSlowLogThresholdTest, 0, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddInt32(pCfg, "slowLogThreshold", tsSlowLogThreshold, 1, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddInt32(pCfg, "slowLogMaxLen", tsSlowLogMaxLen, 0, 16384, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; - if (cfgAddString(pCfg, "slowLogScope", "", CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + if (cfgAddString(pCfg, "slowLogScope", tsSlowLogScopeString, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddString(pCfg, "monitorFqdn", tsMonitorFqdn, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; if (cfgAddInt32(pCfg, "monitorPort", tsMonitorPort, 1, 65056, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; @@ -1437,8 +1438,7 @@ static int32_t taosCfgSetOption(OptionNameAndVar *pOptions, int32_t optionSize, char *name = pItem->name; for (int32_t d = 0; d < optionSize; ++d) { const char *optName = pOptions[d].optionName; - int32_t optLen = strlen(optName); - if (strncasecmp(name, optName, optLen) != 0) continue; + if (strcasecmp(name, optName) != 0) continue; switch (pItem->dtype) { case CFG_DTYPE_BOOL: { int32_t flag = pItem->i32; From bc4f55407de9fec7c3d1d2dcce1190bd397ce851 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 14:58:39 +0800 Subject: [PATCH 05/36] fix:[TS-4921] logic error --- source/client/src/clientEnv.c | 28 +++++++++++++++++++++------- source/client/src/clientHb.c | 4 ++-- source/client/src/clientImpl.c | 4 ++-- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index daec900921..913cb146a9 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -97,9 +97,23 @@ static void generateWriteSlowLog(STscObj *pTscObj, SRequestObj *pRequest, int32_ tscError("[monitor] cJSON_CreateObject failed"); return; } - cJSON_AddItemToObject(json, "cluster_id", cJSON_CreateNumber(pTscObj->pAppInfo->clusterId)); - cJSON_AddItemToObject(json, "start_ts", cJSON_CreateNumber(pRequest->metric.start)); - cJSON_AddItemToObject(json, "request_id", cJSON_CreateNumber(pRequest->requestId)); + char clusterId[32] = {0}; + if (snprintf(clusterId, sizeof(clusterId), "%" PRId64, pTscObj->pAppInfo->clusterId) < 0){ + uError("failed to generate clusterId:%" PRId64, pTscObj->pAppInfo->clusterId); + } + + char startTs[32] = {0}; + if (snprintf(startTs, sizeof(startTs), "%" PRId64, pRequest->metric.start) < 0){ + uError("failed to generate startTs:%" PRId64, pRequest->metric.start); + } + + char requestId[32] = {0}; + if (snprintf(requestId, sizeof(requestId), "%" PRId64, pRequest->requestId) < 0){ + uError("failed to generate requestId:%" PRId64, pRequest->requestId); + } + cJSON_AddItemToObject(json, "cluster_id", cJSON_CreateString(clusterId)); + cJSON_AddItemToObject(json, "start_ts", cJSON_CreateString(startTs)); + cJSON_AddItemToObject(json, "request_id", cJSON_CreateString(requestId)); cJSON_AddItemToObject(json, "query_time", cJSON_CreateNumber(duration/1000)); cJSON_AddItemToObject(json, "code", cJSON_CreateNumber(pRequest->code)); cJSON_AddItemToObject(json, "error_info", cJSON_CreateString(tstrerror(pRequest->code))); @@ -153,7 +167,7 @@ static void deregisterRequest(SRequestObj *pRequest) { int32_t num = atomic_sub_fetch_32(&pTscObj->numOfReqs, 1); int32_t reqType = SLOW_LOG_TYPE_OTHERS; - int64_t duration = taosGetTimestampUs() - pRequest->metric.start/1000; + int64_t duration = taosGetTimestampUs() - pRequest->metric.start; tscDebug("0x%" PRIx64 " free Request from connObj: 0x%" PRIx64 ", reqId:0x%" PRIx64 " elapsed:%.2f ms, " "current:%d, app current:%d", @@ -193,10 +207,10 @@ static void deregisterRequest(SRequestObj *pRequest) { } } - if (duration >= (pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || duration >= tsSlowLogThresholdTest)) { + if (duration >= (pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || duration >= tsSlowLogThresholdTest * 1000000UL)) { atomic_add_fetch_64((int64_t *)&pActivity->numOfSlowQueries, 1); if (pTscObj->pAppInfo->monitorParas.tsSlowLogScope & reqType) { - taosPrintSlowLog("PID:%d, Conn:%u, QID:0x%" PRIx64 ", Start:%" PRId64 " ns, Duration:%" PRId64 "us, SQL:%s", + taosPrintSlowLog("PID:%d, Conn:%u, QID:0x%" PRIx64 ", Start:%" PRId64 " us, Duration:%" PRId64 "us, SQL:%s", taosGetPId(), pTscObj->connId, pRequest->requestId, pRequest->metric.start, duration, pRequest->sqlstr); if(pTscObj->pAppInfo->monitorParas.tsEnableMonitor){ @@ -419,7 +433,7 @@ void *createRequest(uint64_t connId, int32_t type, int64_t reqid) { pRequest->resType = RES_TYPE__QUERY; pRequest->requestId = reqid == 0 ? generateRequestId() : reqid; - pRequest->metric.start = taosGetTimestampNs(); + pRequest->metric.start = taosGetTimestampUs(); pRequest->body.resInfo.convertUcs4 = true; // convert ucs4 by default pRequest->type = type; diff --git a/source/client/src/clientHb.c b/source/client/src/clientHb.c index d4ce42d8b1..d808f32403 100644 --- a/source/client/src/clientHb.c +++ b/source/client/src/clientHb.c @@ -596,9 +596,9 @@ int32_t hbBuildQueryDesc(SQueryHbReqBasic *hbBasic, STscObj *pObj) { } tstrncpy(desc.sql, pRequest->sqlstr, sizeof(desc.sql)); - desc.stime = pRequest->metric.start / 1000000; + desc.stime = pRequest->metric.start / 1000; desc.queryId = pRequest->requestId; - desc.useconds = now - pRequest->metric.start/1000; + desc.useconds = now - pRequest->metric.start; desc.reqRid = pRequest->self; desc.stableQuery = pRequest->stableQuery; desc.isSubQuery = pRequest->isSubReq; diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index 5492a8e32b..11d3797157 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -734,7 +734,7 @@ int32_t scheduleQuery(SRequestObj* pRequest, SQueryPlan* pDag, SArray* pNodeList .pNodeList = pNodeList, .pDag = pDag, .sql = pRequest->sqlstr, - .startTs = pRequest->metric.start/1000, + .startTs = pRequest->metric.start, .execFp = NULL, .cbParam = NULL, .chkKillFp = chkRequestKilled, @@ -1205,7 +1205,7 @@ static int32_t asyncExecSchQuery(SRequestObj* pRequest, SQuery* pQuery, SMetaDat .pDag = pDag, .allocatorRefId = pRequest->allocatorRefId, .sql = pRequest->sqlstr, - .startTs = pRequest->metric.start/1000, + .startTs = pRequest->metric.start, .execFp = schedulerExecCb, .cbParam = pWrapper, .chkKillFp = chkRequestKilled, From ed174fb1475e700ea7394299bf359b29ba37cd33 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 15:27:22 +0800 Subject: [PATCH 06/36] fix:[TS-4921] print slow log scope --- source/client/src/clientHb.c | 3 ++- source/client/src/clientMsgHandler.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/client/src/clientHb.c b/source/client/src/clientHb.c index b588615945..340ccfce64 100644 --- a/source/client/src/clientHb.c +++ b/source/client/src/clientHb.c @@ -540,7 +540,8 @@ static int32_t hbAsyncCallBack(void *param, SDataBuf *pMsg, int32_t code) { SAppInstInfo *pInst = pAppHbMgr->pAppInstInfo; pInst->monitorParas = pRsp.monitorParas; - tscDebug("[monitor] paras from hb, clusterId:%" PRIx64 " monitorParas threshold:%d", pInst->clusterId, pRsp.monitorParas.tsSlowLogThreshold); + tscDebug("[monitor] paras from hb, clusterId:%" PRIx64 " monitorParas threshold:%d scope:%d", + pInst->clusterId, pRsp.monitorParas.tsSlowLogThreshold, pRsp.monitorParas.tsSlowLogScope); if (code != 0) { pInst->onlineDnodes = pInst->totalDnodes ? 0 : -1; diff --git a/source/client/src/clientMsgHandler.c b/source/client/src/clientMsgHandler.c index effdc693cf..8c917a7534 100644 --- a/source/client/src/clientMsgHandler.c +++ b/source/client/src/clientMsgHandler.c @@ -142,7 +142,8 @@ int32_t processConnectRsp(void* param, SDataBuf* pMsg, int32_t code) { // update the appInstInfo pTscObj->pAppInfo->clusterId = connectRsp.clusterId; pTscObj->pAppInfo->monitorParas = connectRsp.monitorParas; - tscDebug("[monitor] paras from connect rsp, clusterId:%" PRIx64 " monitorParas threshold:%d", connectRsp.clusterId, connectRsp.monitorParas.tsSlowLogThreshold); + tscDebug("[monitor] paras from connect rsp, clusterId:%" PRIx64 " monitorParas threshold:%d scope:%d", + connectRsp.clusterId, connectRsp.monitorParas.tsSlowLogThreshold, connectRsp.monitorParas.tsSlowLogScope); lastClusterId = connectRsp.clusterId; pTscObj->connType = connectRsp.connType; From 7b997b44331d01124f2920dd510beec04bc14ca4 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 15:38:24 +0800 Subject: [PATCH 07/36] fix:[TS-4921] print slow log scope --- include/common/tglobal.h | 2 +- source/common/test/commonTests.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/common/tglobal.h b/include/common/tglobal.h index 74a2ae4f29..0548820195 100644 --- a/include/common/tglobal.h +++ b/include/common/tglobal.h @@ -28,7 +28,7 @@ extern "C" { #define SLOW_LOG_TYPE_QUERY 0x1 #define SLOW_LOG_TYPE_INSERT 0x2 #define SLOW_LOG_TYPE_OTHERS 0x4 -#define SLOW_LOG_TYPE_ALL 0xFFFFFFFF +#define SLOW_LOG_TYPE_ALL 0x7 typedef enum { DND_CA_SM4 = 1, diff --git a/source/common/test/commonTests.cpp b/source/common/test/commonTests.cpp index af7f3c373f..197ccdb6ca 100644 --- a/source/common/test/commonTests.cpp +++ b/source/common/test/commonTests.cpp @@ -730,7 +730,7 @@ TEST(AlreadyAddGroupIdTest, GroupIdAddedWithDifferentLength) { #define SLOW_LOG_TYPE_QUERY 0x1 #define SLOW_LOG_TYPE_INSERT 0x2 #define SLOW_LOG_TYPE_OTHERS 0x4 -#define SLOW_LOG_TYPE_ALL 0xFFFFFFFF +#define SLOW_LOG_TYPE_ALL 0x7 static int32_t taosSetSlowLogScope(char *pScope) { if (NULL == pScope || 0 == strlen(pScope)) { From e67f1c6cbf1c301f45b635442314e94314ef563c Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 22:49:06 +0800 Subject: [PATCH 08/36] fix:[TS-4921] print slow log scope --- source/client/src/clientEnv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index 913cb146a9..cc0c09874f 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -131,6 +131,12 @@ static void generateWriteSlowLog(STscObj *pTscObj, SRequestObj *pRequest, int32_ cJSON_AddItemToObject(json, "user", cJSON_CreateString(pTscObj->user)); cJSON_AddItemToObject(json, "process_name", cJSON_CreateString(appInfo.appName)); cJSON_AddItemToObject(json, "ip", cJSON_CreateString(tsLocalFqdn)); + + char pid[32] = {0}; + if (snprintf(pid, sizeof(pid), "%d", appInfo.pid) < 0){ + uError("failed to generate pid:%d", appInfo.pid); + } + cJSON_AddItemToObject(json, "process_id", cJSON_CreateNumber(appInfo.pid)); char dbList[1024] = {0}; concatStrings(pRequest->dbList, dbList, sizeof(dbList)); From f4bf21a4c7e9563ba5ff347e358f164a4e6e5ad1 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 22:51:59 +0800 Subject: [PATCH 09/36] fix:[TS-4921] print slow log scope --- source/client/src/clientEnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index cc0c09874f..3df5a620da 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -137,7 +137,7 @@ static void generateWriteSlowLog(STscObj *pTscObj, SRequestObj *pRequest, int32_ uError("failed to generate pid:%d", appInfo.pid); } - cJSON_AddItemToObject(json, "process_id", cJSON_CreateNumber(appInfo.pid)); + cJSON_AddItemToObject(json, "process_id", cJSON_CreateString(pid)); char dbList[1024] = {0}; concatStrings(pRequest->dbList, dbList, sizeof(dbList)); cJSON_AddItemToObject(json, "db", cJSON_CreateString(dbList)); From b5b43e1e9bfa328e6b2fd6a5fce9f7fb02659b23 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 23:33:04 +0800 Subject: [PATCH 10/36] fix:[TS-4921] stop timer in the end --- include/libs/monitor/clientMonitor.h | 6 ++++ source/client/src/clientMonitor.c | 42 +++++++++++++++++++++------- 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/include/libs/monitor/clientMonitor.h b/include/libs/monitor/clientMonitor.h index dfe083b732..bdb77bab28 100644 --- a/include/libs/monitor/clientMonitor.h +++ b/include/libs/monitor/clientMonitor.h @@ -40,8 +40,14 @@ typedef struct { taos_collector_registry_t* registry; taos_collector_t* colector; SHashObj* counters; + void* timer; } MonitorClient; +typedef struct { + TdFilePtr pFile; + void* timer; +} SlowLogClient; + typedef struct { int64_t clusterId; char *value; diff --git a/source/client/src/clientMonitor.c b/source/client/src/clientMonitor.c index b8a2e07c52..56ea4bb067 100644 --- a/source/client/src/clientMonitor.c +++ b/source/client/src/clientMonitor.c @@ -39,16 +39,25 @@ static int32_t getSlowLogTmpDir(char* tmpPath, int32_t size){ // taos_counter_destroy(conuter); //} -static void destroyClientFile(void* data){ +static void destroySlowLogClient(void* data){ if (data == NULL) { return; } - TdFilePtr pFile = *(TdFilePtr*)data; - if(pFile == NULL){ + SlowLogClient* slowLogClient = *(SlowLogClient**)data; + if(slowLogClient == NULL){ return; } + taosTmrStopA(&(*(SlowLogClient**)data)->timer); + + TdFilePtr pFile = slowLogClient->pFile; + if(pFile == NULL){ + taosMemoryFree(slowLogClient); + return; + } + taosUnLockFile(pFile); taosCloseFile(&pFile); + taosMemoryFree(slowLogClient); } static void destroyMonitorClient(void* data){ @@ -59,6 +68,7 @@ static void destroyMonitorClient(void* data){ if(pMonitor == NULL){ return; } + taosTmrStopA(&pMonitor->timer); taosHashCleanup(pMonitor->counters); taos_collector_registry_destroy(pMonitor->registry); // taos_collector_destroy(pMonitor->colector); @@ -237,7 +247,7 @@ static void sendAllSlowLog(){ taosRLockLatch(&monitorLock); void* data = taosHashIterate(monitorSlowLogHash, NULL); while (data != NULL) { - TdFilePtr pFile = *(TdFilePtr*)data; + TdFilePtr pFile = (*(SlowLogClient**)data)->pFile; if (pFile != NULL){ int64_t clusterId = *(int64_t*)taosHashGetKey(data, NULL); SAppInstInfo* pInst = getAppInstByClusterId(clusterId); @@ -351,7 +361,7 @@ void monitorInit() { if (monitorSlowLogHash == NULL) { uError("failed to create monitorSlowLogHash"); } - taosHashSetFreeFp(monitorSlowLogHash, destroyClientFile); + taosHashSetFreeFp(monitorSlowLogHash, destroySlowLogClient); monitorTimer = taosTmrInit(0, 0, 0, "MONITOR"); if (monitorTimer == NULL) { @@ -418,7 +428,11 @@ void monitorCreateClient(int64_t clusterId) { pMonitor = NULL; goto fail; } - taosTmrStart(reportSendProcess, pInst->monitorParas.tsMonitorInterval * 1000, (void*)pMonitor, monitorTimer); + pMonitor->timer = taosTmrStart(reportSendProcess, pInst->monitorParas.tsMonitorInterval * 1000, (void*)pMonitor, monitorTimer); + if(pMonitor->timer == NULL){ + uError("failed to start timer"); + goto fail; + } uInfo("[monitor] monitorCreateClient for %"PRIx64 "finished %p.", clusterId, pMonitor); } taosWUnLockLatch(&monitorLock); @@ -504,7 +518,7 @@ void reportSlowLog(void* param, void* tmrId) { } SEpSet ep = getEpSet_s(&pInst->mgmtEp); - monitorReadSendSlowLog(*(TdFilePtr*)tmp, pInst->pTransporter, &ep); + monitorReadSendSlowLog((*(SlowLogClient**)tmp)->pFile, pInst->pTransporter, &ep); taosRUnLockLatch(&monitorLock); taosTmrReset(reportSlowLog, pInst->monitorParas.tsMonitorInterval * 1000, param, monitorTimer, &tmrId); @@ -530,9 +544,17 @@ void monitorWriteSlowLog2File(MonitorSlowLogData* slowLogData, char *tmpPath){ goto FAILED; } - if (taosHashPut(monitorSlowLogHash, &slowLogData->clusterId, LONG_BYTES, &pFile, POINTER_BYTES) != 0){ + SlowLogClient *pClient = taosMemoryCalloc(1, sizeof(SlowLogClient)); + if (pClient == NULL){ + uError("failed to allocate memory for slow log client"); + taosCloseFile(&pFile); + goto FAILED; + } + pClient->pFile = pFile; + if (taosHashPut(monitorSlowLogHash, &slowLogData->clusterId, LONG_BYTES, &pClient, POINTER_BYTES) != 0){ uError("failed to put clusterId:%" PRId64 " to hash table", slowLogData->clusterId); taosCloseFile(&pFile); + taosMemoryFree(pClient); goto FAILED; } @@ -547,9 +569,9 @@ void monitorWriteSlowLog2File(MonitorSlowLogData* slowLogData, char *tmpPath){ goto FAILED; } - taosTmrStart(reportSlowLog, pInst->monitorParas.tsMonitorInterval * 1000, (void*)slowLogData->clusterId, monitorTimer); + pClient->timer = taosTmrStart(reportSlowLog, pInst->monitorParas.tsMonitorInterval * 1000, (void*)slowLogData->clusterId, monitorTimer); }else{ - pFile = *(TdFilePtr*)tmp; + pFile = (*(SlowLogClient**)tmp)->pFile; } if (taosWriteFile(pFile, slowLogData->value, strlen(slowLogData->value) + 1) < 0){ From a6d7a0703bb0d010e29281bad3cd38d575e8570a Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 23:39:35 +0800 Subject: [PATCH 11/36] fix:[TS-4921] stop timer in the end --- source/client/src/clientEnv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index 3df5a620da..d352567b01 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -103,13 +103,13 @@ static void generateWriteSlowLog(STscObj *pTscObj, SRequestObj *pRequest, int32_ } char startTs[32] = {0}; - if (snprintf(startTs, sizeof(startTs), "%" PRId64, pRequest->metric.start) < 0){ - uError("failed to generate startTs:%" PRId64, pRequest->metric.start); + if (snprintf(startTs, sizeof(startTs), "%" PRId64, pRequest->metric.start/1000) < 0){ + uError("failed to generate startTs:%" PRId64, pRequest->metric.start/1000); } char requestId[32] = {0}; - if (snprintf(requestId, sizeof(requestId), "%" PRId64, pRequest->requestId) < 0){ - uError("failed to generate requestId:%" PRId64, pRequest->requestId); + if (snprintf(requestId, sizeof(requestId), "%" PRIu64, pRequest->requestId) < 0){ + uError("failed to generate requestId:%" PRIu64, pRequest->requestId); } cJSON_AddItemToObject(json, "cluster_id", cJSON_CreateString(clusterId)); cJSON_AddItemToObject(json, "start_ts", cJSON_CreateString(startTs)); From d0ca79ddca792d8517a82be511e45ffc3082139c Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sun, 23 Jun 2024 18:17:50 +0800 Subject: [PATCH 12/36] fix:add monitor result for show cluster variables --- source/client/src/clientMonitor.c | 38 ++++-- source/common/src/tglobal.c | 2 +- source/dnode/mnode/impl/src/mndDnode.c | 48 ++++++++ source/dnode/mnode/impl/test/CMakeLists.txt | 1 + .../mnode/impl/test/mnode/CMakeLists.txt | 20 ++-- source/dnode/mnode/impl/test/mnode/mnode.cpp | 110 ++++++++++++++++++ tests/army/cmdline/fullopt.py | 1 - 7 files changed, 196 insertions(+), 24 deletions(-) diff --git a/source/client/src/clientMonitor.c b/source/client/src/clientMonitor.c index 56ea4bb067..e66884e74e 100644 --- a/source/client/src/clientMonitor.c +++ b/source/client/src/clientMonitor.c @@ -11,7 +11,8 @@ SRWLatch monitorLock; void* monitorTimer; SHashObj* monitorCounterHash; -int32_t monitorStop = -1; +int32_t slowLogFlag = -1; +int32_t monitorFlag = -1; tsem2_t monitorSem; STaosQueue* monitorQueue; SHashObj* monitorSlowLogHash; @@ -99,12 +100,12 @@ static int32_t tscMonitortInit() { } static void tscMonitorStop() { - if (atomic_val_compare_exchange_32(&monitorStop, 0, 1)) { + if (atomic_val_compare_exchange_32(&slowLogFlag, 0, 1)) { uDebug("monitor thread already stopped"); return; } - while (atomic_load_32(&monitorStop) > 0) { + while (atomic_load_32(&slowLogFlag) > 0) { taosMsleep(100); } } @@ -230,6 +231,11 @@ static void generateClusterReport(taos_collector_registry_t* registry, void* pTr static void reportSendProcess(void* param, void* tmrId) { taosRLockLatch(&monitorLock); + if (atomic_load_32(&monitorFlag) == 1) { + taosRUnLockLatch(&monitorLock); + return; + } + MonitorClient* pMonitor = (MonitorClient*)param; SAppInstInfo* pInst = getAppInstByClusterId(pMonitor->clusterId); if(pInst == NULL){ @@ -244,7 +250,6 @@ static void reportSendProcess(void* param, void* tmrId) { } static void sendAllSlowLog(){ - taosRLockLatch(&monitorLock); void* data = taosHashIterate(monitorSlowLogHash, NULL); while (data != NULL) { TdFilePtr pFile = (*(SlowLogClient**)data)->pFile; @@ -261,8 +266,6 @@ static void sendAllSlowLog(){ data = taosHashIterate(monitorSlowLogHash, data); } uDebug("[monitor] sendAllSlowLog when client close"); - - taosRUnLockLatch(&monitorLock); } void monitorSendAllSlowLogFromTempDir(void* inst){ @@ -331,7 +334,6 @@ END: } static void sendAllCounter(){ - taosRLockLatch(&monitorLock); MonitorClient** ppMonitor = (MonitorClient**)taosHashIterate(monitorCounterHash, NULL); while (ppMonitor != NULL) { MonitorClient* pMonitor = *ppMonitor; @@ -346,7 +348,6 @@ static void sendAllCounter(){ } ppMonitor = taosHashIterate(monitorCounterHash, ppMonitor); } - taosRUnLockLatch(&monitorLock); } void monitorInit() { @@ -374,12 +375,18 @@ void monitorInit() { void monitorClose() { uInfo("[monitor] tscMonitor close"); + taosRLockLatch(&monitorLock); + + if (atomic_val_compare_exchange_32(&monitorFlag, 0, 1)) { + uDebug("[monitor] monitorFlag is not 0"); + } tscMonitorStop(); sendAllSlowLog(); sendAllCounter(); taosHashCleanup(monitorCounterHash); taosHashCleanup(monitorSlowLogHash); taosTmrCleanUp(monitorTimer); + taosRUnLockLatch(&monitorLock); } void monitorCreateClient(int64_t clusterId) { @@ -436,6 +443,9 @@ void monitorCreateClient(int64_t clusterId) { uInfo("[monitor] monitorCreateClient for %"PRIx64 "finished %p.", clusterId, pMonitor); } taosWUnLockLatch(&monitorLock); + if (-1 != atomic_val_compare_exchange_32(&monitorFlag, -1, 0)) { + uDebug("[monitor] monitorFlag already is 0"); + } return; fail: @@ -499,10 +509,14 @@ void monitorFreeSlowLogData(MonitorSlowLogData* pData) { taosMemoryFree(pData->value); } -void monitorThreadFuncUnexpectedStopped(void) { atomic_store_32(&monitorStop, -1); } +void monitorThreadFuncUnexpectedStopped(void) { atomic_store_32(&slowLogFlag, -1); } void reportSlowLog(void* param, void* tmrId) { taosRLockLatch(&monitorLock); + if (atomic_load_32(&monitorFlag) == 1) { + taosRUnLockLatch(&monitorLock); + return; + } SAppInstInfo* pInst = getAppInstByClusterId((int64_t)param); if(pInst == NULL){ uError("failed to get app inst, clusterId:%"PRIx64, (int64_t)param); @@ -592,7 +606,7 @@ void* monitorThreadFunc(void *param){ } #endif - if (-1 != atomic_val_compare_exchange_32(&monitorStop, -1, 0)) { + if (-1 != atomic_val_compare_exchange_32(&slowLogFlag, -1, 0)) { return NULL; } @@ -618,7 +632,7 @@ void* monitorThreadFunc(void *param){ return NULL; } while (1) { - if (monitorStop > 0) break; + if (slowLogFlag > 0) break; MonitorSlowLogData* slowLogData = NULL; taosReadQitem(monitorQueue, (void**)&slowLogData); @@ -633,6 +647,6 @@ void* monitorThreadFunc(void *param){ taosCloseQueue(monitorQueue); tsem2_destroy(&monitorSem); - monitorStop = -2; + slowLogFlag = -2; return NULL; } \ No newline at end of file diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index d8b38a8f35..eaae32bfd3 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -704,7 +704,7 @@ static int32_t taosAddServerCfg(SConfig *pCfg) { if (cfgAddInt32(pCfg, "slowLogThresholdTest", tsSlowLogThresholdTest, 0, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddInt32(pCfg, "slowLogThreshold", tsSlowLogThreshold, 1, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; - if (cfgAddInt32(pCfg, "slowLogMaxLen", tsSlowLogMaxLen, 0, 16384, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + if (cfgAddInt32(pCfg, "slowLogMaxLen", tsSlowLogMaxLen, 1, 16384, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddString(pCfg, "slowLogScope", tsSlowLogScopeString, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddString(pCfg, "monitorFqdn", tsMonitorFqdn, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; diff --git a/source/dnode/mnode/impl/src/mndDnode.c b/source/dnode/mnode/impl/src/mndDnode.c index 35900fc1dd..e9f064b88e 100644 --- a/source/dnode/mnode/impl/src/mndDnode.c +++ b/source/dnode/mnode/impl/src/mndDnode.c @@ -1488,6 +1488,32 @@ static int32_t mndProcessCreateEncryptKeyRsp(SRpcMsg *pRsp) { return 0; } +void getSlowLogScopeString(int32_t scope, char* result){ + if(scope == SLOW_LOG_TYPE_NULL) { + strcat(result, "NONE"); + return; + } + while(scope > 0){ + if(scope & SLOW_LOG_TYPE_QUERY) { + strcat(result, "QUERY"); + scope &= ~SLOW_LOG_TYPE_QUERY; + } else if(scope & SLOW_LOG_TYPE_INSERT) { + strcat(result, "INSERT"); + scope &= ~SLOW_LOG_TYPE_INSERT; + } else if(scope & SLOW_LOG_TYPE_OTHERS) { + strcat(result, "OTHERS"); + scope &= ~SLOW_LOG_TYPE_OTHERS; + } else{ + printf("invalid slow log scope:%d", scope); + return; + } + + if(scope > 0) { + strcat(result, "|"); + } + } +} + static int32_t mndRetrieveConfigs(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBlock, int32_t rows) { SMnode *pMnode = pReq->info.node; int32_t totalRows = 0; @@ -1513,6 +1539,28 @@ static int32_t mndRetrieveConfigs(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *p snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%s", tsCharset); totalRows++; + cfgOpts[totalRows] = "monitor"; + snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%d", tsEnableMonitor); + totalRows++; + + cfgOpts[totalRows] = "monitorInterval"; + snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%d", tsMonitorInterval); + totalRows++; + + cfgOpts[totalRows] = "slowLogThreshold"; + snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%d", tsSlowLogThreshold); + totalRows++; + + char scopeStr[64] = {0}; + getSlowLogScopeString(tsSlowLogScope, scopeStr); + cfgOpts[totalRows] = "slowLogScope"; + snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%s", scopeStr); + totalRows++; + + cfgOpts[totalRows] = "slowLogMaxLen"; + snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%d", tsSlowLogMaxLen); + totalRows++; + char buf[TSDB_CONFIG_OPTION_LEN + VARSTR_HEADER_SIZE] = {0}; char bufVal[TSDB_CONFIG_VALUE_LEN + VARSTR_HEADER_SIZE] = {0}; diff --git a/source/dnode/mnode/impl/test/CMakeLists.txt b/source/dnode/mnode/impl/test/CMakeLists.txt index 471f0535b8..c21cc4385b 100644 --- a/source/dnode/mnode/impl/test/CMakeLists.txt +++ b/source/dnode/mnode/impl/test/CMakeLists.txt @@ -16,3 +16,4 @@ add_subdirectory(stb) add_subdirectory(topic) add_subdirectory(trans) #add_subdirectory(user) +#add_subdirectory(mnode) diff --git a/source/dnode/mnode/impl/test/mnode/CMakeLists.txt b/source/dnode/mnode/impl/test/mnode/CMakeLists.txt index 2a436e1d59..a5f014e779 100644 --- a/source/dnode/mnode/impl/test/mnode/CMakeLists.txt +++ b/source/dnode/mnode/impl/test/mnode/CMakeLists.txt @@ -1,11 +1,11 @@ -# aux_source_directory(. MNODE_MNODE_TEST_SRC) -# add_executable(mmnodeTest ${MNODE_MNODE_TEST_SRC}) -# target_link_libraries( -# mmnodeTest -# PUBLIC sut -# ) + aux_source_directory(. MNODE_MNODE_TEST_SRC) + add_executable(mmnodeTest ${MNODE_MNODE_TEST_SRC}) + target_link_libraries( + mmnodeTest + PUBLIC sut + ) -# add_test( -# NAME mmnodeTest -# COMMAND mmnodeTest -# ) + add_test( + NAME mmnodeTest + COMMAND mmnodeTest + ) diff --git a/source/dnode/mnode/impl/test/mnode/mnode.cpp b/source/dnode/mnode/impl/test/mnode/mnode.cpp index 1f6dbd6dca..9195b9303b 100644 --- a/source/dnode/mnode/impl/test/mnode/mnode.cpp +++ b/source/dnode/mnode/impl/test/mnode/mnode.cpp @@ -280,4 +280,114 @@ TEST_F(MndTestMnode, 04_Drop_Mnode_Rollback) { ASSERT_NE(retry, retryMax); } +} + +#define SLOW_LOG_TYPE_NULL 0x0 +#define SLOW_LOG_TYPE_QUERY 0x1 +#define SLOW_LOG_TYPE_INSERT 0x2 +#define SLOW_LOG_TYPE_OTHERS 0x4 +#define SLOW_LOG_TYPE_ALL 0x7 +void getSlowLogScopeString(int32_t scope, char* result){ + if(scope == SLOW_LOG_TYPE_NULL) { + strcat(result, "NONE"); + return; + } + while(scope > 0){ + if(scope & SLOW_LOG_TYPE_QUERY) { + strcat(result, "QUERY"); + scope &= ~SLOW_LOG_TYPE_QUERY; + } else if(scope & SLOW_LOG_TYPE_INSERT) { + strcat(result, "INSERT"); + scope &= ~SLOW_LOG_TYPE_INSERT; + } else if(scope & SLOW_LOG_TYPE_OTHERS) { + strcat(result, "OTHERS"); + scope &= ~SLOW_LOG_TYPE_OTHERS; + } else{ + printf("invalid slow log scope:%d", scope); + return; + } + + if(scope > 0) { + strcat(result, "|"); + } + } +} + +// Define test cases +TEST_F(MndTestMnode, ScopeIsNull) { + // Arrange + char result[256] = {0}; + + // Act + getSlowLogScopeString(SLOW_LOG_TYPE_NULL, result); + + // Assert + EXPECT_STREQ(result, "NONE"); +} + +TEST_F(MndTestMnode, ScopeIsQuery) { + // Arrange + char result[256] = {0}; + + // Act + getSlowLogScopeString(SLOW_LOG_TYPE_QUERY, result); + + // Assert + EXPECT_STREQ(result, "QUERY"); +} + +TEST_F(MndTestMnode, ScopeIsInsert) { + // Arrange + char result[256] = {0}; + + // Act + getSlowLogScopeString(SLOW_LOG_TYPE_INSERT, result); + + // Assert + EXPECT_STREQ(result, "INSERT"); +} + +TEST_F(MndTestMnode, ScopeIsOthers) { + // Arrange + char result[256] = {0}; + + // Act + getSlowLogScopeString(SLOW_LOG_TYPE_OTHERS, result); + + // Assert + EXPECT_STREQ(result, "OTHERS"); +} + +TEST_F(MndTestMnode, ScopeIsMixed) { + // Arrange + char result[256] = {0}; + + // Act + getSlowLogScopeString(SLOW_LOG_TYPE_OTHERS|SLOW_LOG_TYPE_INSERT, result); + + // Assert + EXPECT_STREQ(result, "INSERT|OTHERS"); +} + +TEST_F(MndTestMnode, ScopeIsMixed1) { + // Arrange + char result[256] = {0}; + + // Act + getSlowLogScopeString(SLOW_LOG_TYPE_ALL, result); + + // Assert + EXPECT_STREQ(result, "QUERY|INSERT|OTHERS"); +} + +TEST_F(MndTestMnode, ScopeIsInvalid) { + // Arrange + char result[256] = {0}; + + // Act + getSlowLogScopeString(0xF000, result); + + // Assert + EXPECT_STREQ(result, ""); // Expect an empty string since the scope is invalid + // You may also want to check if the error message is correctly logged } \ No newline at end of file diff --git a/tests/army/cmdline/fullopt.py b/tests/army/cmdline/fullopt.py index e61501d7b8..77a22b9256 100644 --- a/tests/army/cmdline/fullopt.py +++ b/tests/army/cmdline/fullopt.py @@ -70,7 +70,6 @@ class TDTestCase(TBase): "smlTagName tagname", "smlTsDefaultName tsdef", "serverPort 6030", - "slowLogScope insert", "timezone tz", "tempDir /var/tmp" ] From 596121431ce7c8e3aa1f69941f5c00dab814bd1b Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sun, 23 Jun 2024 18:49:59 +0800 Subject: [PATCH 13/36] fix:add monitor result for show cluster variables --- include/util/tdef.h | 2 +- source/dnode/mnode/impl/src/mndDnode.c | 89 +++++++++++++++++--------- 2 files changed, 59 insertions(+), 32 deletions(-) diff --git a/include/util/tdef.h b/include/util/tdef.h index 9e61ec8fe6..9c2858ed30 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -573,7 +573,7 @@ enum { #define TSDB_CONFIG_OPTION_LEN 32 #define TSDB_CONFIG_VALUE_LEN 64 #define TSDB_CONFIG_SCOPE_LEN 8 -#define TSDB_CONFIG_NUMBER 8 +#define TSDB_CONFIG_NUMBER 16 #define QUERY_ID_SIZE 20 #define QUERY_OBJ_ID_SIZE 18 diff --git a/source/dnode/mnode/impl/src/mndDnode.c b/source/dnode/mnode/impl/src/mndDnode.c index e9f064b88e..1212519ea2 100644 --- a/source/dnode/mnode/impl/src/mndDnode.c +++ b/source/dnode/mnode/impl/src/mndDnode.c @@ -933,6 +933,32 @@ _OVER: return code; } +static void getSlowLogScopeString(int32_t scope, char* result){ + if(scope == SLOW_LOG_TYPE_NULL) { + strcat(result, "NONE"); + return; + } + while(scope > 0){ + if(scope & SLOW_LOG_TYPE_QUERY) { + strcat(result, "QUERY"); + scope &= ~SLOW_LOG_TYPE_QUERY; + } else if(scope & SLOW_LOG_TYPE_INSERT) { + strcat(result, "INSERT"); + scope &= ~SLOW_LOG_TYPE_INSERT; + } else if(scope & SLOW_LOG_TYPE_OTHERS) { + strcat(result, "OTHERS"); + scope &= ~SLOW_LOG_TYPE_OTHERS; + } else{ + printf("invalid slow log scope:%d", scope); + return; + } + + if(scope > 0) { + strcat(result, "|"); + } + } +} + static int32_t mndProcessShowVariablesReq(SRpcMsg *pReq) { SShowVariablesRsp rsp = {0}; int32_t code = -1; @@ -941,7 +967,7 @@ static int32_t mndProcessShowVariablesReq(SRpcMsg *pReq) { goto _OVER; } - rsp.variables = taosArrayInit(4, sizeof(SVariablesInfo)); + rsp.variables = taosArrayInit(16, sizeof(SVariablesInfo)); if (NULL == rsp.variables) { mError("failed to alloc SVariablesInfo array while process show variables req"); terrno = TSDB_CODE_OUT_OF_MEMORY; @@ -970,6 +996,33 @@ static int32_t mndProcessShowVariablesReq(SRpcMsg *pReq) { strcpy(info.scope, "both"); taosArrayPush(rsp.variables, &info); + strcpy(info.name, "monitor"); + snprintf(info.value, TSDB_CONFIG_VALUE_LEN, "%d", tsEnableMonitor); + strcpy(info.scope, "server"); + taosArrayPush(rsp.variables, &info); + + strcpy(info.name, "monitorInterval"); + snprintf(info.value, TSDB_CONFIG_VALUE_LEN, "%d", tsMonitorInterval); + strcpy(info.scope, "server"); + taosArrayPush(rsp.variables, &info); + + strcpy(info.name, "slowLogThreshold"); + snprintf(info.value, TSDB_CONFIG_VALUE_LEN, "%d", tsSlowLogThreshold); + strcpy(info.scope, "server"); + taosArrayPush(rsp.variables, &info); + + strcpy(info.name, "slowLogMaxLen"); + snprintf(info.value, TSDB_CONFIG_VALUE_LEN, "%d", tsSlowLogMaxLen); + strcpy(info.scope, "server"); + taosArrayPush(rsp.variables, &info); + + char scopeStr[64] = {0}; + getSlowLogScopeString(tsSlowLogScope, scopeStr); + strcpy(info.name, "slowLogScope"); + snprintf(info.value, TSDB_CONFIG_VALUE_LEN, "%s", scopeStr); + strcpy(info.scope, "server"); + taosArrayPush(rsp.variables, &info); + int32_t rspLen = tSerializeSShowVariablesRsp(NULL, 0, &rsp); void *pRsp = rpcMallocCont(rspLen); if (pRsp == NULL) { @@ -1488,32 +1541,6 @@ static int32_t mndProcessCreateEncryptKeyRsp(SRpcMsg *pRsp) { return 0; } -void getSlowLogScopeString(int32_t scope, char* result){ - if(scope == SLOW_LOG_TYPE_NULL) { - strcat(result, "NONE"); - return; - } - while(scope > 0){ - if(scope & SLOW_LOG_TYPE_QUERY) { - strcat(result, "QUERY"); - scope &= ~SLOW_LOG_TYPE_QUERY; - } else if(scope & SLOW_LOG_TYPE_INSERT) { - strcat(result, "INSERT"); - scope &= ~SLOW_LOG_TYPE_INSERT; - } else if(scope & SLOW_LOG_TYPE_OTHERS) { - strcat(result, "OTHERS"); - scope &= ~SLOW_LOG_TYPE_OTHERS; - } else{ - printf("invalid slow log scope:%d", scope); - return; - } - - if(scope > 0) { - strcat(result, "|"); - } - } -} - static int32_t mndRetrieveConfigs(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBlock, int32_t rows) { SMnode *pMnode = pReq->info.node; int32_t totalRows = 0; @@ -1551,16 +1578,16 @@ static int32_t mndRetrieveConfigs(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *p snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%d", tsSlowLogThreshold); totalRows++; + cfgOpts[totalRows] = "slowLogMaxLen"; + snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%d", tsSlowLogMaxLen); + totalRows++; + char scopeStr[64] = {0}; getSlowLogScopeString(tsSlowLogScope, scopeStr); cfgOpts[totalRows] = "slowLogScope"; snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%s", scopeStr); totalRows++; - cfgOpts[totalRows] = "slowLogMaxLen"; - snprintf(cfgVals[totalRows], TSDB_CONFIG_VALUE_LEN, "%d", tsSlowLogMaxLen); - totalRows++; - char buf[TSDB_CONFIG_OPTION_LEN + VARSTR_HEADER_SIZE] = {0}; char bufVal[TSDB_CONFIG_VALUE_LEN + VARSTR_HEADER_SIZE] = {0}; From a29d1b0c597569ee532a0f3d17341c7484f08393 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 24 Jun 2024 10:18:09 +0800 Subject: [PATCH 14/36] fix:test case error --- source/libs/parser/src/parTranslater.c | 1 + tests/script/tsim/show/basic.sim | 2 +- tests/script/tsim/valgrind/checkError1.sim | 2 +- tests/system-test/2-query/db.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 2d5edcb01b..78ecd55c64 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -7254,6 +7254,7 @@ static int32_t buildCmdMsg(STranslateContext* pCxt, int16_t msgType, FSerializeF pCxt->pCmdMsg->msgLen = func(NULL, 0, pReq); pCxt->pCmdMsg->pMsg = taosMemoryMalloc(pCxt->pCmdMsg->msgLen); if (NULL == pCxt->pCmdMsg->pMsg) { + taosMemoryFreeClear(pCxt->pCmdMsg); return TSDB_CODE_OUT_OF_MEMORY; } func(pCxt->pCmdMsg->pMsg, pCxt->pCmdMsg->msgLen, pReq); diff --git a/tests/script/tsim/show/basic.sim b/tests/script/tsim/show/basic.sim index 8990e492fa..4b2e33b45e 100644 --- a/tests/script/tsim/show/basic.sim +++ b/tests/script/tsim/show/basic.sim @@ -230,7 +230,7 @@ endi sql_error show create stable t0; sql show variables; -if $rows != 4 then +if $rows != 9 then return -1 endi diff --git a/tests/script/tsim/valgrind/checkError1.sim b/tests/script/tsim/valgrind/checkError1.sim index debe633f06..5629fbb4bd 100644 --- a/tests/script/tsim/valgrind/checkError1.sim +++ b/tests/script/tsim/valgrind/checkError1.sim @@ -120,7 +120,7 @@ if $rows != 3 then endi sql show variables; -if $rows != 4 then +if $rows != 9 then return -1 endi diff --git a/tests/system-test/2-query/db.py b/tests/system-test/2-query/db.py index cfe224acb0..e2c056cd5b 100644 --- a/tests/system-test/2-query/db.py +++ b/tests/system-test/2-query/db.py @@ -45,7 +45,7 @@ class TDTestCase: def case2(self): tdSql.query("show variables") - tdSql.checkRows(4) + tdSql.checkRows(9) for i in range(self.replicaVar): tdSql.query("show dnode %d variables like 'debugFlag'" % (i + 1)) From 2d7d144ca24883d9e67e94fc28c509c5e3bd00ed Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao> Date: Mon, 24 Jun 2024 10:56:26 +0800 Subject: [PATCH 15/36] fix(stream):fill dresultimmediately after delete data --- source/libs/executor/src/streamfilloperator.c | 29 ++++++++-------- .../executor/src/streamtimewindowoperator.c | 34 +++++++++++++------ source/libs/stream/src/streamBackendRocksdb.c | 2 +- 3 files changed, 39 insertions(+), 26 deletions(-) diff --git a/source/libs/executor/src/streamfilloperator.c b/source/libs/executor/src/streamfilloperator.c index 1cdd7d2d87..7d84bd1d66 100644 --- a/source/libs/executor/src/streamfilloperator.c +++ b/source/libs/executor/src/streamfilloperator.c @@ -172,10 +172,17 @@ void getWindowFromDiscBuf(SOperatorInfo* pOperator, TSKEY ts, uint64_t groupId, SWinKey key = {.ts = ts, .groupId = groupId}; void* curVal = NULL; int32_t curVLen = 0; + bool hasCurKey = true; int32_t code = pAPI->stateStore.streamStateFillGet(pState, &key, (void**)&curVal, &curVLen); - ASSERT(code == TSDB_CODE_SUCCESS); - pFillSup->cur.key = key.ts; - pFillSup->cur.pRowVal = curVal; + if (code == TSDB_CODE_SUCCESS) { + pFillSup->cur.key = key.ts; + pFillSup->cur.pRowVal = curVal; + } else { + qDebug("streamStateFillGet key failed, Data may be deleted. ts:%" PRId64 ", groupId:%" PRId64, ts, groupId); + pFillSup->cur.key = ts; + pFillSup->cur.pRowVal = NULL; + hasCurKey = false; + } SStreamStateCur* pCur = pAPI->stateStore.streamStateFillSeekKeyPrev(pState, &key); SWinKey preKey = {.ts = INT64_MIN, .groupId = groupId}; @@ -187,8 +194,10 @@ void getWindowFromDiscBuf(SOperatorInfo* pOperator, TSKEY ts, uint64_t groupId, pFillSup->prev.key = preKey.ts; pFillSup->prev.pRowVal = preVal; - code = pAPI->stateStore.streamStateCurNext(pState, pCur); - ASSERT(code == TSDB_CODE_SUCCESS); + if (hasCurKey) { + code = pAPI->stateStore.streamStateCurNext(pState, pCur); + ASSERT(code == TSDB_CODE_SUCCESS); + } code = pAPI->stateStore.streamStateCurNext(pState, pCur); if (code != TSDB_CODE_SUCCESS) { @@ -741,8 +750,8 @@ static void doDeleteFillResultImpl(SOperatorInfo* pOperator, TSKEY startTs, TSKE getWindowFromDiscBuf(pOperator, startTs, groupId, pInfo->pFillSup); setDeleteFillValueInfo(startTs, endTs, pInfo->pFillSup, pInfo->pFillInfo); SWinKey key = {.ts = startTs, .groupId = groupId}; + pAPI->stateStore.streamStateFillDel(pOperator->pTaskInfo->streamInfo.pState, &key); if (!pInfo->pFillInfo->needFill) { - pAPI->stateStore.streamStateFillDel(pOperator->pTaskInfo->streamInfo.pState, &key); buildDeleteResult(pOperator, startTs, endTs, groupId, pInfo->pDelRes); } else { STimeRange tw = { @@ -751,11 +760,6 @@ static void doDeleteFillResultImpl(SOperatorInfo* pOperator, TSKEY startTs, TSKE .groupId = groupId, }; taosArrayPush(pInfo->pFillInfo->delRanges, &tw); - while (key.ts <= endTs) { - key.ts = taosTimeAdd(key.ts, pInfo->pFillSup->interval.sliding, pInfo->pFillSup->interval.slidingUnit, - pInfo->pFillSup->interval.precision); - tSimpleHashPut(pInfo->pFillSup->pResMap, &key, sizeof(SWinKey), NULL, 0); - } } } @@ -765,7 +769,6 @@ static void doDeleteFillFinalize(SOperatorInfo* pOperator) { SStreamFillOperatorInfo* pInfo = pOperator->info; SStreamFillInfo* pFillInfo = pInfo->pFillInfo; int32_t size = taosArrayGetSize(pFillInfo->delRanges); - tSimpleHashClear(pInfo->pFillSup->pResMap); for (; pFillInfo->delIndex < size; pFillInfo->delIndex++) { STimeRange* range = taosArrayGet(pFillInfo->delRanges, pFillInfo->delIndex); if (pInfo->pRes->info.id.groupId != 0 && pInfo->pRes->info.id.groupId != range->groupId) { @@ -777,8 +780,6 @@ static void doDeleteFillFinalize(SOperatorInfo* pOperator) { doStreamFillRange(pInfo->pFillInfo, pInfo->pFillSup, pInfo->pRes); pInfo->pRes->info.id.groupId = range->groupId; } - SWinKey key = {.ts = range->skey, .groupId = range->groupId}; - pAPI->stateStore.streamStateFillDel(pOperator->pTaskInfo->streamInfo.pState, &key); } } diff --git a/source/libs/executor/src/streamtimewindowoperator.c b/source/libs/executor/src/streamtimewindowoperator.c index 4d567f729e..5b9c018bba 100644 --- a/source/libs/executor/src/streamtimewindowoperator.c +++ b/source/libs/executor/src/streamtimewindowoperator.c @@ -2632,7 +2632,7 @@ int32_t doStreamSessionEncodeOpState(void** buf, int32_t len, SOperatorInfo* pOp } // 4.dataVersion - tlen += taosEncodeFixedI32(buf, pInfo->dataVersion); + tlen += taosEncodeFixedI64(buf, pInfo->dataVersion); // 5.checksum if (isParent) { @@ -3086,15 +3086,17 @@ SOperatorInfo* createStreamSessionAggOperatorInfo(SOperatorInfo* downstream, SPh pOperator->operatorType = QUERY_NODE_PHYSICAL_PLAN_STREAM_SESSION; setOperatorInfo(pOperator, getStreamOpName(pOperator->operatorType), QUERY_NODE_PHYSICAL_PLAN_STREAM_SESSION, true, OP_NOT_OPENED, pInfo, pTaskInfo); - // for stream - void* buff = NULL; - int32_t len = 0; - int32_t res = - pInfo->streamAggSup.stateStore.streamStateGetInfo(pInfo->streamAggSup.pState, STREAM_SESSION_OP_CHECKPOINT_NAME, - strlen(STREAM_SESSION_OP_CHECKPOINT_NAME), &buff, &len); - if (res == TSDB_CODE_SUCCESS) { - doStreamSessionDecodeOpState(buff, len, pOperator, true); - taosMemoryFree(buff); + if (pPhyNode->type != QUERY_NODE_PHYSICAL_PLAN_STREAM_FINAL_SESSION) { + // for stream + void* buff = NULL; + int32_t len = 0; + int32_t res = + pInfo->streamAggSup.stateStore.streamStateGetInfo(pInfo->streamAggSup.pState, STREAM_SESSION_OP_CHECKPOINT_NAME, + strlen(STREAM_SESSION_OP_CHECKPOINT_NAME), &buff, &len); + if (res == TSDB_CODE_SUCCESS) { + doStreamSessionDecodeOpState(buff, len, pOperator, true); + taosMemoryFree(buff); + } } pOperator->fpSet = createOperatorFpSet(optrDummyOpenFn, doStreamSessionAgg, NULL, destroyStreamSessionAggOperatorInfo, optrDefaultBufFn, NULL, optrDefaultGetNextExtFn, NULL); @@ -3279,6 +3281,16 @@ SOperatorInfo* createStreamFinalSessionAggOperatorInfo(SOperatorInfo* downstream pAPI->stateStore.streamStateSetNumber(pChInfo->streamAggSup.pState, i, pInfo->primaryTsIndex); taosArrayPush(pInfo->pChildren, &pChildOp); } + + void* buff = NULL; + int32_t len = 0; + int32_t res = + pInfo->streamAggSup.stateStore.streamStateGetInfo(pInfo->streamAggSup.pState, STREAM_SESSION_OP_CHECKPOINT_NAME, + strlen(STREAM_SESSION_OP_CHECKPOINT_NAME), &buff, &len); + if (res == TSDB_CODE_SUCCESS) { + doStreamSessionDecodeOpState(buff, len, pOperator, true); + taosMemoryFree(buff); + } } if (!IS_FINAL_SESSION_OP(pOperator) || numOfChild == 0) { @@ -3621,7 +3633,7 @@ int32_t doStreamStateEncodeOpState(void** buf, int32_t len, SOperatorInfo* pOper } // 4.dataVersion - tlen += taosEncodeFixedI32(buf, pInfo->dataVersion); + tlen += taosEncodeFixedI64(buf, pInfo->dataVersion); // 5.checksum if (isParent) { diff --git a/source/libs/stream/src/streamBackendRocksdb.c b/source/libs/stream/src/streamBackendRocksdb.c index 597d6035d6..6cc74e04f7 100644 --- a/source/libs/stream/src/streamBackendRocksdb.c +++ b/source/libs/stream/src/streamBackendRocksdb.c @@ -3461,7 +3461,7 @@ SStreamStateCur* streamStateFillSeekKeyPrev_rocksdb(SStreamState* pState, const size_t kLen = 0; char* keyStr = (char*)rocksdb_iter_key(pCur->iter, &kLen); winKeyDecode((void*)&curKey, keyStr); - if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) < 0) { + if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) > 0) { return pCur; } rocksdb_iter_prev(pCur->iter); From bdba23ca925e276c1d59cba3fa8b243fcc60524b Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 24 Jun 2024 11:42:17 +0800 Subject: [PATCH 16/36] fix:concat db string in moniotr --- source/client/src/clientEnv.c | 12 +++++++++-- source/client/test/clientTests.cpp | 34 ++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index d352567b01..130c4f54cd 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -78,7 +78,15 @@ static void concatStrings(SArray *list, char* buf, int size){ int len = 0; for(int i = 0; i < taosArrayGetSize(list); i++){ char* db = taosArrayGet(list, i); - int ret = snprintf(buf, size - len, "%s,", db); + char* dot = strchr(db, '.'); + if (dot != NULL) { + db = dot + 1; + } + if (i != 0){ + strcat(buf, ","); + len += 1; + } + int ret = snprintf(buf + len, size - len, "%s,", db); if (ret < 0) { tscError("snprintf failed, buf:%s, ret:%d", buf, ret); break; @@ -139,7 +147,7 @@ static void generateWriteSlowLog(STscObj *pTscObj, SRequestObj *pRequest, int32_ cJSON_AddItemToObject(json, "process_id", cJSON_CreateString(pid)); char dbList[1024] = {0}; - concatStrings(pRequest->dbList, dbList, sizeof(dbList)); + concatStrings(pRequest->dbList, dbList, sizeof(dbList) - 1); cJSON_AddItemToObject(json, "db", cJSON_CreateString(dbList)); MonitorSlowLogData* slowLogData = taosAllocateQitem(sizeof(MonitorSlowLogData), DEF_QITEM, 0); diff --git a/source/client/test/clientTests.cpp b/source/client/test/clientTests.cpp index c13b95afdd..611891e298 100644 --- a/source/client/test/clientTests.cpp +++ b/source/client/test/clientTests.cpp @@ -1539,4 +1539,38 @@ TEST(clientCase, sub_tb_mt_test) { } } +//static void concatStrings(SArray *list, char* buf, int size){ +// int len = 0; +// for(int i = 0; i < taosArrayGetSize(list); i++){ +// char* db = (char*)taosArrayGet(list, i); +// char* dot = strchr(db, '.'); +// if (dot != NULL) { +// db = dot + 1; +// } +// if (i != 0){ +// strcat(buf, ","); +// len += 1; +// } +// int ret = snprintf(buf + len, size - len, "%s", db); +// if (ret < 0) { +// printf("snprintf failed, buf:%s, ret:%d", buf, ret); +// break; +// } +// len += ret; +// if (len >= size){ +// printf("dbList is truncated, buf:%s, len:%d", buf, len); +// break; +// } +// } +//} +// +//TEST(clientCase, concat_string_test) { +// SArray* list = taosArrayInit(10, TSDB_DB_FNAME_LEN); +// taosArrayPush(list, "1.db1"); +// taosArrayPush(list, "2.db2"); +// +// char buf[32] = {0}; +// concatStrings(list, buf, sizeof(buf) - 1); +//} + #pragma GCC diagnostic pop From d4149c95919cc72ed0d7920030ab3875c36cac47 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 24 Jun 2024 12:56:28 +0800 Subject: [PATCH 17/36] fix:remove comma in db list --- source/client/src/clientEnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index 130c4f54cd..dc00c3b858 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -86,7 +86,7 @@ static void concatStrings(SArray *list, char* buf, int size){ strcat(buf, ","); len += 1; } - int ret = snprintf(buf + len, size - len, "%s,", db); + int ret = snprintf(buf + len, size - len, "%s", db); if (ret < 0) { tscError("snprintf failed, buf:%s, ret:%d", buf, ret); break; From e66be025c5a77d3c8e9273d59764c36e4d567616 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 24 Jun 2024 15:48:35 +0800 Subject: [PATCH 18/36] fix:add db configuration that not reportted --- include/common/tglobal.h | 1 + source/client/src/clientEnv.c | 4 +++- source/common/src/tglobal.c | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/common/tglobal.h b/include/common/tglobal.h index 0548820195..dd9589ccd4 100644 --- a/include/common/tglobal.h +++ b/include/common/tglobal.h @@ -179,6 +179,7 @@ extern bool tsUseAdapter; extern int32_t tsMetaCacheMaxSize; extern int32_t tsSlowLogThreshold; extern int32_t tsSlowLogThresholdTest; +extern char tsSlowLogExceptDb[]; extern int32_t tsSlowLogScope; extern int32_t tsSlowLogMaxLen; extern int32_t tsTimeSeriesThreshold; diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index dc00c3b858..7c95526f26 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -221,7 +221,9 @@ static void deregisterRequest(SRequestObj *pRequest) { } } - if (duration >= (pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || duration >= tsSlowLogThresholdTest * 1000000UL)) { + if (duration >= ((pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || + duration >= tsSlowLogThresholdTest * 1000000UL) && + strcmp(pRequest->pDb, tsSlowLogExceptDb) != 0)) { atomic_add_fetch_64((int64_t *)&pActivity->numOfSlowQueries, 1); if (pTscObj->pAppInfo->monitorParas.tsSlowLogScope & reqType) { taosPrintSlowLog("PID:%d, Conn:%u, QID:0x%" PRIx64 ", Start:%" PRId64 " us, Duration:%" PRId64 "us, SQL:%s", diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index eaae32bfd3..0b152abf5f 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -181,6 +181,7 @@ bool tsUseAdapter = false; int32_t tsMetaCacheMaxSize = -1; // MB int32_t tsSlowLogThreshold = 10; // seconds int32_t tsSlowLogThresholdTest = 10; // seconds +char tsSlowLogExceptDb[TSDB_DB_NAME_LEN] = "log"; // seconds int32_t tsSlowLogScope = SLOW_LOG_TYPE_QUERY; char* tsSlowLogScopeString = "query"; int32_t tsSlowLogMaxLen = 4096; @@ -702,10 +703,11 @@ static int32_t taosAddServerCfg(SConfig *pCfg) { if (cfgAddBool(pCfg, "monitor", tsEnableMonitor, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddInt32(pCfg, "monitorInterval", tsMonitorInterval, 1, 86400, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; - if (cfgAddInt32(pCfg, "slowLogThresholdTest", tsSlowLogThresholdTest, 0, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + if (cfgAddInt32(pCfg, "slowLogThresholdTest", tsSlowLogThresholdTest, 0, INT32_MAX, CFG_SCOPE_CLIENT, CFG_DYN_CLIENT) != 0) return -1; if (cfgAddInt32(pCfg, "slowLogThreshold", tsSlowLogThreshold, 1, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddInt32(pCfg, "slowLogMaxLen", tsSlowLogMaxLen, 1, 16384, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddString(pCfg, "slowLogScope", tsSlowLogScopeString, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; + if (cfgAddString(pCfg, "slowLogExceptDb", tsSlowLogExceptDb, CFG_SCOPE_CLIENT, CFG_DYN_CLIENT) != 0) return -1; if (cfgAddString(pCfg, "monitorFqdn", tsMonitorFqdn, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; if (cfgAddInt32(pCfg, "monitorPort", tsMonitorPort, 1, 65056, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; @@ -1147,6 +1149,7 @@ static int32_t taosSetServerCfg(SConfig *pCfg) { tsSIMDEnable = (bool)cfgGetItem(pCfg, "simdEnable")->bval; tsTagFilterCache = (bool)cfgGetItem(pCfg, "tagFilterCache")->bval; + tstrncpy(tsSlowLogExceptDb, cfgGetItem(pCfg, "slowLogExceptDb")->str, TSDB_DB_NAME_LEN); tsSlowLogThresholdTest = cfgGetItem(pCfg, "slowLogThresholdTest")->i32; tsSlowLogThreshold = cfgGetItem(pCfg, "slowLogThreshold")->i32; tsSlowLogMaxLen = cfgGetItem(pCfg, "slowLogMaxLen")->i32; From 4f8dfe7522dd125064056de3d7bfabeb0b5fce6c Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao> Date: Mon, 24 Jun 2024 15:52:27 +0800 Subject: [PATCH 19/36] fix(stream):fill dresultim mediately after delete data --- source/libs/executor/src/streamfilloperator.c | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/source/libs/executor/src/streamfilloperator.c b/source/libs/executor/src/streamfilloperator.c index 7d84bd1d66..e61f80f6ce 100644 --- a/source/libs/executor/src/streamfilloperator.c +++ b/source/libs/executor/src/streamfilloperator.c @@ -763,6 +763,27 @@ static void doDeleteFillResultImpl(SOperatorInfo* pOperator, TSKEY startTs, TSKE } } +static void getWindowInfoByKey(SStorageAPI* pAPI, void* pState, TSKEY ts, int64_t groupId, SResultRowData* pWinData) { + SWinKey key = {.ts = ts, .groupId = groupId}; + void* val = NULL; + int32_t len = 0; + int32_t code = pAPI->stateStore.streamStateFillGet(pState, &key, (void**)&val, &len); + if (code != TSDB_CODE_SUCCESS) { + qDebug("get window info by key failed, Data may be deleted, try next window. ts:%" PRId64 ", groupId:%" PRId64, ts, + groupId); + SStreamStateCur* pCur = pAPI->stateStore.streamStateFillSeekKeyNext(pState, &key); + code = pAPI->stateStore.streamStateGetGroupKVByCur(pCur, &key, (const void**)&val, &len); + pAPI->stateStore.streamStateFreeCur(pCur); + qDebug("get window info by key ts:%" PRId64 ", groupId:%" PRId64 ", res%d", ts, groupId, code); + } + + if (code == TSDB_CODE_SUCCESS) { + resetFillWindow(pWinData); + pWinData->key = key.ts; + pWinData->pRowVal = val; + } +} + static void doDeleteFillFinalize(SOperatorInfo* pOperator) { SStorageAPI* pAPI = &pOperator->pTaskInfo->storageAPI; @@ -775,6 +796,9 @@ static void doDeleteFillFinalize(SOperatorInfo* pOperator) { return; } getWindowFromDiscBuf(pOperator, range->skey, range->groupId, pInfo->pFillSup); + if (pInfo->pFillInfo->type == TSDB_FILL_NEXT && pInfo->pFillSup->next.key != range->ekey) { + getWindowInfoByKey(pAPI, pOperator->pTaskInfo->streamInfo.pState, range->ekey, range->groupId, &pInfo->pFillSup->next); + } setDeleteFillValueInfo(range->skey, range->ekey, pInfo->pFillSup, pInfo->pFillInfo); if (pInfo->pFillInfo->needFill) { doStreamFillRange(pInfo->pFillInfo, pInfo->pFillSup, pInfo->pRes); From a8f4390a83b41de4c7b8f3522f678f5f27f306b8 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 24 Jun 2024 15:53:35 +0800 Subject: [PATCH 20/36] fix:add db configuration that not reportted --- source/client/src/clientEnv.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index 7c95526f26..d361148701 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -221,9 +221,8 @@ static void deregisterRequest(SRequestObj *pRequest) { } } - if (duration >= ((pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || - duration >= tsSlowLogThresholdTest * 1000000UL) && - strcmp(pRequest->pDb, tsSlowLogExceptDb) != 0)) { + if (duration >= ((pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || duration >= tsSlowLogThresholdTest * 1000000UL) && + (pRequest->pDb == NULL || strcmp(pRequest->pDb, tsSlowLogExceptDb) != 0))) { atomic_add_fetch_64((int64_t *)&pActivity->numOfSlowQueries, 1); if (pTscObj->pAppInfo->monitorParas.tsSlowLogScope & reqType) { taosPrintSlowLog("PID:%d, Conn:%u, QID:0x%" PRIx64 ", Start:%" PRId64 " us, Duration:%" PRId64 "us, SQL:%s", From e9ea4bf53ebe90736362fa3bebe8a19a61659e82 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 24 Jun 2024 16:16:14 +0800 Subject: [PATCH 21/36] fix:add db configuration that not reportted --- source/client/src/clientEnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index d361148701..4f8213930a 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -580,7 +580,6 @@ void doDestroyRequest(void *p) { destorySqlCallbackWrapper(pRequest->pWrapper); taosMemoryFreeClear(pRequest->msgBuf); - taosMemoryFreeClear(pRequest->pDb); doFreeReqResultInfo(&pRequest->body.resInfo); tsem_destroy(&pRequest->body.rspSem); @@ -594,6 +593,7 @@ void doDestroyRequest(void *p) { deregisterRequest(pRequest); } + taosMemoryFreeClear(pRequest->pDb); taosArrayDestroy(pRequest->dbList); if (pRequest->body.interParam) { tsem_destroy(&((SSyncQueryParam *)pRequest->body.interParam)->sem); From 2c59f2eaa95bab26dedf22c270e585f80ecdd43d Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 24 Jun 2024 16:28:24 +0800 Subject: [PATCH 22/36] fix:add db configuration that not reportted --- source/client/src/clientEnv.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index 4f8213930a..ea8874302e 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -146,9 +146,16 @@ static void generateWriteSlowLog(STscObj *pTscObj, SRequestObj *pRequest, int32_ } cJSON_AddItemToObject(json, "process_id", cJSON_CreateString(pid)); - char dbList[1024] = {0}; - concatStrings(pRequest->dbList, dbList, sizeof(dbList) - 1); - cJSON_AddItemToObject(json, "db", cJSON_CreateString(dbList)); + if(pRequest->dbList != NULL){ + char dbList[1024] = {0}; + concatStrings(pRequest->dbList, dbList, sizeof(dbList) - 1); + cJSON_AddItemToObject(json, "db", cJSON_CreateString(dbList)); + }else if(pRequest->pDb != NULL){ + cJSON_AddItemToObject(json, "db", cJSON_CreateString(pRequest->pDb)); + }else{ + cJSON_AddItemToObject(json, "db", cJSON_CreateString("unknown")); + } + MonitorSlowLogData* slowLogData = taosAllocateQitem(sizeof(MonitorSlowLogData), DEF_QITEM, 0); if (slowLogData == NULL) { @@ -221,8 +228,8 @@ static void deregisterRequest(SRequestObj *pRequest) { } } - if (duration >= ((pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || duration >= tsSlowLogThresholdTest * 1000000UL) && - (pRequest->pDb == NULL || strcmp(pRequest->pDb, tsSlowLogExceptDb) != 0))) { + if ((duration >= pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || duration >= tsSlowLogThresholdTest * 1000000UL) && + (pRequest->pDb == NULL || strcmp(pRequest->pDb, tsSlowLogExceptDb) != 0)) { atomic_add_fetch_64((int64_t *)&pActivity->numOfSlowQueries, 1); if (pTscObj->pAppInfo->monitorParas.tsSlowLogScope & reqType) { taosPrintSlowLog("PID:%d, Conn:%u, QID:0x%" PRIx64 ", Start:%" PRId64 " us, Duration:%" PRId64 "us, SQL:%s", From 41a85e80a322531ee891d567b209e41e21f7549a Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao> Date: Mon, 24 Jun 2024 17:19:38 +0800 Subject: [PATCH 23/36] calc end key --- source/libs/executor/src/streamfilloperator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/libs/executor/src/streamfilloperator.c b/source/libs/executor/src/streamfilloperator.c index e61f80f6ce..50cd5eea17 100644 --- a/source/libs/executor/src/streamfilloperator.c +++ b/source/libs/executor/src/streamfilloperator.c @@ -796,8 +796,9 @@ static void doDeleteFillFinalize(SOperatorInfo* pOperator) { return; } getWindowFromDiscBuf(pOperator, range->skey, range->groupId, pInfo->pFillSup); - if (pInfo->pFillInfo->type == TSDB_FILL_NEXT && pInfo->pFillSup->next.key != range->ekey) { - getWindowInfoByKey(pAPI, pOperator->pTaskInfo->streamInfo.pState, range->ekey, range->groupId, &pInfo->pFillSup->next); + TSKEY realEnd = range->ekey + 1; + if (pInfo->pFillInfo->type == TSDB_FILL_NEXT && pInfo->pFillSup->next.key != realEnd) { + getWindowInfoByKey(pAPI, pOperator->pTaskInfo->streamInfo.pState, realEnd, range->groupId, &pInfo->pFillSup->next); } setDeleteFillValueInfo(range->skey, range->ekey, pInfo->pFillSup, pInfo->pFillInfo); if (pInfo->pFillInfo->needFill) { From a4211efacf241fc4a824d13f8d38a7b3ce8d506d Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao> Date: Mon, 24 Jun 2024 19:19:15 +0800 Subject: [PATCH 24/36] calc end key --- source/libs/stream/src/streamBackendRocksdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/stream/src/streamBackendRocksdb.c b/source/libs/stream/src/streamBackendRocksdb.c index 6cc74e04f7..b4b5a423c1 100644 --- a/source/libs/stream/src/streamBackendRocksdb.c +++ b/source/libs/stream/src/streamBackendRocksdb.c @@ -3424,7 +3424,7 @@ SStreamStateCur* streamStateFillSeekKeyNext_rocksdb(SStreamState* pState, const size_t kLen = 0; char* keyStr = (char*)rocksdb_iter_key(pCur->iter, &kLen); winKeyDecode((void*)&curKey, keyStr); - if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) > 0) { + if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) < 0) { return pCur; } rocksdb_iter_next(pCur->iter); From e517db64621685f21cb8e674fdd3b9e51a16341c Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 24 Jun 2024 19:19:46 +0800 Subject: [PATCH 25/36] fix:add db configuration that not reportted --- include/common/tmsg.h | 2 ++ include/util/taoserror.h | 1 + source/client/src/clientEnv.c | 22 +++++++++++++++++++-- source/common/src/tglobal.c | 7 ++++--- source/common/src/tmsg.c | 4 ++++ source/dnode/mgmt/mgmt_dnode/src/dmHandle.c | 2 ++ source/dnode/mnode/impl/inc/mndDef.h | 1 + source/dnode/mnode/impl/src/mndDnode.c | 11 +++++++++-- source/dnode/mnode/impl/src/mndProfile.c | 4 ++++ source/util/src/terror.c | 1 + 10 files changed, 48 insertions(+), 7 deletions(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 32b307a75c..a7eae9f19c 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -660,6 +660,8 @@ typedef struct { int32_t tsSlowLogThreshold; int32_t tsSlowLogMaxLen; int32_t tsSlowLogScope; + int32_t tsSlowLogThresholdTest; + char tsSlowLogExceptDb[TSDB_DB_NAME_LEN]; } SMonitorParas; typedef struct { diff --git a/include/util/taoserror.h b/include/util/taoserror.h index 2e407d26b0..a5688ca04b 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -456,6 +456,7 @@ int32_t taosGetErrSize(); #define TSDB_CODE_DNODE_INVALID_LOCALE TAOS_DEF_ERROR_CODE(0, 0x0426) #define TSDB_CODE_DNODE_INVALID_TTL_CHG_ON_WR TAOS_DEF_ERROR_CODE(0, 0x0427) #define TSDB_CODE_DNODE_INVALID_EN_WHITELIST TAOS_DEF_ERROR_CODE(0, 0x0428) +#define TSDB_CODE_DNODE_INVALID_MONITOR_PARAS TAOS_DEF_ERROR_CODE(0, 0x0429) // mnode-sma #define TSDB_CODE_MND_SMA_ALREADY_EXIST TAOS_DEF_ERROR_CODE(0, 0x0480) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index ea8874302e..15568669f1 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -175,6 +175,24 @@ static void generateWriteSlowLog(STscObj *pTscObj, SRequestObj *pRequest, int32_ cJSON_Delete(json); } +static bool checkSlowLogExceptDb(SRequestObj *pRequest, char* exceptDb) { + if (pRequest->pDb != NULL) { + return strcmp(pRequest->pDb, exceptDb) != 0; + } + + for (int i = 0; i < taosArrayGetSize(pRequest->dbList); i++) { + char *db = taosArrayGet(pRequest->dbList, i); + char *dot = strchr(db, '.'); + if (dot != NULL) { + db = dot + 1; + } + if(strcmp(db, exceptDb) == 0){ + return false; + } + } + return true; +} + static void deregisterRequest(SRequestObj *pRequest) { if (pRequest == NULL) { tscError("pRequest == NULL"); @@ -228,8 +246,8 @@ static void deregisterRequest(SRequestObj *pRequest) { } } - if ((duration >= pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || duration >= tsSlowLogThresholdTest * 1000000UL) && - (pRequest->pDb == NULL || strcmp(pRequest->pDb, tsSlowLogExceptDb) != 0)) { + if ((duration >= pTscObj->pAppInfo->monitorParas.tsSlowLogThreshold * 1000000UL || duration >= pTscObj->pAppInfo->monitorParas.tsSlowLogThresholdTest * 1000000UL) && + checkSlowLogExceptDb(pRequest, pTscObj->pAppInfo->monitorParas.tsSlowLogExceptDb)) { atomic_add_fetch_64((int64_t *)&pActivity->numOfSlowQueries, 1); if (pTscObj->pAppInfo->monitorParas.tsSlowLogScope & reqType) { taosPrintSlowLog("PID:%d, Conn:%u, QID:0x%" PRIx64 ", Start:%" PRId64 " us, Duration:%" PRId64 "us, SQL:%s", diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 0b152abf5f..bf0d9bc16b 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -181,7 +181,7 @@ bool tsUseAdapter = false; int32_t tsMetaCacheMaxSize = -1; // MB int32_t tsSlowLogThreshold = 10; // seconds int32_t tsSlowLogThresholdTest = 10; // seconds -char tsSlowLogExceptDb[TSDB_DB_NAME_LEN] = "log"; // seconds +char tsSlowLogExceptDb[TSDB_DB_NAME_LEN] = ""; // seconds int32_t tsSlowLogScope = SLOW_LOG_TYPE_QUERY; char* tsSlowLogScopeString = "query"; int32_t tsSlowLogMaxLen = 4096; @@ -703,11 +703,11 @@ static int32_t taosAddServerCfg(SConfig *pCfg) { if (cfgAddBool(pCfg, "monitor", tsEnableMonitor, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddInt32(pCfg, "monitorInterval", tsMonitorInterval, 1, 86400, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; - if (cfgAddInt32(pCfg, "slowLogThresholdTest", tsSlowLogThresholdTest, 0, INT32_MAX, CFG_SCOPE_CLIENT, CFG_DYN_CLIENT) != 0) return -1; + if (cfgAddInt32(pCfg, "slowLogThresholdTest", tsSlowLogThresholdTest, 0, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddInt32(pCfg, "slowLogThreshold", tsSlowLogThreshold, 1, INT32_MAX, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddInt32(pCfg, "slowLogMaxLen", tsSlowLogMaxLen, 1, 16384, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddString(pCfg, "slowLogScope", tsSlowLogScopeString, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; - if (cfgAddString(pCfg, "slowLogExceptDb", tsSlowLogExceptDb, CFG_SCOPE_CLIENT, CFG_DYN_CLIENT) != 0) return -1; + if (cfgAddString(pCfg, "slowLogExceptDb", tsSlowLogExceptDb, CFG_SCOPE_SERVER, CFG_DYN_SERVER) != 0) return -1; if (cfgAddString(pCfg, "monitorFqdn", tsMonitorFqdn, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; if (cfgAddInt32(pCfg, "monitorPort", tsMonitorPort, 1, 65056, CFG_SCOPE_SERVER, CFG_DYN_NONE) != 0) return -1; @@ -1549,6 +1549,7 @@ static int32_t taosCfgDynamicOptionsForServer(SConfig *pCfg, const char *name) { {"monitor", &tsEnableMonitor}, {"monitorInterval", &tsMonitorInterval}, {"slowLogThreshold", &tsSlowLogThreshold}, + {"slowLogThresholdTest", &tsSlowLogThresholdTest}, {"slowLogMaxLen", &tsSlowLogMaxLen}, {"mndSdbWriteDelta", &tsMndSdbWriteDelta}, diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index bb61fdc4a5..65ac34c390 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -75,6 +75,8 @@ static int32_t tSerializeSMonitorParas(SEncoder *encoder, const SMonitorParas* p if (tEncodeI32(encoder, pMonitorParas->tsSlowLogScope) < 0) return -1; if (tEncodeI32(encoder, pMonitorParas->tsSlowLogMaxLen) < 0) return -1; if (tEncodeI32(encoder, pMonitorParas->tsSlowLogThreshold) < 0) return -1; + if (tEncodeI32(encoder, pMonitorParas->tsSlowLogThresholdTest) < 0) return -1; + if (tEncodeCStr(encoder, pMonitorParas->tsSlowLogExceptDb) < 0) return -1; return 0; } @@ -84,6 +86,8 @@ static int32_t tDeserializeSMonitorParas(SDecoder *decoder, SMonitorParas* pMoni if (tDecodeI32(decoder, &pMonitorParas->tsSlowLogScope) < 0) return -1; if (tDecodeI32(decoder, &pMonitorParas->tsSlowLogMaxLen) < 0) return -1; if (tDecodeI32(decoder, &pMonitorParas->tsSlowLogThreshold) < 0) return -1; + if (tDecodeI32(decoder, &pMonitorParas->tsSlowLogThresholdTest) < 0) return -1; + if (tDecodeCStrTo(decoder, pMonitorParas->tsSlowLogExceptDb) < 0) return -1; return 0; } diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c index cb0bc6102c..3e1a633752 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c @@ -121,6 +121,8 @@ void dmSendStatusReq(SDnodeMgmt *pMgmt) { req.clusterCfg.monitorParas.tsSlowLogScope = tsSlowLogScope; req.clusterCfg.monitorParas.tsSlowLogMaxLen = tsSlowLogMaxLen; req.clusterCfg.monitorParas.tsSlowLogThreshold = tsSlowLogThreshold; + req.clusterCfg.monitorParas.tsSlowLogThresholdTest = tsSlowLogThresholdTest; + tstrncpy(req.clusterCfg.monitorParas.tsSlowLogExceptDb, tsSlowLogExceptDb, TSDB_DB_NAME_LEN); char timestr[32] = "1970-01-01 00:00:00.00"; (void)taosParseTime(timestr, &req.clusterCfg.checkTime, (int32_t)strlen(timestr), TSDB_TIME_PRECISION_MILLI, 0); memcpy(req.clusterCfg.timezone, tsTimezoneStr, TD_TIMEZONE_LEN); diff --git a/source/dnode/mnode/impl/inc/mndDef.h b/source/dnode/mnode/impl/inc/mndDef.h index 46e606d3ea..dd577f8908 100644 --- a/source/dnode/mnode/impl/inc/mndDef.h +++ b/source/dnode/mnode/impl/inc/mndDef.h @@ -143,6 +143,7 @@ typedef enum { DND_REASON_TTL_CHANGE_ON_WRITE_NOT_MATCH, DND_REASON_ENABLE_WHITELIST_NOT_MATCH, DND_REASON_ENCRYPTION_KEY_NOT_MATCH, + DND_REASON_STATUS_MONITOR_NOT_MATCH, DND_REASON_OTHERS } EDndReason; diff --git a/source/dnode/mnode/impl/src/mndDnode.c b/source/dnode/mnode/impl/src/mndDnode.c index ca6e1cd21b..f5ab56c1f2 100644 --- a/source/dnode/mnode/impl/src/mndDnode.c +++ b/source/dnode/mnode/impl/src/mndDnode.c @@ -441,17 +441,24 @@ void mndGetDnodeData(SMnode *pMnode, SArray *pDnodeInfo) { #define CHECK_MONITOR_PARA(para) \ if (pCfg->monitorParas.para != para) { \ mError("dnode:%d, para:%d inconsistent with cluster:%d", pDnode->id, pCfg->monitorParas.para, para); \ - terrno = TSDB_CODE_DNODE_INVALID_STATUS_INTERVAL; \ - return DND_REASON_STATUS_INTERVAL_NOT_MATCH;\ + terrno = TSDB_CODE_DNODE_INVALID_MONITOR_PARAS; \ + return DND_REASON_STATUS_MONITOR_NOT_MATCH;\ } static int32_t mndCheckClusterCfgPara(SMnode *pMnode, SDnodeObj *pDnode, const SClusterCfg *pCfg) { CHECK_MONITOR_PARA(tsEnableMonitor); CHECK_MONITOR_PARA(tsMonitorInterval); CHECK_MONITOR_PARA(tsSlowLogThreshold); + CHECK_MONITOR_PARA(tsSlowLogThresholdTest); CHECK_MONITOR_PARA(tsSlowLogMaxLen); CHECK_MONITOR_PARA(tsSlowLogScope); + if (0 != strcasecmp(pCfg->monitorParas.tsSlowLogExceptDb, tsSlowLogExceptDb)) { + mError("dnode:%d, tsSlowLogExceptDb:%s inconsistent with cluster:%s", pDnode->id, pCfg->monitorParas.tsSlowLogExceptDb, tsSlowLogExceptDb); + terrno = TSDB_CODE_DNODE_INVALID_MONITOR_PARAS; + return DND_REASON_STATUS_MONITOR_NOT_MATCH; + } + if (pCfg->statusInterval != tsStatusInterval) { mError("dnode:%d, statusInterval:%d inconsistent with cluster:%d", pDnode->id, pCfg->statusInterval, tsStatusInterval); diff --git a/source/dnode/mnode/impl/src/mndProfile.c b/source/dnode/mnode/impl/src/mndProfile.c index 0838b44990..4224d79391 100644 --- a/source/dnode/mnode/impl/src/mndProfile.c +++ b/source/dnode/mnode/impl/src/mndProfile.c @@ -305,6 +305,8 @@ static int32_t mndProcessConnectReq(SRpcMsg *pReq) { connectRsp.monitorParas.tsSlowLogScope = tsSlowLogScope; connectRsp.monitorParas.tsSlowLogMaxLen = tsSlowLogMaxLen; connectRsp.monitorParas.tsSlowLogThreshold = tsSlowLogThreshold; + connectRsp.monitorParas.tsSlowLogThresholdTest = tsSlowLogThresholdTest; + tstrncpy(connectRsp.monitorParas.tsSlowLogExceptDb, tsSlowLogExceptDb, TSDB_DB_NAME_LEN); connectRsp.whiteListVer = pUser->ipWhiteListVer; strcpy(connectRsp.sVer, version); @@ -667,6 +669,8 @@ static int32_t mndProcessHeartBeatReq(SRpcMsg *pReq) { batchRsp.monitorParas.tsEnableMonitor = tsEnableMonitor; batchRsp.monitorParas.tsMonitorInterval = tsMonitorInterval; batchRsp.monitorParas.tsSlowLogThreshold = tsSlowLogThreshold; + batchRsp.monitorParas.tsSlowLogThresholdTest = tsSlowLogThresholdTest; + tstrncpy(batchRsp.monitorParas.tsSlowLogExceptDb, tsSlowLogExceptDb, TSDB_DB_NAME_LEN); batchRsp.monitorParas.tsSlowLogMaxLen = tsSlowLogMaxLen; batchRsp.monitorParas.tsSlowLogScope = tsSlowLogScope; diff --git a/source/util/src/terror.c b/source/util/src/terror.c index 80de20f5f5..978dd8ec78 100644 --- a/source/util/src/terror.c +++ b/source/util/src/terror.c @@ -371,6 +371,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_DNODE_INVALID_ENCRYPTKEY, "invalid encryption ke TAOS_DEFINE_ERROR(TSDB_CODE_DNODE_ENCRYPTKEY_CHANGED, "encryption key was changed") TAOS_DEFINE_ERROR(TSDB_CODE_DNODE_INVALID_ENCRYPT_KLEN, "Invalid encryption key length") TAOS_DEFINE_ERROR(TSDB_CODE_DNODE_INVALID_STATUS_INTERVAL,"statusInterval not match") +TAOS_DEFINE_ERROR(TSDB_CODE_DNODE_INVALID_MONITOR_PARAS, "monitor paras not match") TAOS_DEFINE_ERROR(TSDB_CODE_DNODE_INVALID_TIMEZONE, "timezone not match") TAOS_DEFINE_ERROR(TSDB_CODE_DNODE_INVALID_CHARSET, "charset not match") TAOS_DEFINE_ERROR(TSDB_CODE_DNODE_INVALID_LOCALE, "locale not match") From c35f947e70ca61ee05f9f4b671e6be249b345162 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 24 Jun 2024 19:44:55 +0800 Subject: [PATCH 26/36] fix:add db configuration that not reportted --- source/common/src/tglobal.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index bf0d9bc16b..cba852b48f 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -1530,6 +1530,12 @@ static int32_t taosCfgDynamicOptionsForServer(SConfig *pCfg, const char *name) { return 0; } + if (strcasecmp("slowLogExceptDb", name) == 0) { + tstrncpy(tsSlowLogExceptDb, pItem->str, TSDB_DB_NAME_LEN); + cfgUnLock(pCfg); + return 0; + } + { // 'bool/int32_t/int64_t/float/double' variables with general modification function static OptionNameAndVar debugOptions[] = { {"dDebugFlag", &dDebugFlag}, {"vDebugFlag", &vDebugFlag}, {"mDebugFlag", &mDebugFlag}, From b3368f64728c67acecce9d9aad3a685274af41f3 Mon Sep 17 00:00:00 2001 From: Shungang Li Date: Mon, 24 Jun 2024 22:13:03 +0800 Subject: [PATCH 27/36] feat: 'create table' from csv file --- include/common/tmsg.h | 1 + include/libs/nodes/cmdnodes.h | 12 + include/util/taoserror.h | 5 +- source/libs/nodes/src/nodesUtilFuncs.c | 22 +- source/libs/parser/inc/parAst.h | 2 + source/libs/parser/inc/parUtil.h | 3 +- source/libs/parser/inc/sql.y | 58 +- source/libs/parser/src/parAstCreater.c | 20 + source/libs/parser/src/parAstParser.c | 39 +- source/libs/parser/src/parAuthenticator.c | 16 +- source/libs/parser/src/parInsertSql.c | 59 +- source/libs/parser/src/parTranslater.c | 384 +- source/libs/parser/src/parUtil.c | 10 +- source/libs/parser/src/sql.c | 9984 ++++++++++----------- source/util/src/terror.c | 7 +- 15 files changed, 5500 insertions(+), 5122 deletions(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index fa294c3fc5..b0284c6a82 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -339,6 +339,7 @@ typedef enum ENodeType { QUERY_NODE_RESUME_STREAM_STMT, QUERY_NODE_CREATE_VIEW_STMT, QUERY_NODE_DROP_VIEW_STMT, + QUERY_NODE_CREATE_SUBTABLE_FROM_FILE_CLAUSE, // show statement nodes // see 'sysTableShowAdapter', 'SYSTABLE_SHOW_TYPE_OFFSET' diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index c2e5be96ad..8ecb7bdf09 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -214,6 +214,18 @@ typedef struct SCreateSubTableClause { STableOptions* pOptions; } SCreateSubTableClause; +typedef struct SCreateSubTableFromFileClause { + ENodeType type; + char useDbName[TSDB_DB_NAME_LEN]; + char useTableName[TSDB_TABLE_NAME_LEN]; + bool ignoreExists; + SNodeList* pSpecificTags; + char filePath[PATH_MAX]; + TdFilePtr fp; + SArray* aCreateTbData; + SArray* aTagIndexs; +} SCreateSubTableFromFileClause; + typedef struct SCreateMultiTablesStmt { ENodeType type; SNodeList* pSubTables; diff --git a/include/util/taoserror.h b/include/util/taoserror.h index 8f8434dfc1..9950f511db 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -77,7 +77,7 @@ int32_t* taosGetErrno(); #define TSDB_CODE_RPC_SOMENODE_BROKEN_LINK TAOS_DEF_ERROR_CODE(0, 0x0021) // #define TSDB_CODE_RPC_MAX_SESSIONS TAOS_DEF_ERROR_CODE(0, 0x0022) // #define TSDB_CODE_RPC_NETWORK_ERROR TAOS_DEF_ERROR_CODE(0, 0x0023) -#define TSDB_CODE_RPC_NETWORK_BUSY TAOS_DEF_ERROR_CODE(0, 0x0024) +#define TSDB_CODE_RPC_NETWORK_BUSY TAOS_DEF_ERROR_CODE(0, 0x0024) @@ -816,6 +816,9 @@ int32_t* taosGetErrno(); #define TSDB_CODE_PAR_INVALID_PK_OP TAOS_DEF_ERROR_CODE(0, 0x267A) #define TSDB_CODE_PAR_PRIMARY_KEY_IS_NULL TAOS_DEF_ERROR_CODE(0, 0x267B) #define TSDB_CODE_PAR_PRIMARY_KEY_IS_NONE TAOS_DEF_ERROR_CODE(0, 0x267C) +#define TSDB_CODE_PAR_TBNAME_ERROR TAOS_DEF_ERROR_CODE(0, 0x267D) +#define TSDB_CODE_PAR_TBNAME_DUPLICATED TAOS_DEF_ERROR_CODE(0, 0x267E) +#define TSDB_CODE_PAR_TAG_NAME_DUPLICATED TAOS_DEF_ERROR_CODE(0, 0x267F) #define TSDB_CODE_PAR_INTERNAL_ERROR TAOS_DEF_ERROR_CODE(0, 0x26FF) //planner diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index beedffc4f2..1d7fac949f 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -60,7 +60,7 @@ char* getFullJoinTypeString(EJoinType type, EJoinSubType stype) { {"LEFT", "LEFT", "LEFT OUTER", "LEFT SEMI", "LEFT ANTI", "LEFT ANY", "LEFT ASOF", "LEFT WINDOW"}, {"RIGHT", "RIGHT", "RIGHT OUTER", "RIGHT SEMI", "RIGHT ANTI", "RIGHT ANY", "RIGHT ASOF", "RIGHT WINDOW"}, {"FULL", "FULL", "FULL OUTER", "FULL", "FULL", "FULL ANY", "FULL", "FULL"} - }; + }; return joinFullType[type][stype]; } @@ -89,7 +89,7 @@ int32_t mergeJoinConds(SNode** ppDst, SNode** ppSrc) { } nodesDestroyNode(*ppSrc); *ppSrc = NULL; - + return TSDB_CODE_SUCCESS; } } @@ -422,6 +422,8 @@ SNode* nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SCreateTableStmt)); case QUERY_NODE_CREATE_SUBTABLE_CLAUSE: return makeNode(type, sizeof(SCreateSubTableClause)); + case QUERY_NODE_CREATE_SUBTABLE_FROM_FILE_CLAUSE: + return makeNode(type, sizeof(SCreateSubTableFromFileClause)); case QUERY_NODE_CREATE_MULTI_TABLES_STMT: return makeNode(type, sizeof(SCreateMultiTablesStmt)); case QUERY_NODE_DROP_TABLE_CLAUSE: @@ -1003,7 +1005,7 @@ void nodesDestroyNode(SNode* pNode) { nodesDestroyNode(pWin->pStartOffset); nodesDestroyNode(pWin->pEndOffset); break; - } + } case QUERY_NODE_SET_OPERATOR: { SSetOperator* pStmt = (SSetOperator*)pNode; nodesDestroyList(pStmt->pProjectionList); @@ -1086,6 +1088,20 @@ void nodesDestroyNode(SNode* pNode) { nodesDestroyNode((SNode*)pStmt->pOptions); break; } + case QUERY_NODE_CREATE_SUBTABLE_FROM_FILE_CLAUSE: { + SCreateSubTableFromFileClause* pStmt = (SCreateSubTableFromFileClause*)pNode; + if (pStmt->aCreateTbData) { + taosArrayDestroy(pStmt->aCreateTbData); + } + if (pStmt->aTagIndexs) { + taosArrayDestroy(pStmt->aTagIndexs); + } + if (pStmt->fp) { + taosCloseFile(&pStmt->fp); + } + nodesDestroyList(pStmt->pSpecificTags); + break; + } case QUERY_NODE_CREATE_MULTI_TABLES_STMT: nodesDestroyList(((SCreateMultiTablesStmt*)pNode)->pSubTables); break; diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 90c3753ed0..40da4d7c1e 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -201,6 +201,8 @@ SNode* createCreateTableStmt(SAstCreateContext* pCxt, bool ignoreExists, SNode* SNodeList* pTags, SNode* pOptions); SNode* createCreateSubTableClause(SAstCreateContext* pCxt, bool ignoreExists, SNode* pRealTable, SNode* pUseRealTable, SNodeList* pSpecificTags, SNodeList* pValsOfTags, SNode* pOptions); +SNode* createCreateSubTableFromFileClause(SAstCreateContext* pCxt, bool ignoreExists, SNode* pUseRealTable, + SNodeList* pSpecificTags, const SToken* pFilePath); SNode* createCreateMultiTableStmt(SAstCreateContext* pCxt, SNodeList* pSubTables); SNode* createDropTableClause(SAstCreateContext* pCxt, bool ignoreNotExists, SNode* pRealTable); SNode* createDropTableStmt(SAstCreateContext* pCxt, SNodeList* pTables); diff --git a/source/libs/parser/inc/parUtil.h b/source/libs/parser/inc/parUtil.h index be670b2708..f550840f41 100644 --- a/source/libs/parser/inc/parUtil.h +++ b/source/libs/parser/inc/parUtil.h @@ -135,6 +135,7 @@ int32_t getVnodeSysTableTargetName(int32_t acctId, SNode* pWhere, SName* pName); int32_t checkAndTrimValue(SToken* pToken, char* tmpTokenBuf, SMsgBuf* pMsgBuf, int8_t type); int32_t parseTagValue(SMsgBuf* pMsgBuf, const char** pSql, uint8_t precision, SSchema* pTagSchema, SToken* pToken, SArray* pTagName, SArray* pTagVals, STag** pTag); +int32_t parseTbnameToken(SMsgBuf* pMsgBuf, char* tname, SToken* pToken, bool* pFoundCtbName); int32_t buildCatalogReq(const SParseMetaCache* pMetaCache, SCatalogReq* pCatalogReq); int32_t putMetaDataToCache(const SCatalogReq* pCatalogReq, const SMetaData* pMetaData, SParseMetaCache* pMetaCache); @@ -150,7 +151,7 @@ int32_t reserveDbCfgInCache(int32_t acctId, const char* pDb, SParseMetaCache* pM int32_t reserveUserAuthInCache(int32_t acctId, const char* pUser, const char* pDb, const char* pTable, AUTH_TYPE type, SParseMetaCache* pMetaCache); int32_t reserveViewUserAuthInCache(int32_t acctId, const char* pUser, const char* pDb, const char* pTable, AUTH_TYPE type, - SParseMetaCache* pMetaCache); + SParseMetaCache* pMetaCache); int32_t reserveUdfInCache(const char* pFunc, SParseMetaCache* pMetaCache); int32_t reserveTableIndexInCache(int32_t acctId, const char* pDb, const char* pTable, SParseMetaCache* pMetaCache); int32_t reserveTableCfgInCache(int32_t acctId, const char* pDb, const char* pTable, SParseMetaCache* pMetaCache); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index a5efdbdf91..a4c37c19e8 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -375,11 +375,15 @@ alter_table_clause(A) ::= %destructor multi_create_clause { nodesDestroyList($$); } multi_create_clause(A) ::= create_subtable_clause(B). { A = createNodeList(pCxt, B); } multi_create_clause(A) ::= multi_create_clause(B) create_subtable_clause(C). { A = addNodeToList(pCxt, B, C); } +multi_create_clause(A) ::= create_from_file_clause(B). { A = createNodeList(pCxt, B); } create_subtable_clause(A) ::= not_exists_opt(B) full_table_name(C) USING full_table_name(D) specific_cols_opt(E) TAGS NK_LP tags_literal_list(F) NK_RP table_options(G). { A = createCreateSubTableClause(pCxt, B, C, D, E, F, G); } +create_from_file_clause(A) ::= not_exists_opt(B) USING full_table_name(C) + NK_LP tag_list_opt(D) NK_RP NK_STRING(E). { A = createCreateSubTableFromFileClause(pCxt, B, C, D, &E); } + %type multi_drop_clause { SNodeList* } %destructor multi_drop_clause { nodesDestroyList($$); } multi_drop_clause(A) ::= drop_table_clause(B). { A = createNodeList(pCxt, B); } @@ -521,7 +525,7 @@ cmd ::= SHOW GRANTS LOGS. cmd ::= SHOW CLUSTER MACHINES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); } cmd ::= SHOW CREATE DATABASE db_name(A). { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &A); } cmd ::= SHOW CREATE TABLE full_table_name(A). { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, A); } -cmd ::= SHOW CREATE STABLE full_table_name(A). { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, +cmd ::= SHOW CREATE STABLE full_table_name(A). { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, A); } cmd ::= SHOW ENCRYPTIONS. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ENCRYPTIONS_STMT); } cmd ::= SHOW QUERIES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } @@ -809,13 +813,13 @@ tags_literal(A) ::= NK_INTEGER(B). tags_literal(A) ::= NK_INTEGER(B) NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_INTEGER(B) NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_PLUS(B) NK_INTEGER(C). { @@ -826,13 +830,13 @@ tags_literal(A) ::= NK_PLUS(B) NK_INTEGER(C). tags_literal(A) ::= NK_PLUS(B) NK_INTEGER NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_PLUS(B) NK_INTEGER NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_MINUS(B) NK_INTEGER(C). { @@ -843,13 +847,13 @@ tags_literal(A) ::= NK_MINUS(B) NK_INTEGER(C). tags_literal(A) ::= NK_MINUS(B) NK_INTEGER NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_MINUS(B) NK_INTEGER NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_FLOAT(B). { A = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &B, NULL); } @@ -868,13 +872,13 @@ tags_literal(A) ::= NK_BIN(B). tags_literal(A) ::= NK_BIN(B) NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_BIN(B) NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_PLUS(B) NK_BIN(C). { @@ -885,13 +889,13 @@ tags_literal(A) ::= NK_PLUS(B) NK_BIN(C). tags_literal(A) ::= NK_PLUS(B) NK_BIN NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_PLUS(B) NK_BIN NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_MINUS(B) NK_BIN(C). { @@ -902,26 +906,26 @@ tags_literal(A) ::= NK_MINUS(B) NK_BIN(C). tags_literal(A) ::= NK_MINUS(B) NK_BIN NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_MINUS(B) NK_BIN NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_HEX(B). { A = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &B, NULL); } tags_literal(A) ::= NK_HEX(B) NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_HEX(B) NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_PLUS(B) NK_HEX(C). { @@ -932,13 +936,13 @@ tags_literal(A) ::= NK_PLUS(B) NK_HEX(C). tags_literal(A) ::= NK_PLUS(B) NK_HEX NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_PLUS(B) NK_HEX NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_MINUS(B) NK_HEX(C). { @@ -949,13 +953,13 @@ tags_literal(A) ::= NK_MINUS(B) NK_HEX(C). tags_literal(A) ::= NK_MINUS(B) NK_HEX NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_MINUS(B) NK_HEX NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } @@ -963,13 +967,13 @@ tags_literal(A) ::= NK_STRING(B). tags_literal(A) ::= NK_STRING(B) NK_PLUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_STRING(B) NK_MINUS duration_literal(C). { SToken l = B; SToken r = getTokenFromRawExprNode(pCxt, C); - l.n = (r.z + r.n) - l.z; + l.n = (r.z + r.n) - l.z; A = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, C); } tags_literal(A) ::= NK_BOOL(B). { A = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &B, NULL); } @@ -1337,9 +1341,9 @@ parenthesized_joined_table(A) ::= NK_LP parenthesized_joined_table(B) NK_RP. /************************************************ joined_table ********************************************************/ joined_table(A) ::= - table_reference(B) join_type(C) join_subtype(D) JOIN table_reference(E) join_on_clause_opt(F) - window_offset_clause_opt(G) jlimit_clause_opt(H). { - A = createJoinTableNode(pCxt, C, D, B, E, F); + table_reference(B) join_type(C) join_subtype(D) JOIN table_reference(E) join_on_clause_opt(F) + window_offset_clause_opt(G) jlimit_clause_opt(H). { + A = createJoinTableNode(pCxt, C, D, B, E, F); A = addWindowOffsetClause(pCxt, A, G); A = addJLimitClause(pCxt, A, H); } @@ -1365,16 +1369,16 @@ join_on_clause_opt(A) ::= . join_on_clause_opt(A) ::= ON search_condition(B). { A = B; } window_offset_clause_opt(A) ::= . { A = NULL; } -window_offset_clause_opt(A) ::= WINDOW_OFFSET NK_LP window_offset_literal(B) +window_offset_clause_opt(A) ::= WINDOW_OFFSET NK_LP window_offset_literal(B) NK_COMMA window_offset_literal(C) NK_RP. { A = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, B), releaseRawExprNode(pCxt, C)); } window_offset_literal(A) ::= NK_VARIABLE(B). { A = createRawExprNode(pCxt, &B, createTimeOffsetValueNode(pCxt, &B)); } window_offset_literal(A) ::= NK_MINUS(B) NK_VARIABLE(C). { SToken t = B; t.n = (C.z + C.n) - B.z; - A = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t)); + A = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t)); } - + jlimit_clause_opt(A) ::= . { A = NULL; } jlimit_clause_opt(A) ::= JLIMIT NK_INTEGER(B). { A = createLimitNode(pCxt, &B, NULL); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 0e31672b24..e17c0f0e3c 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1828,6 +1828,26 @@ SNode* createCreateSubTableClause(SAstCreateContext* pCxt, bool ignoreExists, SN return (SNode*)pStmt; } +SNode* createCreateSubTableFromFileClause(SAstCreateContext* pCxt, bool ignoreExists, SNode* pUseRealTable, + SNodeList* pSpecificTags, const SToken* pFilePath) { + CHECK_PARSER_STATUS(pCxt); + SCreateSubTableFromFileClause* pStmt = + (SCreateSubTableFromFileClause*)nodesMakeNode(QUERY_NODE_CREATE_SUBTABLE_FROM_FILE_CLAUSE); + CHECK_OUT_OF_MEM(pStmt); + strcpy(pStmt->useDbName, ((SRealTableNode*)pUseRealTable)->table.dbName); + strcpy(pStmt->useTableName, ((SRealTableNode*)pUseRealTable)->table.tableName); + pStmt->ignoreExists = ignoreExists; + pStmt->pSpecificTags = pSpecificTags; + if (TK_NK_STRING == pFilePath->type) { + trimString(pFilePath->z, pFilePath->n, pStmt->filePath, PATH_MAX); + } else { + strncpy(pStmt->filePath, pFilePath->z, pFilePath->n); + } + + nodesDestroyNode(pUseRealTable); + return (SNode*)pStmt; +} + SNode* createCreateMultiTableStmt(SAstCreateContext* pCxt, SNodeList* pSubTables) { CHECK_PARSER_STATUS(pCxt); SCreateMultiTablesStmt* pStmt = (SCreateMultiTablesStmt*)nodesMakeNode(QUERY_NODE_CREATE_MULTI_TABLES_STMT); diff --git a/source/libs/parser/src/parAstParser.c b/source/libs/parser/src/parAstParser.c index 122118b71c..04c9d2d062 100644 --- a/source/libs/parser/src/parAstParser.c +++ b/source/libs/parser/src/parAstParser.c @@ -275,19 +275,34 @@ static int32_t collectMetaKeyFromCreateMultiTable(SCollectMetaKeyCxt* pCxt, SCre int32_t code = TSDB_CODE_SUCCESS; SNode* pNode = NULL; FOREACH(pNode, pStmt->pSubTables) { - SCreateSubTableClause* pClause = (SCreateSubTableClause*)pNode; - code = reserveDbCfgInCache(pCxt->pParseCxt->acctId, pClause->dbName, pCxt->pMetaCache); - if (TSDB_CODE_SUCCESS == code) { - code = - reserveTableMetaInCache(pCxt->pParseCxt->acctId, pClause->useDbName, pClause->useTableName, pCxt->pMetaCache); - } - if (TSDB_CODE_SUCCESS == code) { - code = reserveTableVgroupInCache(pCxt->pParseCxt->acctId, pClause->dbName, pClause->tableName, pCxt->pMetaCache); - } - if (TSDB_CODE_SUCCESS == code) { - code = reserveUserAuthInCache(pCxt->pParseCxt->acctId, pCxt->pParseCxt->pUser, pClause->dbName, NULL, - AUTH_TYPE_WRITE, pCxt->pMetaCache); + if (pNode->type == QUERY_NODE_CREATE_SUBTABLE_CLAUSE) { + SCreateSubTableClause* pClause = (SCreateSubTableClause*)pNode; + code = reserveDbCfgInCache(pCxt->pParseCxt->acctId, pClause->dbName, pCxt->pMetaCache); + if (TSDB_CODE_SUCCESS == code) { + code = reserveTableMetaInCache(pCxt->pParseCxt->acctId, pClause->useDbName, pClause->useTableName, + pCxt->pMetaCache); + } + if (TSDB_CODE_SUCCESS == code) { + code = + reserveTableVgroupInCache(pCxt->pParseCxt->acctId, pClause->dbName, pClause->tableName, pCxt->pMetaCache); + } + if (TSDB_CODE_SUCCESS == code) { + code = reserveUserAuthInCache(pCxt->pParseCxt->acctId, pCxt->pParseCxt->pUser, pClause->dbName, NULL, + AUTH_TYPE_WRITE, pCxt->pMetaCache); + } + } else { + SCreateSubTableFromFileClause* pClause = (SCreateSubTableFromFileClause*)pNode; + code = reserveDbCfgInCache(pCxt->pParseCxt->acctId, pClause->useDbName, pCxt->pMetaCache); + if (TSDB_CODE_SUCCESS == code) { + code = reserveTableMetaInCache(pCxt->pParseCxt->acctId, pClause->useDbName, pClause->useTableName, + pCxt->pMetaCache); + } + if (TSDB_CODE_SUCCESS == code) { + code = reserveUserAuthInCache(pCxt->pParseCxt->acctId, pCxt->pParseCxt->pUser, pClause->useDbName, NULL, + AUTH_TYPE_WRITE, pCxt->pMetaCache); + } } + if (TSDB_CODE_SUCCESS != code) { break; } diff --git a/source/libs/parser/src/parAuthenticator.c b/source/libs/parser/src/parAuthenticator.c index cf389e249f..4c69be71d2 100644 --- a/source/libs/parser/src/parAuthenticator.c +++ b/source/libs/parser/src/parAuthenticator.c @@ -265,10 +265,18 @@ static int32_t authCreateMultiTable(SAuthCxt* pCxt, SCreateMultiTablesStmt* pStm int32_t code = TSDB_CODE_SUCCESS; SNode* pNode = NULL; FOREACH(pNode, pStmt->pSubTables) { - SCreateSubTableClause* pClause = (SCreateSubTableClause*)pNode; - code = checkAuth(pCxt, pClause->dbName, NULL, AUTH_TYPE_WRITE, NULL); - if (TSDB_CODE_SUCCESS != code) { - break; + if (pNode->type == QUERY_NODE_CREATE_SUBTABLE_CLAUSE) { + SCreateSubTableClause* pClause = (SCreateSubTableClause*)pNode; + code = checkAuth(pCxt, pClause->dbName, NULL, AUTH_TYPE_WRITE, NULL); + if (TSDB_CODE_SUCCESS != code) { + break; + } + } else { + SCreateSubTableFromFileClause* pClause = (SCreateSubTableFromFileClause*)pNode; + code = checkAuth(pCxt, pClause->useDbName, NULL, AUTH_TYPE_WRITE, NULL); + if (TSDB_CODE_SUCCESS != code) { + break; + } } } return code; diff --git a/source/libs/parser/src/parInsertSql.c b/source/libs/parser/src/parInsertSql.c index 22f274b21c..583cd7fd40 100644 --- a/source/libs/parser/src/parInsertSql.c +++ b/source/libs/parser/src/parInsertSql.c @@ -1708,37 +1708,31 @@ typedef union SRowsDataContext { SStbRowsDataContext* pStbRowsCxt; } SRowsDataContext; -static int32_t parseTbnameToken(SInsertParseContext* pCxt, SStbRowsDataContext* pStbRowsCxt, SToken* pToken, - bool* pFoundCtbName) { +int32_t parseTbnameToken(SMsgBuf* pMsgBuf, char* tname, SToken* pToken, bool* pFoundCtbName) { *pFoundCtbName = false; - int32_t code = checkAndTrimValue(pToken, pCxt->tmpTokenBuf, &pCxt->msg, TSDB_DATA_TYPE_BINARY); - if (TK_NK_VARIABLE == pToken->type) { - code = buildInvalidOperationMsg(&pCxt->msg, "not expected tbname"); - } - if (code == TSDB_CODE_SUCCESS) { - if (isNullValue(TSDB_DATA_TYPE_BINARY, pToken)) { - return buildInvalidOperationMsg(&pCxt->msg, "tbname can not be null value"); - } - if (pToken->n > 0) { - if (pToken->n <= TSDB_TABLE_NAME_LEN - 1) { - for (int i = 0; i < pToken->n; ++i) { - if (pToken->z[i] == '.') { - return buildInvalidOperationMsg(&pCxt->msg, "tbname can not contain '.'"); - } else { - pStbRowsCxt->ctbName.tname[i] = pToken->z[i]; - } - } - pStbRowsCxt->ctbName.tname[pToken->n] = '\0'; - *pFoundCtbName = true; - } else { - return buildInvalidOperationMsg(&pCxt->msg, "tbname is too long"); - } - } else { - return buildInvalidOperationMsg(&pCxt->msg, "tbname can not be empty"); - } + if (isNullValue(TSDB_DATA_TYPE_BINARY, pToken)) { + return buildInvalidOperationMsg(pMsgBuf, "tbname can not be null value"); } - return code; + + if (pToken->n > 0) { + if (pToken->n <= TSDB_TABLE_NAME_LEN - 1) { + for (int i = 0; i < pToken->n; ++i) { + if (pToken->z[i] == '.') { + return buildInvalidOperationMsg(pMsgBuf, "tbname can not contain '.'"); + } else { + tname[i] = pToken->z[i]; + } + } + tname[pToken->n] = '\0'; + *pFoundCtbName = true; + } else { + return buildInvalidOperationMsg(pMsgBuf, "tbname is too long"); + } + } else { + return buildInvalidOperationMsg(pMsgBuf, "tbname can not be empty"); + } + return TSDB_CODE_SUCCESS; } static int32_t processCtbTagsAfterCtbName(SInsertParseContext* pCxt, SVnodeModifyOpStmt* pStmt, @@ -1821,7 +1815,14 @@ static int32_t doGetStbRowValues(SInsertParseContext* pCxt, SVnodeModifyOpStmt* } } } else if (pCols->pColIndex[i] == tbnameIdx) { - code = parseTbnameToken(pCxt, pStbRowsCxt, pToken, bFoundTbName); + code = checkAndTrimValue(pToken, pCxt->tmpTokenBuf, &pCxt->msg, TSDB_DATA_TYPE_BINARY); + if (TK_NK_VARIABLE == pToken->type) { + code = buildInvalidOperationMsg(&pCxt->msg, "not expected tbname"); + } + + if (code == TSDB_CODE_SUCCESS) { + code = parseTbnameToken(&pCxt->msg, pStbRowsCxt->ctbName.tname, pToken, bFoundTbName); + } } if (code == TSDB_CODE_SUCCESS && i < pCols->numOfBound - 1) { diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 1c4dbaa9e1..a5dda80c40 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -12327,30 +12327,26 @@ static int32_t rewriteCreateTable(STranslateContext* pCxt, SQuery* pQuery) { return code; } -static void addCreateTbReqIntoVgroup(int32_t acctId, SHashObj* pVgroupHashmap, SCreateSubTableClause* pStmt, - const STag* pTag, uint64_t suid, const char* sTableNmae, SVgroupInfo* pVgInfo, - SArray* tagName, uint8_t tagNum) { - // char dbFName[TSDB_DB_FNAME_LEN] = {0}; - // SName name = {.type = TSDB_DB_NAME_T, .acctId = acctId}; - // strcpy(name.dbname, pStmt->dbName); - // tNameGetFullDbName(&name, dbFName); - +static void addCreateTbReqIntoVgroup(SHashObj* pVgroupHashmap, const char* dbName, uint64_t suid, + const char* sTableName, const char* tableName, SArray* tagName, uint8_t tagNum, + const STag* pTag, int32_t ttl, const char* comment, bool ignoreExists, + SVgroupInfo* pVgInfo) { struct SVCreateTbReq req = {0}; req.type = TD_CHILD_TABLE; - req.name = taosStrdup(pStmt->tableName); - req.ttl = pStmt->pOptions->ttl; - if (pStmt->pOptions->commentNull == false) { - req.comment = taosStrdup(pStmt->pOptions->comment); - req.commentLen = strlen(pStmt->pOptions->comment); + req.name = taosStrdup(tableName); + req.ttl = ttl; + if (comment != NULL) { + req.comment = taosStrdup(comment); + req.commentLen = strlen(comment); } else { req.commentLen = -1; } req.ctb.suid = suid; req.ctb.tagNum = tagNum; - req.ctb.stbName = taosStrdup(sTableNmae); + req.ctb.stbName = taosStrdup(sTableName); req.ctb.pTag = (uint8_t*)pTag; req.ctb.tagName = taosArrayDup(tagName, NULL); - if (pStmt->ignoreExists) { + if (ignoreExists) { req.flags |= TD_CREATE_IF_NOT_EXISTS; } @@ -12358,7 +12354,7 @@ static void addCreateTbReqIntoVgroup(int32_t acctId, SHashObj* pVgroupHashmap, S if (pTableBatch == NULL) { SVgroupCreateTableBatch tBatch = {0}; tBatch.info = *pVgInfo; - strcpy(tBatch.dbName, pStmt->dbName); + strcpy(tBatch.dbName, dbName); tBatch.req.pArray = taosArrayInit(4, sizeof(struct SVCreateTbReq)); taosArrayPush(tBatch.req.pArray, &req); @@ -12369,11 +12365,6 @@ static void addCreateTbReqIntoVgroup(int32_t acctId, SHashObj* pVgroupHashmap, S } } -static SDataType schemaToDataType(uint8_t precision, SSchema* pSchema) { - SDataType dt = {.type = pSchema->type, .bytes = pSchema->bytes, .precision = precision, .scale = 0}; - return dt; -} - static int32_t createCastFuncForTag(STranslateContext* pCxt, SNode* pNode, SDataType dt, SNode** pCast) { SNode* pExpr = nodesCloneNode(pNode); if (NULL == pExpr) { @@ -12560,8 +12551,10 @@ static int32_t rewriteCreateSubTable(STranslateContext* pCxt, SCreateSubTableCla code = getTableHashVgroup(pCxt, pStmt->dbName, pStmt->tableName, &info); } if (TSDB_CODE_SUCCESS == code) { - addCreateTbReqIntoVgroup(pCxt->pParseCxt->acctId, pVgroupHashmap, pStmt, pTag, pSuperTableMeta->uid, - pStmt->useTableName, &info, tagName, pSuperTableMeta->tableInfo.numOfTags); + const char* comment = pStmt->pOptions->commentNull ? NULL : pStmt->pOptions->comment; + addCreateTbReqIntoVgroup(pVgroupHashmap, pStmt->dbName, pSuperTableMeta->uid, pStmt->useTableName, pStmt->tableName, + tagName, pSuperTableMeta->tableInfo.numOfTags, pTag, pStmt->pOptions->ttl, comment, + pStmt->ignoreExists, &info); } else { taosMemoryFree(pTag); } @@ -12571,6 +12564,342 @@ static int32_t rewriteCreateSubTable(STranslateContext* pCxt, SCreateSubTableCla return code; } +static int32_t buildTagIndexForBindTags(SMsgBuf* pMsgBuf, SCreateSubTableFromFileClause* pStmt, + STableMeta* pSuperTableMeta) { + int32_t code = TSDB_CODE_SUCCESS; + + int32_t numOfTags = getNumOfTags(pSuperTableMeta); + SSchema* pSchema = getTableTagSchema(pSuperTableMeta); + + SHashObj* pIdxHash = taosHashInit(16, taosGetDefaultHashFunction(TSDB_DATA_TYPE_INT), false, HASH_NO_LOCK); + bool tbnameFound = false; + + SNode* pTagNode; + FOREACH(pTagNode, pStmt->pSpecificTags) { + int32_t idx = -1; + + switch (nodeType(pTagNode)) { + case QUERY_NODE_COLUMN: { + SColumnNode* pColNode = (SColumnNode*)pTagNode; + for (int32_t index = 0; index < numOfTags; index++) { + if (strlen(pSchema[index].name) == strlen(pColNode->colName) && + strcmp(pColNode->colName, pSchema[index].name) == 0) { + idx = index; + break; + } + } + + if (idx < 0) { + code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_INVALID_TAG_NAME, pColNode->colName); + break; + } + + if (NULL != taosHashGet(pIdxHash, &idx, sizeof(idx))) { + code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_TAG_NAME_DUPLICATED, pColNode->colName); + break; + } + break; + } + case QUERY_NODE_FUNCTION: { + SFunctionNode* funcNode = (SFunctionNode*)pTagNode; + if (strlen("tbname") != strlen(funcNode->functionName) || strcmp("tbname", funcNode->functionName) != 0) { + code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_INVALID_TAG_NAME, funcNode->functionName); + } + + idx = numOfTags + 1; + tbnameFound = true; + + if (NULL != taosHashGet(pIdxHash, &idx, sizeof(idx))) { + code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_TAG_NAME_DUPLICATED, funcNode->functionName); + break; + } + break; + } + defalut: { + code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_INVALID_TAG_NAME, "invalid node type"); + break; + } + } + + if (code) break; + + taosHashPut(pIdxHash, &idx, sizeof(idx), NULL, 0); + taosArrayPush(pStmt->aTagIndexs, &idx); + } + + if (!tbnameFound) { + code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_TBNAME_ERROR); + } + + taosHashCleanup(pIdxHash); + return code; +} + +typedef struct { + // refer + STableMeta* pSuperTableMeta; + SArray* pTagIndexs; + TdFilePtr fp; + + // containers + SHashObj* pTbNameHash; + SArray* aTagNames; + bool tagNameFilled; + SArray* aTagVals; + char tmpTokenBuf[TSDB_MAX_BYTES_PER_ROW]; + + // per line + const char* pSql; + STag* pTag; + SName ctbName; + SVgroupInfo vg; +} SParseFileContext; + +static int32_t fillVgroupInfo(SParseContext* pParseCxt, const SName* pName, SVgroupInfo* pVgInfo) { + SVgroupInfo vg; + SRequestConnInfo conn = {.pTrans = pParseCxt->pTransporter, + .requestId = pParseCxt->requestId, + .requestObjRefId = pParseCxt->requestRid, + .mgmtEps = pParseCxt->mgmtEpSet}; + + int32_t code = catalogGetTableHashVgroup(pParseCxt->pCatalog, &conn, pName, &vg); + if (code == TSDB_CODE_SUCCESS) { + *pVgInfo = vg; + } else { + parserError("0x%" PRIx64 " catalogGetTableHashVgroup error, code:%s, dbName:%s, tbName:%s", pParseCxt->requestId, + tstrerror(code), pName->dbname, pName->tname); + } + + return code; +} + +static int32_t parseOneStbRow(SMsgBuf* pMsgBuf, SParseFileContext* pParFileCtx) { + int32_t code = TSDB_CODE_SUCCESS; + int sz = taosArrayGetSize(pParFileCtx->pTagIndexs); + int32_t numOfTags = getNumOfTags(pParFileCtx->pSuperTableMeta); + uint8_t precision = getTableInfo(pParFileCtx->pSuperTableMeta).precision; + SSchema* pSchemas = getTableTagSchema(pParFileCtx->pSuperTableMeta); + for (int i = 0; i < sz; i++) { + const char* pSql = pParFileCtx->pSql; + + int32_t pos = 0; + SToken token = tStrGetToken(pSql, &pos, true, NULL); + pParFileCtx->pSql += pos; + + if (TK_NK_RP == token.type) { + code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_INVALID_COLUMNS_NUM); + break; + } + + int16_t index = *(int16_t*)taosArrayGet(pParFileCtx->pTagIndexs, i); + if (index < numOfTags) { + // parse tag + const SSchema* pTagSchema = &pSchemas[index]; + + code = checkAndTrimValue(&token, pParFileCtx->tmpTokenBuf, pMsgBuf, pTagSchema->type); + if (TSDB_CODE_SUCCESS == code && TK_NK_VARIABLE == token.type) { + code = buildInvalidOperationMsg(pMsgBuf, "not expected row value"); + } + if (TSDB_CODE_SUCCESS == code) { + SArray* aTagNames = pParFileCtx->tagNameFilled ? NULL : pParFileCtx->aTagNames; + code = parseTagValue(pMsgBuf, &pParFileCtx->pSql, precision, (SSchema*)pTagSchema, &token, + pParFileCtx->aTagNames, pParFileCtx->aTagVals, &pParFileCtx->pTag); + pParFileCtx->tagNameFilled = true; + } + } else { + // parse tbname + code = checkAndTrimValue(&token, pParFileCtx->tmpTokenBuf, pMsgBuf, TSDB_DATA_TYPE_BINARY); + if (TK_NK_VARIABLE == token.type) { + code = buildInvalidOperationMsg(pMsgBuf, "not expected tbname"); + } + + if (TSDB_CODE_SUCCESS == code) { + bool bFoundTbName = false; + code = parseTbnameToken(pMsgBuf, pParFileCtx->ctbName.tname, &token, &bFoundTbName); + } + } + } + + if (TSDB_CODE_SUCCESS == code) { // may fail to handle json + code = tTagNew(pParFileCtx->aTagVals, 1, false, &pParFileCtx->pTag); + } + + return code; +} + +typedef struct { + SName ctbName; + SArray* aTagNames; + STag* pTag; + SVgroupInfo vg; +} SCreateTableData; + +static void clearTagValArrayFp(void *data) { + STagVal* p = (STagVal*)data; + if (IS_VAR_DATA_TYPE(p->type)) { + taosMemoryFreeClear(p->pData); + } +} + +static void clearCreateTbArrayFp(void *data) { + SCreateTableData* p = (SCreateTableData*)data; + taosMemoryFreeClear(p->pTag); +} + +static int32_t parseCsvFile(SMsgBuf* pMsgBuf, SParseContext* pParseCxt, SParseFileContext* pParseFileCtx, + SArray* aCreateTbData) { + int32_t code = TSDB_CODE_SUCCESS; + + char* pLine = NULL; + int64_t readLen = 0; + while (TSDB_CODE_SUCCESS == code && (readLen = taosGetLineFile(pParseFileCtx->fp, &pLine)) != -1) { + if (('\r' == pLine[readLen - 1]) || ('\n' == pLine[readLen - 1])) { + pLine[--readLen] = '\0'; + } + + if (readLen == 0) continue; + + strtolower(pLine, pLine); + pParseFileCtx->pSql = pLine; + + code = parseOneStbRow(pMsgBuf, pParseFileCtx); + + if (TSDB_CODE_SUCCESS == code) { + if (taosHashGet(pParseFileCtx->pTbNameHash, pParseFileCtx->ctbName.tname, + strlen(pParseFileCtx->ctbName.tname) + 1) != NULL) { + taosMemoryFreeClear(pParseFileCtx->pTag); + code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_TBNAME_DUPLICATED, pParseFileCtx->ctbName.tname); + break; + } + + code = taosHashPut(pParseFileCtx->pTbNameHash, pParseFileCtx->ctbName.tname, + strlen(pParseFileCtx->ctbName.tname) + 1, NULL, 0); + } + + if (TSDB_CODE_SUCCESS == code) { + code = fillVgroupInfo(pParseCxt, &pParseFileCtx->ctbName, &pParseFileCtx->vg); + } + + if (TSDB_CODE_SUCCESS == code) { + SCreateTableData data = {.ctbName = pParseFileCtx->ctbName, + .aTagNames = pParseFileCtx->aTagNames, + .pTag = pParseFileCtx->pTag, + .vg = pParseFileCtx->vg}; + + taosArrayPush(aCreateTbData, &data); + } else { + taosMemoryFreeClear(pParseFileCtx->pTag); + } + + taosArrayClearEx(pParseFileCtx->aTagVals, clearTagValArrayFp); + } + + if (TSDB_CODE_SUCCESS != code) { + taosArrayClearEx(aCreateTbData, clearCreateTbArrayFp); + } + + taosMemoryFree(pLine); + return code; +} + +static int32_t prepareReadFromFile(SCreateSubTableFromFileClause* pStmt) { + int32_t code = TSDB_CODE_SUCCESS; + if (NULL == pStmt->fp) { + pStmt->fp = taosOpenFile(pStmt->filePath, TD_FILE_READ | TD_FILE_STREAM); + if (NULL == pStmt->fp) { + code = TAOS_SYSTEM_ERROR(errno); + goto _ERR; + } + } + + if (NULL == pStmt->aCreateTbData) { + pStmt->aCreateTbData = taosArrayInit(16, sizeof(SCreateTableData)); + if (NULL == pStmt->aCreateTbData) { + code = TSDB_CODE_OUT_OF_MEMORY; + goto _ERR; + } + } + + if (NULL == pStmt->aTagIndexs) { + pStmt->aTagIndexs = taosArrayInit(pStmt->pSpecificTags->length, sizeof(int16_t)); + if (!pStmt->aTagIndexs) { + code = TSDB_CODE_OUT_OF_MEMORY; + goto _ERR; + } + } + + return code; + +_ERR: + taosCloseFile(&pStmt->fp); + taosArrayDestroy(pStmt->aCreateTbData); + taosArrayDestroy(pStmt->aTagIndexs); + + return code; +} + +static int32_t rewriteCreateSubTableFromFile(STranslateContext* pCxt, SCreateSubTableFromFileClause* pStmt, + SHashObj* pVgroupHashmap) { + int32_t code = 0; + + STableMeta* pSuperTableMeta = NULL; + if (TSDB_CODE_SUCCESS == code) { + code = getTableMeta(pCxt, pStmt->useDbName, pStmt->useTableName, &pSuperTableMeta); + } + + if (TSDB_CODE_SUCCESS == code) { + code = prepareReadFromFile(pStmt); + } + + if (TSDB_CODE_SUCCESS == code) { + code = buildTagIndexForBindTags(&pCxt->msgBuf, pStmt, pSuperTableMeta); + } + + SParseFileContext parseFileCtx = { + .pSuperTableMeta = pSuperTableMeta, .fp = pStmt->fp, .pTagIndexs = pStmt->aTagIndexs}; + parseFileCtx.pTbNameHash = taosHashInit(128, taosGetDefaultHashFunction(TSDB_DATA_TYPE_VARCHAR), false, HASH_NO_LOCK); + parseFileCtx.aTagNames = taosArrayInit(8, TSDB_COL_NAME_LEN); + parseFileCtx.tagNameFilled = false; + parseFileCtx.aTagVals = taosArrayInit(8, sizeof(STagVal)); + parseFileCtx.pTag = NULL; + parseFileCtx.ctbName.type = TSDB_TABLE_NAME_T; + parseFileCtx.ctbName.acctId = pCxt->pParseCxt->acctId; + strcpy(parseFileCtx.ctbName.dbname, pStmt->useDbName); + + if (NULL == parseFileCtx.aTagNames || NULL == parseFileCtx.aTagVals || NULL == parseFileCtx.pTbNameHash) { + code = TSDB_CODE_OUT_OF_MEMORY; + goto _OUT; + } + + if (TSDB_CODE_SUCCESS == code) { + code = parseCsvFile(&pCxt->msgBuf, pCxt->pParseCxt, &parseFileCtx, pStmt->aCreateTbData); + } + + if (TSDB_CODE_SUCCESS == code) { + int sz = taosArrayGetSize(pStmt->aCreateTbData); + for (int i = 0; i < sz; i++) { + SCreateTableData* pData = taosArrayGet(pStmt->aCreateTbData, i); + + code = collectUseTable(&pData->ctbName, pCxt->pTargetTables); + if (TSDB_CODE_SUCCESS != code) { + taosMemoryFree(pData->pTag); + } + + addCreateTbReqIntoVgroup(pVgroupHashmap, pStmt->useDbName, pSuperTableMeta->uid, pStmt->useTableName, + pData->ctbName.tname, pData->aTagNames, pSuperTableMeta->tableInfo.numOfTags, + pData->pTag, TSDB_DEFAULT_TABLE_TTL, NULL, pStmt->ignoreExists, &pData->vg); + } + } + +_OUT: + taosMemoryFreeClear(pSuperTableMeta); + taosHashCleanup(parseFileCtx.pTbNameHash); + taosArrayDestroy(parseFileCtx.aTagNames); + taosArrayDestroy(parseFileCtx.aTagVals); + + return code; +} + SArray* serializeVgroupsCreateTableBatch(SHashObj* pVgroupHashmap) { SArray* pBufArray = taosArrayInit(taosHashGetSize(pVgroupHashmap), sizeof(void*)); if (NULL == pBufArray) { @@ -12603,8 +12932,13 @@ static int32_t rewriteCreateMultiTable(STranslateContext* pCxt, SQuery* pQuery) int32_t code = TSDB_CODE_SUCCESS; SNode* pNode; FOREACH(pNode, pStmt->pSubTables) { - SCreateSubTableClause* pClause = (SCreateSubTableClause*)pNode; - code = rewriteCreateSubTable(pCxt, pClause, pVgroupHashmap); + if (pNode->type == QUERY_NODE_CREATE_SUBTABLE_CLAUSE) { + SCreateSubTableClause* pClause = (SCreateSubTableClause*)pNode; + code = rewriteCreateSubTable(pCxt, pClause, pVgroupHashmap); + } else { + SCreateSubTableFromFileClause* pClause = (SCreateSubTableFromFileClause*)pNode; + code = rewriteCreateSubTableFromFile(pCxt, pClause, pVgroupHashmap); + } if (TSDB_CODE_SUCCESS != code) { taosHashCleanup(pVgroupHashmap); return code; diff --git a/source/libs/parser/src/parUtil.c b/source/libs/parser/src/parUtil.c index 8f55850448..416faafe35 100644 --- a/source/libs/parser/src/parUtil.c +++ b/source/libs/parser/src/parUtil.c @@ -212,10 +212,16 @@ static char* getSyntaxErrFormat(int32_t errCode) { case TSDB_CODE_PAR_COL_PK_TYPE: return "primary key column must be of type int, uint, bigint, ubigint, and varchar"; case TSDB_CODE_PAR_INVALID_PK_OP: - return "primary key column can not be added, modified, and dropped"; + return "primary key column can not be added, modified, and dropped"; case TSDB_CODE_TSMA_NAME_TOO_LONG: return "Tsma name too long"; - default: + case TSDB_CODE_PAR_TBNAME_ERROR: + return "Pseudo tag tbname not set"; + case TSDB_CODE_PAR_TBNAME_DUPLICATED: + return "Table name:%s duplicated"; + case TSDB_CODE_PAR_TAG_NAME_DUPLICATED: + return "Tag name:%s duplicated"; + default: return "Unknown error"; } } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 226696532b..29ea7ca64a 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -481,30 +481,30 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 554 +#define YYNOCODE 555 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - EFillMode yy6; - SShowTablesOption yy125; - SAlterOption yy145; - EShowKind yy245; - ENullOrder yy273; - EOperatorType yy292; - SDataType yy400; - EJoinType yy564; - SNode* yy600; - SToken yy649; - int8_t yy663; - bool yy705; - SNodeList* yy748; - int32_t yy756; - EJoinSubType yy758; - STokenPair yy781; - int64_t yy941; - EOrder yy1010; + SNodeList* yy34; + EShowKind yy39; + int32_t yy100; + EJoinType yy162; + int8_t yy323; + SShowTablesOption yy397; + bool yy437; + EOperatorType yy440; + EJoinSubType yy444; + SNode* yy452; + SAlterOption yy455; + SToken yy479; + EOrder yy548; + int64_t yy579; + STokenPair yy687; + ENullOrder yy817; + SDataType yy874; + EFillMode yy984; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -520,18 +520,18 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 965 -#define YYNRULE 748 -#define YYNRULE_WITH_ACTION 748 +#define YYNSTATE 970 +#define YYNRULE 750 +#define YYNRULE_WITH_ACTION 750 #define YYNTOKEN 376 -#define YY_MAX_SHIFT 964 -#define YY_MIN_SHIFTREDUCE 1432 -#define YY_MAX_SHIFTREDUCE 2179 -#define YY_ERROR_ACTION 2180 -#define YY_ACCEPT_ACTION 2181 -#define YY_NO_ACTION 2182 -#define YY_MIN_REDUCE 2183 -#define YY_MAX_REDUCE 2930 +#define YY_MAX_SHIFT 969 +#define YY_MIN_SHIFTREDUCE 1439 +#define YY_MAX_SHIFTREDUCE 2188 +#define YY_ERROR_ACTION 2189 +#define YY_ACCEPT_ACTION 2190 +#define YY_NO_ACTION 2191 +#define YY_MIN_REDUCE 2192 +#define YY_MAX_REDUCE 2941 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -598,939 +598,876 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (3228) +#define YY_ACTTAB_COUNT (2914) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 37, 338, 2539, 2706, 641, 544, 2374, 642, 2226, 190, - /* 10 */ 2681, 315, 47, 45, 2096, 2813, 805, 466, 496, 495, - /* 20 */ 471, 2184, 1917, 2536, 847, 40, 39, 2706, 66, 46, - /* 30 */ 44, 43, 42, 41, 1942, 2005, 1942, 1915, 2685, 2481, - /* 40 */ 840, 2810, 136, 1924, 2724, 135, 134, 133, 132, 131, - /* 50 */ 130, 129, 128, 127, 606, 604, 833, 410, 856, 372, - /* 60 */ 2671, 230, 842, 2369, 418, 33, 2000, 832, 2724, 802, - /* 70 */ 155, 40, 39, 19, 301, 46, 44, 43, 42, 41, - /* 80 */ 1923, 2270, 802, 155, 2671, 210, 842, 726, 136, 2687, - /* 90 */ 2690, 135, 134, 133, 132, 131, 130, 129, 128, 127, - /* 100 */ 861, 2432, 724, 252, 722, 286, 285, 644, 2705, 2234, - /* 110 */ 961, 2744, 2813, 15, 1943, 119, 2707, 846, 2709, 2710, - /* 120 */ 841, 649, 861, 103, 642, 2226, 197, 199, 856, 2798, - /* 130 */ 646, 2140, 2705, 467, 2794, 2744, 643, 62, 2809, 406, - /* 140 */ 2707, 846, 2709, 2710, 841, 839, 861, 825, 2763, 2007, - /* 150 */ 2008, 50, 439, 218, 2512, 755, 934, 933, 932, 931, - /* 160 */ 499, 2845, 930, 929, 160, 924, 923, 922, 921, 920, - /* 170 */ 919, 918, 159, 912, 911, 910, 498, 497, 907, 906, - /* 180 */ 905, 196, 195, 904, 494, 903, 902, 901, 1978, 1988, - /* 190 */ 804, 185, 2806, 2807, 780, 153, 2811, 290, 2006, 2009, - /* 200 */ 802, 155, 1763, 1764, 192, 2806, 801, 581, 147, 800, - /* 210 */ 790, 2664, 580, 1918, 487, 1916, 2896, 9, 2896, 2100, - /* 220 */ 579, 1927, 40, 39, 739, 1942, 46, 44, 43, 42, - /* 230 */ 41, 2361, 2706, 2206, 789, 217, 789, 217, 122, 2897, - /* 240 */ 791, 2897, 791, 1690, 1691, 843, 2389, 489, 2387, 1921, - /* 250 */ 1922, 1975, 779, 1977, 1980, 1981, 1982, 1983, 1984, 1985, - /* 260 */ 1986, 1987, 838, 859, 858, 1999, 2001, 2002, 2003, 2004, - /* 270 */ 2, 47, 45, 2724, 917, 476, 415, 2345, 1940, 471, - /* 280 */ 2724, 1917, 1844, 1845, 2901, 588, 861, 431, 609, 2671, - /* 290 */ 2671, 842, 2896, 608, 2005, 60, 1915, 40, 39, 455, - /* 300 */ 2586, 46, 44, 43, 42, 41, 753, 2015, 736, 1946, - /* 310 */ 567, 2900, 610, 1942, 197, 2897, 2899, 416, 569, 1499, - /* 320 */ 322, 1498, 125, 2806, 2807, 2000, 153, 2811, 180, 547, - /* 330 */ 857, 2385, 19, 664, 322, 2034, 151, 2705, 2388, 1923, - /* 340 */ 2744, 2071, 2513, 775, 119, 2707, 846, 2709, 2710, 841, - /* 350 */ 221, 861, 1472, 778, 157, 1500, 166, 2769, 2798, 2183, - /* 360 */ 40, 39, 467, 2794, 46, 44, 43, 42, 41, 961, - /* 370 */ 440, 1479, 15, 898, 172, 171, 895, 894, 893, 169, - /* 380 */ 1946, 555, 1942, 145, 144, 143, 142, 141, 140, 139, - /* 390 */ 138, 137, 657, 1979, 1474, 1477, 1478, 537, 62, 40, - /* 400 */ 39, 2035, 536, 46, 44, 43, 42, 41, 2007, 2008, - /* 410 */ 661, 2519, 2498, 660, 596, 595, 594, 593, 592, 587, - /* 420 */ 586, 585, 584, 423, 29, 1975, 2071, 574, 573, 572, - /* 430 */ 571, 570, 564, 563, 562, 254, 557, 556, 438, 644, - /* 440 */ 856, 2234, 548, 1751, 1752, 329, 330, 1978, 1988, 1770, - /* 450 */ 328, 756, 781, 776, 769, 765, 1976, 2006, 2009, 2896, - /* 460 */ 2818, 2068, 2069, 2070, 2818, 2818, 2818, 2818, 2818, 2526, - /* 470 */ 2376, 662, 1918, 521, 1916, 62, 900, 2902, 217, 213, - /* 480 */ 740, 1979, 2897, 791, 857, 2385, 857, 2385, 36, 469, - /* 490 */ 2029, 2030, 2031, 2032, 2033, 2037, 2038, 2039, 2040, 2073, - /* 500 */ 2074, 2075, 2076, 2077, 146, 2141, 55, 377, 1921, 1922, - /* 510 */ 1975, 687, 1977, 1980, 1981, 1982, 1983, 1984, 1985, 1986, - /* 520 */ 1987, 838, 859, 858, 1999, 2001, 2002, 2003, 2004, 2, - /* 530 */ 12, 47, 45, 50, 476, 1926, 2706, 2539, 181, 471, - /* 540 */ 1947, 1917, 116, 390, 1976, 861, 2068, 2069, 2070, 805, - /* 550 */ 208, 113, 473, 600, 2005, 1590, 1915, 2171, 2536, 847, - /* 560 */ 388, 76, 651, 2578, 75, 2706, 40, 39, 454, 2586, - /* 570 */ 46, 44, 43, 42, 41, 417, 737, 2724, 843, 2071, - /* 580 */ 2236, 322, 1943, 1923, 2681, 2000, 2901, 250, 623, 621, - /* 590 */ 618, 616, 19, 2671, 2896, 842, 40, 39, 1592, 1923, - /* 600 */ 46, 44, 43, 42, 41, 2491, 2724, 708, 707, 706, - /* 610 */ 525, 1947, 2685, 2900, 698, 152, 702, 2897, 2898, 241, - /* 620 */ 701, 2539, 2671, 658, 842, 700, 705, 448, 447, 961, - /* 630 */ 914, 699, 15, 62, 98, 446, 695, 694, 693, 527, - /* 640 */ 523, 2705, 2537, 847, 2744, 599, 240, 551, 119, 2707, - /* 650 */ 846, 2709, 2710, 841, 797, 861, 857, 2385, 322, 597, - /* 660 */ 199, 2381, 2798, 2687, 2689, 468, 467, 2794, 2007, 2008, - /* 670 */ 2705, 63, 2112, 2744, 861, 2170, 146, 119, 2707, 846, - /* 680 */ 2709, 2710, 841, 692, 861, 12, 2129, 659, 2532, 2916, - /* 690 */ 183, 2798, 2195, 51, 2846, 467, 2794, 916, 2818, 2068, - /* 700 */ 2069, 2070, 2818, 2818, 2818, 2818, 2818, 1978, 1988, 35, - /* 710 */ 1945, 1790, 1791, 1929, 2181, 40, 39, 2006, 2009, 46, - /* 720 */ 44, 43, 42, 41, 2359, 86, 85, 540, 2439, 2440, - /* 730 */ 229, 2093, 1918, 2445, 1916, 46, 44, 43, 42, 41, - /* 740 */ 98, 437, 2624, 532, 530, 772, 771, 2127, 2128, 2130, - /* 750 */ 2131, 2132, 2443, 12, 289, 10, 414, 441, 288, 519, - /* 760 */ 1789, 1792, 515, 511, 507, 504, 533, 2380, 1921, 1922, - /* 770 */ 1975, 1585, 1977, 1980, 1981, 1982, 1983, 1984, 1985, 1986, - /* 780 */ 1987, 838, 859, 858, 1999, 2001, 2002, 2003, 2004, 2, - /* 790 */ 47, 45, 2010, 1499, 2706, 1498, 756, 482, 471, 236, - /* 800 */ 1917, 502, 180, 867, 2896, 891, 501, 843, 2901, 2853, - /* 810 */ 2665, 489, 2387, 2005, 1586, 1915, 322, 491, 2706, 78, - /* 820 */ 2438, 2440, 2902, 217, 1602, 1945, 2813, 2897, 791, 1500, - /* 830 */ 790, 843, 101, 2866, 638, 2724, 1942, 426, 2896, 1601, - /* 840 */ 453, 2445, 728, 636, 2000, 92, 632, 628, 91, 464, - /* 850 */ 211, 2671, 2808, 842, 831, 756, 789, 217, 1923, 2724, - /* 860 */ 2443, 2897, 791, 2896, 857, 2385, 898, 172, 171, 895, - /* 870 */ 894, 893, 169, 89, 476, 2671, 322, 842, 445, 444, - /* 880 */ 320, 2902, 217, 485, 541, 861, 2897, 791, 961, 2464, - /* 890 */ 2372, 48, 898, 172, 171, 895, 894, 893, 169, 2705, - /* 900 */ 1502, 1503, 2744, 3, 2706, 740, 119, 2707, 846, 2709, - /* 910 */ 2710, 841, 611, 861, 1917, 53, 90, 843, 2916, 2164, - /* 920 */ 2798, 857, 2385, 2705, 467, 2794, 2744, 2007, 2008, 1915, - /* 930 */ 119, 2707, 846, 2709, 2710, 841, 826, 861, 2770, 553, - /* 940 */ 2508, 542, 2916, 798, 2798, 2724, 559, 2508, 467, 2794, - /* 950 */ 474, 866, 865, 864, 857, 2385, 443, 442, 179, 689, - /* 960 */ 2445, 2671, 828, 842, 2770, 2706, 1978, 1988, 475, 2390, - /* 970 */ 857, 2385, 1923, 1479, 663, 1886, 2006, 2009, 843, 2443, - /* 980 */ 767, 691, 376, 857, 2385, 690, 2445, 742, 2578, 297, - /* 990 */ 561, 1918, 232, 1916, 490, 320, 2121, 1477, 1478, 234, - /* 1000 */ 590, 2508, 961, 575, 1979, 2443, 2724, 481, 480, 2705, - /* 1010 */ 62, 2122, 2744, 1946, 683, 682, 187, 2707, 846, 2709, - /* 1020 */ 2710, 841, 2671, 861, 842, 2092, 2205, 1921, 1922, 1975, - /* 1030 */ 2026, 1977, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, - /* 1040 */ 838, 859, 858, 1999, 2001, 2002, 2003, 2004, 2, 47, - /* 1050 */ 45, 2706, 492, 239, 2120, 583, 582, 471, 383, 1917, - /* 1060 */ 179, 1885, 685, 684, 843, 102, 2889, 1976, 857, 2385, - /* 1070 */ 2705, 2390, 2005, 2744, 1915, 792, 2917, 119, 2707, 846, - /* 1080 */ 2709, 2710, 841, 2671, 861, 704, 703, 2706, 576, 2916, - /* 1090 */ 182, 2798, 2724, 484, 483, 467, 2794, 1606, 2319, 1818, - /* 1100 */ 843, 2204, 2830, 2000, 1651, 1918, 2389, 1916, 2671, 535, - /* 1110 */ 842, 534, 1605, 111, 14, 13, 2203, 1923, 1642, 890, - /* 1120 */ 889, 888, 1646, 887, 1648, 1649, 886, 883, 2724, 1657, - /* 1130 */ 880, 1659, 1660, 877, 874, 871, 2196, 857, 2385, 2378, - /* 1140 */ 2320, 1921, 1922, 533, 2671, 117, 842, 961, 2706, 2900, - /* 1150 */ 48, 2036, 857, 2385, 857, 2385, 2705, 577, 2671, 2744, - /* 1160 */ 2360, 843, 158, 119, 2707, 846, 2709, 2710, 841, 377, - /* 1170 */ 861, 2377, 2382, 2671, 292, 2916, 2202, 2798, 857, 2385, - /* 1180 */ 190, 467, 2794, 212, 148, 613, 2007, 2008, 1481, 2724, - /* 1190 */ 857, 2385, 2705, 322, 1941, 2744, 88, 2201, 300, 119, - /* 1200 */ 2707, 846, 2709, 2710, 841, 2671, 861, 842, 857, 2385, - /* 1210 */ 808, 2916, 2200, 2798, 496, 495, 2199, 467, 2794, 2198, - /* 1220 */ 857, 2385, 857, 2385, 1931, 1978, 1988, 2048, 333, 857, - /* 1230 */ 2385, 2587, 900, 2671, 2859, 2006, 2009, 2005, 34, 1924, - /* 1240 */ 822, 1946, 340, 1942, 1947, 43, 42, 41, 2041, 854, - /* 1250 */ 1918, 2592, 1916, 2705, 2671, 2611, 2744, 857, 2385, 773, - /* 1260 */ 119, 2707, 846, 2709, 2710, 841, 2197, 861, 2000, 2671, - /* 1270 */ 928, 926, 2773, 2671, 2798, 2194, 2671, 855, 467, 2794, - /* 1280 */ 156, 691, 1923, 2769, 2193, 690, 1921, 1922, 1975, 2273, - /* 1290 */ 1977, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 838, - /* 1300 */ 859, 858, 1999, 2001, 2002, 2003, 2004, 2, 47, 45, - /* 1310 */ 2192, 2706, 830, 291, 857, 2385, 471, 2191, 1917, 857, - /* 1320 */ 2385, 2190, 2189, 2671, 843, 308, 179, 2625, 1651, 784, - /* 1330 */ 2188, 2005, 2671, 1915, 368, 892, 794, 2391, 2436, 493, - /* 1340 */ 2187, 2671, 1642, 890, 889, 888, 1646, 887, 1648, 1649, - /* 1350 */ 837, 836, 2724, 1657, 835, 1659, 1660, 834, 874, 871, - /* 1360 */ 896, 2186, 2000, 2436, 708, 707, 706, 2671, 2671, 170, - /* 1370 */ 842, 698, 152, 702, 2671, 316, 1923, 701, 2671, 2671, - /* 1380 */ 2445, 756, 700, 705, 448, 447, 2445, 2671, 699, 2896, - /* 1390 */ 2238, 2445, 446, 695, 694, 693, 2082, 2671, 516, 809, - /* 1400 */ 897, 802, 155, 2436, 2615, 817, 961, 2902, 217, 15, - /* 1410 */ 2444, 384, 2897, 791, 2422, 1932, 2705, 1927, 2671, 2744, - /* 1420 */ 2211, 956, 223, 119, 2707, 846, 2709, 2710, 841, 277, - /* 1430 */ 861, 279, 275, 281, 278, 2771, 280, 2798, 421, 420, - /* 1440 */ 2362, 467, 2794, 952, 283, 2007, 2008, 282, 477, 162, - /* 1450 */ 54, 1935, 1937, 162, 696, 697, 509, 730, 2692, 729, - /* 1460 */ 272, 2005, 2706, 486, 793, 859, 858, 1999, 2001, 2002, - /* 1470 */ 2003, 2004, 1947, 161, 1976, 843, 2257, 191, 1583, 1581, - /* 1480 */ 2255, 2173, 2174, 1563, 1978, 1988, 681, 677, 673, 669, - /* 1490 */ 2246, 271, 2000, 2244, 2006, 2009, 207, 803, 709, 150, - /* 1500 */ 40, 39, 711, 2724, 46, 44, 43, 42, 41, 1918, - /* 1510 */ 763, 1916, 713, 2725, 49, 716, 170, 908, 49, 2671, - /* 1520 */ 200, 842, 2694, 186, 2806, 2807, 1564, 153, 2811, 327, - /* 1530 */ 1834, 2312, 77, 2311, 1842, 64, 2517, 99, 347, 346, - /* 1540 */ 269, 1555, 14, 13, 49, 1921, 1922, 1975, 2227, 1977, - /* 1550 */ 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 838, 859, - /* 1560 */ 858, 1999, 2001, 2002, 2003, 2004, 2, 2705, 49, 738, - /* 1570 */ 2744, 77, 349, 348, 119, 2707, 846, 2709, 2710, 841, - /* 1580 */ 167, 861, 733, 170, 351, 350, 827, 964, 2798, 353, - /* 1590 */ 352, 2116, 467, 2794, 2706, 2126, 74, 807, 869, 2125, - /* 1600 */ 168, 306, 2849, 374, 355, 354, 170, 843, 257, 770, - /* 1610 */ 331, 460, 777, 814, 357, 356, 2042, 268, 456, 954, - /* 1620 */ 206, 259, 266, 795, 149, 1989, 1925, 264, 655, 950, - /* 1630 */ 946, 942, 938, 167, 371, 2724, 756, 811, 500, 1908, - /* 1640 */ 518, 1884, 359, 358, 2896, 909, 256, 361, 360, 1787, - /* 1650 */ 2518, 2671, 1777, 842, 363, 362, 365, 364, 1536, 367, - /* 1660 */ 366, 343, 2902, 217, 1633, 2233, 749, 2897, 791, 1553, - /* 1670 */ 2433, 2706, 785, 479, 478, 1909, 2850, 382, 2860, 1664, - /* 1680 */ 118, 1672, 123, 344, 843, 786, 318, 1679, 715, 859, - /* 1690 */ 858, 1999, 2001, 2002, 2003, 2004, 313, 321, 2346, 2705, - /* 1700 */ 5, 1537, 2744, 727, 2706, 1677, 120, 2707, 846, 2709, - /* 1710 */ 2710, 841, 2724, 861, 173, 818, 503, 843, 508, 287, - /* 1720 */ 2798, 1940, 435, 1950, 2797, 2794, 517, 528, 2671, 529, - /* 1730 */ 842, 224, 531, 225, 2706, 1811, 718, 227, 375, 545, - /* 1740 */ 1941, 552, 238, 712, 710, 2724, 554, 843, 602, 558, - /* 1750 */ 284, 2706, 560, 565, 589, 578, 2510, 591, 615, 614, - /* 1760 */ 342, 2671, 824, 842, 843, 325, 598, 612, 601, 603, - /* 1770 */ 324, 243, 244, 617, 247, 2724, 2705, 619, 620, 2744, - /* 1780 */ 622, 639, 624, 120, 2707, 846, 2709, 2710, 841, 294, - /* 1790 */ 861, 2671, 2724, 842, 1948, 4, 72, 2798, 640, 71, - /* 1800 */ 648, 829, 2794, 647, 1928, 650, 255, 94, 2671, 844, - /* 1810 */ 842, 1943, 2744, 652, 258, 1949, 120, 2707, 846, 2709, - /* 1820 */ 2710, 841, 653, 861, 1951, 654, 741, 261, 2706, 806, - /* 1830 */ 2798, 656, 263, 1952, 430, 2794, 2533, 95, 1953, 2705, - /* 1840 */ 686, 843, 2744, 2527, 96, 2706, 184, 2707, 846, 2709, - /* 1850 */ 2710, 841, 97, 861, 665, 270, 2705, 411, 843, 2744, - /* 1860 */ 719, 720, 124, 120, 2707, 846, 2709, 2710, 841, 2724, - /* 1870 */ 861, 688, 2601, 2375, 274, 2598, 100, 2798, 2371, 276, - /* 1880 */ 756, 175, 2795, 756, 121, 2671, 2724, 842, 2896, 2373, - /* 1890 */ 2368, 2896, 176, 757, 2856, 177, 2597, 732, 378, 163, - /* 1900 */ 734, 293, 2671, 1944, 842, 2579, 2902, 217, 744, 2902, - /* 1910 */ 217, 2897, 791, 743, 2897, 791, 298, 745, 296, 751, - /* 1920 */ 748, 750, 760, 774, 812, 2706, 8, 458, 2865, 2864, - /* 1930 */ 2837, 303, 783, 2705, 307, 189, 2744, 761, 843, 759, - /* 1940 */ 184, 2707, 846, 2709, 2710, 841, 305, 861, 311, 309, - /* 1950 */ 2705, 758, 312, 2744, 2706, 310, 788, 407, 2707, 846, - /* 1960 */ 2709, 2710, 841, 461, 861, 787, 2724, 843, 2919, 796, - /* 1970 */ 799, 2817, 314, 154, 1945, 2895, 317, 2090, 2088, 203, - /* 1980 */ 323, 2814, 2671, 164, 842, 810, 379, 2547, 2857, 2546, - /* 1990 */ 1, 219, 2545, 380, 465, 2724, 815, 816, 820, 165, - /* 2000 */ 61, 336, 823, 2779, 848, 850, 852, 459, 341, 853, - /* 2010 */ 381, 2671, 110, 842, 2386, 2706, 2663, 112, 1456, 2662, - /* 2020 */ 2658, 955, 863, 2657, 2649, 385, 2648, 958, 843, 2640, - /* 2030 */ 2705, 2639, 2655, 2744, 2654, 2646, 370, 407, 2707, 846, - /* 2040 */ 2709, 2710, 841, 2645, 861, 2634, 52, 174, 2633, 2652, - /* 2050 */ 419, 2706, 960, 2651, 736, 2643, 2724, 397, 387, 2705, - /* 2060 */ 2642, 2631, 2744, 2630, 840, 2628, 400, 2707, 846, 2709, - /* 2070 */ 2710, 841, 2671, 861, 842, 422, 2627, 2437, 408, 398, - /* 2080 */ 409, 389, 2623, 2622, 427, 2621, 83, 2616, 505, 428, - /* 2090 */ 506, 1868, 2724, 1869, 222, 510, 2614, 512, 513, 514, - /* 2100 */ 1867, 2613, 2612, 436, 2610, 520, 2609, 522, 2671, 2608, - /* 2110 */ 842, 524, 2607, 526, 1855, 2583, 226, 782, 2582, 228, - /* 2120 */ 2705, 84, 1814, 2744, 1813, 2560, 2559, 187, 2707, 846, - /* 2130 */ 2709, 2710, 841, 2558, 861, 538, 539, 2557, 2556, 2500, - /* 2140 */ 2706, 543, 1750, 2497, 546, 2496, 2490, 549, 2487, 550, - /* 2150 */ 2486, 2485, 231, 843, 233, 2488, 2705, 2484, 87, 2744, - /* 2160 */ 2489, 2483, 2482, 406, 2707, 846, 2709, 2710, 841, 2706, - /* 2170 */ 861, 2480, 2764, 2479, 2478, 235, 566, 2477, 568, 2475, - /* 2180 */ 2474, 2724, 843, 2473, 2472, 2471, 2495, 2918, 2470, 2469, - /* 2190 */ 2706, 237, 2457, 2456, 93, 2455, 2454, 2671, 2468, 842, - /* 2200 */ 2493, 2476, 2467, 843, 2466, 2465, 2463, 2462, 2461, 2460, - /* 2210 */ 2724, 2459, 2458, 2453, 2525, 2494, 2492, 2452, 2451, 2706, - /* 2220 */ 2450, 1756, 470, 242, 2449, 605, 2671, 2448, 842, 607, - /* 2230 */ 2447, 2724, 843, 2446, 2277, 245, 2276, 424, 246, 2275, - /* 2240 */ 425, 1603, 248, 1607, 2274, 2705, 2272, 2671, 2744, 842, - /* 2250 */ 2269, 472, 407, 2707, 846, 2709, 2710, 841, 2268, 861, - /* 2260 */ 2724, 2261, 1599, 249, 627, 625, 629, 2248, 631, 633, - /* 2270 */ 2222, 1480, 2221, 635, 2705, 626, 2671, 2744, 842, 637, - /* 2280 */ 80, 407, 2707, 846, 2709, 2710, 841, 630, 861, 634, - /* 2290 */ 251, 81, 198, 2581, 2577, 731, 2691, 209, 2744, 253, - /* 2300 */ 645, 2567, 402, 2707, 846, 2709, 2710, 841, 2555, 861, - /* 2310 */ 260, 2554, 262, 2706, 265, 2531, 2524, 2363, 267, 2271, - /* 2320 */ 2267, 666, 668, 667, 2705, 2265, 843, 2744, 1529, 670, - /* 2330 */ 2706, 392, 2707, 846, 2709, 2710, 841, 671, 861, 672, - /* 2340 */ 2263, 674, 675, 843, 676, 2260, 678, 2706, 679, 680, - /* 2350 */ 2243, 2241, 2242, 2240, 2724, 2218, 2365, 1683, 1684, 2364, - /* 2360 */ 843, 73, 273, 1589, 1588, 1587, 1584, 1582, 1580, 1579, - /* 2370 */ 2671, 2724, 842, 2258, 1578, 1577, 1576, 925, 2256, 927, - /* 2380 */ 1573, 2247, 1571, 2245, 1572, 1570, 449, 2671, 2724, 842, - /* 2390 */ 450, 451, 452, 2217, 717, 2216, 714, 2215, 2214, 721, - /* 2400 */ 723, 2213, 725, 1849, 2671, 126, 842, 2580, 1851, 1848, - /* 2410 */ 2706, 2576, 1853, 28, 295, 2566, 67, 2553, 2705, 1820, - /* 2420 */ 1839, 2744, 1822, 843, 746, 391, 2707, 846, 2709, 2710, - /* 2430 */ 841, 56, 861, 2552, 2901, 2705, 20, 17, 2744, 30, - /* 2440 */ 6, 762, 393, 2707, 846, 2709, 2710, 841, 2143, 861, - /* 2450 */ 57, 2724, 2705, 457, 747, 2744, 1799, 21, 299, 399, - /* 2460 */ 2707, 846, 2709, 2710, 841, 766, 861, 2671, 1798, 842, - /* 2470 */ 7, 302, 22, 752, 754, 1824, 214, 202, 735, 178, - /* 2480 */ 32, 2117, 23, 2692, 768, 2083, 215, 764, 2085, 188, - /* 2490 */ 2706, 304, 65, 2124, 24, 2158, 2157, 201, 319, 31, - /* 2500 */ 462, 2111, 82, 843, 18, 2081, 2163, 2706, 2164, 216, - /* 2510 */ 2162, 2161, 463, 2065, 59, 2705, 193, 2551, 2744, 2530, - /* 2520 */ 843, 104, 403, 2707, 846, 2709, 2710, 841, 2064, 861, - /* 2530 */ 105, 2724, 326, 2706, 2529, 2119, 204, 106, 332, 69, - /* 2540 */ 2523, 335, 813, 819, 107, 25, 843, 2671, 2724, 842, - /* 2550 */ 13, 2017, 2016, 11, 1933, 2027, 1992, 194, 205, 1991, - /* 2560 */ 1990, 58, 1960, 876, 2671, 879, 842, 882, 885, 38, - /* 2570 */ 2706, 1968, 2522, 16, 2724, 26, 845, 27, 70, 108, - /* 2580 */ 849, 339, 109, 843, 345, 334, 1994, 868, 2179, 2749, - /* 2590 */ 2671, 2748, 842, 113, 1665, 2705, 860, 68, 2744, 821, - /* 2600 */ 862, 337, 394, 2707, 846, 2709, 2710, 841, 2178, 861, - /* 2610 */ 488, 2724, 2705, 2177, 870, 2744, 872, 1662, 873, 404, - /* 2620 */ 2707, 846, 2709, 2710, 841, 851, 861, 2671, 1661, 842, - /* 2630 */ 875, 2706, 1658, 878, 1652, 881, 2176, 1650, 2705, 884, - /* 2640 */ 1656, 2744, 114, 369, 843, 395, 2707, 846, 2709, 2710, - /* 2650 */ 841, 115, 861, 1678, 2706, 1655, 1654, 79, 1653, 1674, - /* 2660 */ 1567, 1527, 899, 1566, 1565, 1562, 1559, 843, 1558, 1557, - /* 2670 */ 1556, 1554, 2724, 1552, 1597, 2705, 1551, 1550, 2744, 1596, - /* 2680 */ 220, 913, 405, 2707, 846, 2709, 2710, 841, 2671, 861, - /* 2690 */ 842, 1548, 915, 1547, 1546, 2724, 1545, 1544, 1543, 1542, - /* 2700 */ 1593, 1591, 1539, 1538, 1535, 1534, 1533, 1532, 2266, 935, - /* 2710 */ 936, 2671, 2264, 842, 939, 2706, 2262, 937, 941, 943, - /* 2720 */ 945, 940, 2259, 944, 947, 948, 2239, 949, 843, 951, - /* 2730 */ 2237, 953, 1469, 2212, 957, 1457, 2705, 373, 959, 2744, - /* 2740 */ 2706, 1919, 386, 396, 2707, 846, 2709, 2710, 841, 962, - /* 2750 */ 861, 963, 2182, 843, 2182, 2182, 2724, 2182, 2182, 2705, - /* 2760 */ 2182, 2182, 2744, 2182, 2182, 2182, 412, 2707, 846, 2709, - /* 2770 */ 2710, 841, 2671, 861, 842, 2182, 2182, 2182, 2182, 2182, - /* 2780 */ 2182, 2724, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, - /* 2790 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2671, 2182, 842, - /* 2800 */ 2182, 2706, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, - /* 2810 */ 2182, 2182, 2182, 2182, 843, 2182, 2182, 2182, 2182, 2182, - /* 2820 */ 2705, 2182, 2706, 2744, 2182, 2182, 2182, 413, 2707, 846, - /* 2830 */ 2709, 2710, 841, 2182, 861, 843, 2182, 2182, 2182, 2182, - /* 2840 */ 2182, 2182, 2724, 2182, 2182, 2705, 2182, 2182, 2744, 2182, - /* 2850 */ 2182, 2182, 2718, 2707, 846, 2709, 2710, 841, 2671, 861, - /* 2860 */ 842, 2182, 2182, 2724, 2182, 2182, 2182, 2182, 2182, 2182, - /* 2870 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2671, - /* 2880 */ 2182, 842, 2182, 2706, 2182, 2182, 2182, 2182, 2182, 2182, - /* 2890 */ 2182, 2182, 2182, 2182, 2182, 2182, 843, 2182, 2182, 2182, - /* 2900 */ 2182, 2182, 2182, 2182, 2182, 2182, 2705, 2182, 2182, 2744, - /* 2910 */ 2182, 2182, 2182, 2717, 2707, 846, 2709, 2710, 841, 2182, - /* 2920 */ 861, 2182, 2182, 2182, 2724, 2182, 2182, 2705, 2182, 2182, - /* 2930 */ 2744, 2182, 2182, 2182, 2716, 2707, 846, 2709, 2710, 841, - /* 2940 */ 2671, 861, 842, 2182, 2706, 2182, 2182, 2182, 2182, 2182, - /* 2950 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 843, 2182, 2182, - /* 2960 */ 2182, 2182, 2182, 2706, 2182, 2182, 2182, 2182, 2182, 2182, - /* 2970 */ 2182, 2182, 2182, 2182, 2182, 2182, 843, 2182, 2182, 2182, - /* 2980 */ 2182, 2182, 2182, 2182, 2182, 2724, 2182, 2182, 2705, 2182, - /* 2990 */ 2182, 2744, 2182, 2182, 2182, 432, 2707, 846, 2709, 2710, - /* 3000 */ 841, 2671, 861, 842, 2724, 2182, 2182, 2182, 2182, 2182, - /* 3010 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, - /* 3020 */ 2671, 2182, 842, 2182, 2706, 2182, 2182, 2182, 2182, 2182, - /* 3030 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 843, 2182, 2182, - /* 3040 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2705, - /* 3050 */ 2182, 2182, 2744, 2182, 2182, 2182, 433, 2707, 846, 2709, - /* 3060 */ 2710, 841, 2182, 861, 2182, 2724, 2182, 2182, 2705, 2182, - /* 3070 */ 2182, 2744, 2182, 2182, 2182, 429, 2707, 846, 2709, 2710, - /* 3080 */ 841, 2671, 861, 842, 2182, 2182, 2182, 2182, 2182, 2182, - /* 3090 */ 2182, 2182, 2182, 2706, 2182, 2182, 2182, 2182, 2182, 2182, - /* 3100 */ 2182, 2182, 2182, 2182, 2182, 2182, 843, 2182, 2706, 2182, - /* 3110 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, - /* 3120 */ 2182, 843, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2705, - /* 3130 */ 2182, 2182, 2744, 2182, 2724, 2182, 434, 2707, 846, 2709, - /* 3140 */ 2710, 841, 2182, 861, 2182, 2182, 2182, 2182, 2182, 2724, - /* 3150 */ 2671, 2182, 842, 2182, 2182, 2182, 2182, 2182, 2182, 2182, - /* 3160 */ 2182, 2182, 2182, 2182, 2182, 2671, 2182, 842, 2182, 2182, - /* 3170 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, - /* 3180 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, - /* 3190 */ 2182, 2182, 2182, 2182, 2182, 2182, 2182, 2182, 844, 2182, - /* 3200 */ 2182, 2744, 2182, 2182, 2182, 402, 2707, 846, 2709, 2710, - /* 3210 */ 841, 2182, 861, 2705, 2182, 2182, 2744, 2182, 2182, 2182, - /* 3220 */ 401, 2707, 846, 2709, 2710, 841, 2182, 861, + /* 0 */ 644, 2383, 2717, 645, 2235, 2550, 652, 2675, 2824, 645, + /* 10 */ 2235, 490, 47, 45, 2105, 808, 862, 2396, 2550, 468, + /* 20 */ 473, 2193, 1926, 40, 39, 2547, 850, 46, 44, 43, + /* 30 */ 42, 41, 475, 793, 2821, 2014, 496, 1924, 2547, 850, + /* 40 */ 101, 2907, 138, 2735, 124, 137, 136, 135, 134, 133, + /* 50 */ 132, 131, 130, 129, 919, 492, 2398, 443, 861, 792, + /* 60 */ 218, 2682, 861, 845, 2908, 794, 2009, 805, 157, 2391, + /* 70 */ 40, 39, 479, 19, 46, 44, 43, 42, 41, 2247, + /* 80 */ 1932, 2279, 1955, 866, 905, 138, 836, 2717, 137, 136, + /* 90 */ 135, 134, 133, 132, 131, 130, 129, 40, 39, 835, + /* 100 */ 808, 46, 44, 43, 42, 41, 457, 2597, 2716, 667, + /* 110 */ 966, 2755, 2192, 15, 2456, 121, 2718, 849, 2720, 2721, + /* 120 */ 844, 921, 866, 1951, 466, 862, 2396, 200, 2735, 2809, + /* 130 */ 447, 446, 957, 469, 2805, 2454, 147, 146, 145, 144, + /* 140 */ 143, 142, 141, 140, 139, 148, 2682, 2190, 845, 2016, + /* 150 */ 2017, 50, 690, 219, 2400, 50, 939, 938, 937, 936, + /* 160 */ 502, 2856, 935, 934, 162, 929, 928, 927, 926, 925, + /* 170 */ 924, 923, 161, 917, 916, 915, 501, 500, 912, 911, + /* 180 */ 910, 198, 197, 909, 497, 908, 907, 906, 1987, 1997, + /* 190 */ 127, 2817, 2818, 2716, 155, 2822, 2755, 120, 2015, 2018, + /* 200 */ 121, 2718, 849, 2720, 2721, 844, 117, 866, 445, 444, + /* 210 */ 649, 692, 200, 1927, 2809, 1925, 646, 739, 469, 2805, + /* 220 */ 2180, 85, 40, 39, 2456, 783, 46, 44, 43, 42, + /* 230 */ 41, 556, 2519, 694, 439, 505, 9, 693, 160, 494, + /* 240 */ 504, 2215, 2449, 2451, 872, 2454, 2857, 2386, 2388, 1930, + /* 250 */ 1931, 1984, 214, 1986, 1989, 1990, 1991, 1992, 1993, 1994, + /* 260 */ 1995, 1996, 841, 864, 863, 2008, 2010, 2011, 2012, 2013, + /* 270 */ 2, 47, 45, 1506, 603, 1505, 417, 1951, 1949, 473, + /* 280 */ 2282, 1926, 2717, 37, 340, 591, 234, 433, 612, 759, + /* 290 */ 153, 1772, 1773, 611, 2014, 846, 1924, 2907, 40, 39, + /* 300 */ 2682, 66, 46, 44, 43, 42, 41, 519, 1479, 1507, + /* 310 */ 570, 861, 613, 1956, 2371, 2913, 218, 418, 572, 2080, + /* 320 */ 2908, 794, 793, 2735, 641, 2009, 192, 1486, 317, 550, + /* 330 */ 2907, 225, 19, 639, 324, 2043, 635, 631, 2179, 1932, + /* 340 */ 243, 2682, 207, 845, 2378, 420, 2717, 163, 792, 218, + /* 350 */ 1481, 1484, 1485, 2908, 794, 711, 710, 709, 1951, 846, + /* 360 */ 2080, 2245, 701, 154, 705, 460, 602, 242, 704, 966, + /* 370 */ 442, 2524, 15, 703, 708, 450, 449, 805, 157, 702, + /* 380 */ 600, 558, 476, 448, 698, 697, 696, 2735, 2716, 2385, + /* 390 */ 181, 2755, 871, 870, 869, 409, 2718, 849, 2720, 2721, + /* 400 */ 844, 2044, 866, 2401, 2149, 2682, 1955, 845, 2016, 2017, + /* 410 */ 62, 2530, 2509, 115, 599, 598, 597, 596, 595, 590, + /* 420 */ 589, 588, 587, 425, 778, 861, 2080, 577, 576, 575, + /* 430 */ 574, 573, 567, 566, 565, 211, 560, 559, 440, 2077, + /* 440 */ 2078, 2079, 551, 1760, 1761, 805, 157, 1987, 1997, 1779, + /* 450 */ 2824, 62, 2716, 2443, 479, 2755, 1984, 2015, 2018, 121, + /* 460 */ 2718, 849, 2720, 2721, 844, 866, 866, 1506, 1952, 1505, + /* 470 */ 742, 2927, 1927, 2809, 1925, 1952, 2820, 469, 2805, 2829, + /* 480 */ 2077, 2078, 2079, 2829, 2829, 2829, 2829, 2829, 36, 471, + /* 490 */ 2038, 2039, 2040, 2041, 2042, 2046, 2047, 2048, 2049, 807, + /* 500 */ 187, 2817, 2818, 1507, 155, 2822, 331, 332, 1930, 1931, + /* 510 */ 1984, 330, 1986, 1989, 1990, 1991, 1992, 1993, 1994, 1995, + /* 520 */ 1996, 841, 864, 863, 2008, 2010, 2011, 2012, 2013, 2, + /* 530 */ 12, 47, 45, 784, 779, 772, 768, 62, 183, 473, + /* 540 */ 743, 1926, 2717, 392, 2045, 2829, 2077, 2078, 2079, 2829, + /* 550 */ 2829, 2829, 2829, 2829, 2014, 843, 1924, 862, 2396, 2635, + /* 560 */ 390, 77, 524, 729, 76, 2109, 2717, 2626, 188, 2817, + /* 570 */ 2818, 1951, 155, 2822, 2550, 419, 213, 148, 727, 846, + /* 580 */ 725, 288, 287, 2735, 695, 2009, 797, 252, 626, 624, + /* 590 */ 621, 619, 19, 324, 2548, 850, 2692, 1799, 1800, 1932, + /* 600 */ 660, 2682, 254, 845, 1699, 1700, 647, 2735, 2243, 922, + /* 610 */ 40, 39, 2354, 759, 46, 44, 43, 42, 41, 512, + /* 620 */ 2692, 2907, 2912, 654, 2589, 2682, 2696, 845, 664, 966, + /* 630 */ 2907, 34, 15, 62, 324, 29, 538, 1956, 537, 2913, + /* 640 */ 218, 2050, 499, 498, 2908, 794, 1798, 1801, 2716, 2911, + /* 650 */ 2696, 2755, 1940, 2908, 2910, 408, 2718, 849, 2720, 2721, + /* 660 */ 844, 842, 866, 828, 2774, 2014, 207, 1933, 2016, 2017, + /* 670 */ 536, 63, 2716, 2492, 441, 2755, 2698, 2700, 470, 121, + /* 680 */ 2718, 849, 2720, 2721, 844, 741, 866, 866, 2537, 159, + /* 690 */ 665, 168, 2780, 2809, 207, 2523, 2009, 469, 2805, 528, + /* 700 */ 2698, 2701, 477, 969, 184, 485, 663, 1987, 1997, 62, + /* 710 */ 1932, 866, 2328, 862, 2396, 2024, 2150, 2015, 2018, 376, + /* 720 */ 324, 1951, 740, 2523, 488, 89, 88, 543, 530, 526, + /* 730 */ 231, 12, 1927, 223, 1925, 959, 208, 51, 1932, 1988, + /* 740 */ 833, 2636, 1609, 535, 533, 955, 951, 947, 943, 2214, + /* 750 */ 373, 2082, 2083, 2084, 2085, 2086, 416, 1608, 158, 522, + /* 760 */ 547, 2780, 518, 514, 510, 507, 536, 896, 1930, 1931, + /* 770 */ 1984, 736, 1986, 1989, 1990, 1991, 1992, 1993, 1994, 1995, + /* 780 */ 1996, 841, 864, 863, 2008, 2010, 2011, 2012, 2013, 2, + /* 790 */ 47, 45, 2019, 2912, 2717, 759, 73, 2912, 473, 346, + /* 800 */ 1926, 2213, 1985, 2907, 782, 2907, 2138, 846, 2682, 2864, + /* 810 */ 1954, 609, 607, 2014, 412, 1924, 324, 232, 2369, 862, + /* 820 */ 2396, 2913, 218, 2717, 2911, 759, 2908, 794, 2908, 2909, + /* 830 */ 614, 821, 2735, 2907, 2381, 2735, 846, 1486, 2877, 55, + /* 840 */ 12, 584, 10, 1941, 2009, 1936, 583, 805, 157, 499, + /* 850 */ 498, 2913, 218, 2682, 582, 845, 2908, 794, 1932, 374, + /* 860 */ 2682, 1484, 1485, 743, 2735, 775, 774, 2136, 2137, 2139, + /* 870 */ 2140, 2141, 2717, 798, 1933, 185, 344, 2204, 827, 1944, + /* 880 */ 1946, 327, 2682, 1895, 845, 846, 326, 770, 966, 1988, + /* 890 */ 905, 48, 324, 864, 863, 2008, 2010, 2011, 2012, 2013, + /* 900 */ 2716, 1955, 1894, 2755, 2173, 296, 781, 121, 2718, 849, + /* 910 */ 2720, 2721, 844, 2735, 866, 484, 483, 1597, 2676, 2927, + /* 920 */ 324, 2809, 862, 2396, 378, 469, 2805, 2016, 2017, 2716, + /* 930 */ 2824, 2682, 2755, 845, 487, 486, 121, 2718, 849, 2720, + /* 940 */ 2721, 844, 544, 866, 2130, 256, 745, 2589, 2927, 647, + /* 950 */ 2809, 2243, 1985, 758, 469, 2805, 2819, 40, 39, 2131, + /* 960 */ 1599, 46, 44, 43, 42, 41, 1987, 1997, 2450, 2451, + /* 970 */ 194, 2817, 804, 1488, 149, 803, 2015, 2018, 2716, 1950, + /* 980 */ 322, 2755, 2907, 479, 182, 121, 2718, 849, 2720, 2721, + /* 990 */ 844, 1927, 866, 1925, 866, 1660, 2399, 2927, 379, 2809, + /* 1000 */ 792, 218, 2129, 469, 2805, 2908, 794, 562, 2519, 1651, + /* 1010 */ 895, 894, 893, 1655, 892, 1657, 1658, 891, 888, 238, + /* 1020 */ 1666, 885, 1668, 1669, 882, 879, 876, 1930, 1931, 1984, + /* 1030 */ 1951, 1986, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, + /* 1040 */ 841, 864, 863, 2008, 2010, 2011, 2012, 2013, 2, 47, + /* 1050 */ 45, 2717, 1936, 540, 593, 2519, 2911, 473, 539, 1926, + /* 1060 */ 456, 2597, 236, 2121, 846, 95, 2900, 105, 94, 33, + /* 1070 */ 2212, 221, 2014, 291, 1924, 40, 39, 290, 2211, 46, + /* 1080 */ 44, 43, 42, 41, 35, 862, 2396, 2717, 862, 2396, + /* 1090 */ 40, 39, 2735, 60, 46, 44, 43, 42, 41, 299, + /* 1100 */ 846, 1827, 2841, 2009, 756, 545, 2475, 759, 564, 241, + /* 1110 */ 2682, 829, 845, 2781, 2717, 2907, 385, 1932, 903, 174, + /* 1120 */ 173, 900, 899, 898, 171, 862, 2396, 846, 2735, 2682, + /* 1130 */ 292, 2400, 1956, 2913, 218, 2210, 93, 2682, 2908, 794, + /* 1140 */ 46, 44, 43, 42, 41, 578, 2682, 966, 845, 2717, + /* 1150 */ 48, 104, 862, 2396, 2209, 2735, 428, 2716, 2208, 455, + /* 1160 */ 2755, 731, 846, 2207, 121, 2718, 849, 2720, 2721, 844, + /* 1170 */ 379, 866, 579, 2682, 2456, 845, 2927, 661, 2809, 862, + /* 1180 */ 2396, 2206, 469, 2805, 478, 2203, 2016, 2017, 2202, 172, + /* 1190 */ 2735, 862, 2396, 2716, 2682, 2454, 2755, 744, 1988, 580, + /* 1200 */ 121, 2718, 849, 2720, 2721, 844, 897, 866, 2682, 2447, + /* 1210 */ 845, 666, 2927, 2682, 2809, 1853, 1854, 2682, 469, 2805, + /* 1220 */ 2716, 386, 2682, 2755, 2433, 1987, 1997, 121, 2718, 849, + /* 1230 */ 2720, 2721, 844, 2598, 866, 2015, 2018, 862, 2396, 2784, + /* 1240 */ 2682, 2809, 662, 2543, 2682, 469, 2805, 2682, 862, 2396, + /* 1250 */ 1927, 759, 1925, 1509, 1510, 2716, 101, 2393, 2755, 2907, + /* 1260 */ 2329, 1985, 121, 2718, 849, 2720, 2721, 844, 294, 866, + /* 1270 */ 54, 2717, 586, 585, 2782, 1955, 2809, 2913, 218, 1954, + /* 1280 */ 469, 2805, 2908, 794, 846, 2392, 1930, 1931, 1984, 2622, + /* 1290 */ 1986, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 841, + /* 1300 */ 864, 863, 2008, 2010, 2011, 2012, 2013, 2, 47, 45, + /* 1310 */ 686, 685, 2735, 2717, 862, 2396, 473, 182, 1926, 2201, + /* 1320 */ 2102, 1660, 43, 42, 41, 831, 846, 2781, 492, 2398, + /* 1330 */ 2682, 2014, 845, 1924, 302, 1651, 895, 894, 893, 1655, + /* 1340 */ 892, 1657, 1658, 840, 839, 2200, 1666, 838, 1668, 1669, + /* 1350 */ 837, 879, 876, 212, 2735, 2370, 2717, 2199, 2456, 40, + /* 1360 */ 39, 3, 2009, 46, 44, 43, 42, 41, 493, 846, + /* 1370 */ 809, 796, 2682, 53, 845, 2198, 1932, 2716, 2682, 2454, + /* 1380 */ 2755, 2603, 688, 687, 121, 2718, 849, 2720, 2721, 844, + /* 1390 */ 1613, 866, 862, 2396, 14, 13, 830, 2735, 2809, 2197, + /* 1400 */ 423, 422, 469, 2805, 2682, 1612, 966, 2717, 901, 15, + /* 1410 */ 480, 2447, 811, 707, 706, 2682, 2682, 845, 800, 2716, + /* 1420 */ 846, 114, 2755, 2014, 759, 489, 402, 2718, 849, 2720, + /* 1430 */ 2721, 844, 2907, 866, 2682, 933, 931, 862, 2396, 862, + /* 1440 */ 2396, 862, 2396, 1951, 293, 2016, 2017, 2387, 2735, 322, + /* 1450 */ 2913, 218, 2220, 961, 2009, 2908, 794, 335, 2682, 825, + /* 1460 */ 2196, 342, 2716, 2368, 787, 2755, 2682, 2717, 845, 122, + /* 1470 */ 2718, 849, 2720, 2721, 844, 2502, 866, 785, 616, 181, + /* 1480 */ 846, 718, 694, 2809, 1987, 1997, 693, 2808, 2805, 2195, + /* 1490 */ 862, 2396, 2402, 2456, 2015, 2018, 730, 903, 174, 173, + /* 1500 */ 900, 899, 898, 171, 2205, 164, 1956, 2057, 2735, 1927, + /* 1510 */ 857, 1925, 289, 2716, 812, 902, 2755, 554, 2447, 2682, + /* 1520 */ 122, 2718, 849, 2720, 2721, 844, 2682, 866, 845, 721, + /* 1530 */ 209, 2091, 150, 733, 2809, 732, 715, 713, 832, 2805, + /* 1540 */ 2870, 125, 303, 286, 91, 1930, 1931, 1984, 2682, 1986, + /* 1550 */ 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 841, 864, + /* 1560 */ 863, 2008, 2010, 2011, 2012, 2013, 2, 79, 862, 2396, + /* 1570 */ 862, 2396, 2456, 847, 279, 281, 2755, 277, 280, 1592, + /* 1580 */ 122, 2718, 849, 2720, 2721, 844, 1843, 866, 858, 72, + /* 1590 */ 860, 106, 71, 820, 2809, 862, 2396, 834, 432, 2805, + /* 1600 */ 2717, 1917, 2456, 1893, 495, 903, 174, 173, 900, 899, + /* 1610 */ 898, 171, 181, 846, 2101, 370, 699, 283, 700, 2717, + /* 1620 */ 282, 92, 1593, 2455, 285, 2401, 2266, 284, 2264, 192, + /* 1630 */ 164, 318, 846, 2182, 2183, 482, 481, 1918, 14, 13, + /* 1640 */ 1590, 2735, 1588, 349, 348, 776, 766, 310, 712, 2717, + /* 1650 */ 714, 864, 863, 2008, 2010, 2011, 2012, 2013, 1935, 2682, + /* 1660 */ 2735, 845, 846, 711, 710, 709, 1934, 172, 806, 49, + /* 1670 */ 701, 154, 705, 64, 1985, 2255, 704, 2253, 2682, 152, + /* 1680 */ 845, 703, 708, 450, 449, 351, 350, 702, 2717, 2736, + /* 1690 */ 2735, 448, 698, 697, 696, 274, 49, 716, 201, 719, + /* 1700 */ 2321, 846, 2320, 1570, 2703, 2236, 2716, 801, 2682, 2755, + /* 1710 */ 845, 1851, 193, 186, 2718, 849, 2720, 2721, 844, 75, + /* 1720 */ 866, 684, 680, 676, 672, 2716, 273, 2125, 2755, 2735, + /* 1730 */ 329, 2860, 189, 2718, 849, 2720, 2721, 844, 49, 866, + /* 1740 */ 78, 49, 78, 169, 150, 172, 1571, 2682, 810, 845, + /* 1750 */ 2135, 353, 352, 773, 2051, 2716, 355, 354, 2755, 874, + /* 1760 */ 760, 2867, 122, 2718, 849, 2720, 2721, 844, 2705, 866, + /* 1770 */ 1926, 2717, 102, 2035, 170, 271, 2809, 2134, 172, 308, + /* 1780 */ 462, 2806, 357, 356, 846, 1924, 2717, 780, 359, 358, + /* 1790 */ 151, 795, 2928, 169, 2716, 361, 360, 2755, 1543, 846, + /* 1800 */ 384, 186, 2718, 849, 2720, 2721, 844, 2717, 866, 363, + /* 1810 */ 362, 333, 2735, 913, 365, 364, 367, 366, 914, 1796, + /* 1820 */ 843, 817, 1998, 1786, 345, 859, 1642, 2735, 1932, 458, + /* 1830 */ 2682, 814, 845, 369, 368, 503, 1938, 1562, 521, 2528, + /* 1840 */ 1673, 1544, 1560, 259, 1937, 2682, 2242, 845, 2735, 2868, + /* 1850 */ 2444, 752, 270, 2861, 461, 1681, 261, 268, 966, 1688, + /* 1860 */ 2871, 788, 266, 658, 789, 320, 2682, 2529, 845, 315, + /* 1870 */ 323, 1686, 2355, 5, 175, 511, 506, 2716, 437, 1949, + /* 1880 */ 2755, 258, 520, 1959, 409, 2718, 849, 2720, 2721, 844, + /* 1890 */ 532, 866, 2716, 226, 227, 2755, 2717, 531, 534, 189, + /* 1900 */ 2718, 849, 2720, 2721, 844, 229, 866, 1820, 377, 846, + /* 1910 */ 548, 1950, 555, 2716, 240, 557, 2755, 561, 563, 605, + /* 1920 */ 408, 2718, 849, 2720, 2721, 844, 568, 866, 581, 2775, + /* 1930 */ 592, 2521, 2717, 594, 601, 617, 604, 2735, 618, 606, + /* 1940 */ 615, 246, 245, 620, 622, 846, 623, 249, 625, 627, + /* 1950 */ 642, 1957, 4, 643, 650, 2682, 651, 845, 1952, 2929, + /* 1960 */ 257, 1927, 2717, 1925, 653, 1958, 655, 97, 656, 260, + /* 1970 */ 1960, 263, 657, 2735, 659, 846, 265, 1961, 2544, 472, + /* 1980 */ 98, 2717, 1962, 2538, 99, 100, 668, 272, 689, 2612, + /* 1990 */ 735, 2682, 691, 845, 846, 413, 722, 1930, 1931, 2384, + /* 2000 */ 723, 2609, 2716, 2735, 1953, 2755, 276, 126, 737, 409, + /* 2010 */ 2718, 849, 2720, 2721, 844, 474, 866, 103, 2380, 278, + /* 2020 */ 177, 2682, 2735, 845, 165, 380, 123, 2382, 2377, 178, + /* 2030 */ 179, 2608, 747, 295, 2590, 748, 746, 300, 2716, 754, + /* 2040 */ 2682, 2755, 845, 2717, 777, 409, 2718, 849, 2720, 2721, + /* 2050 */ 844, 8, 866, 815, 298, 751, 846, 753, 763, 305, + /* 2060 */ 2848, 2876, 786, 2875, 761, 191, 309, 764, 734, 311, + /* 2070 */ 2717, 2755, 791, 312, 762, 404, 2718, 849, 2720, 2721, + /* 2080 */ 844, 307, 866, 846, 2735, 313, 790, 2716, 2828, 314, + /* 2090 */ 2755, 463, 2717, 802, 394, 2718, 849, 2720, 2721, 844, + /* 2100 */ 316, 866, 2682, 2906, 845, 846, 799, 156, 1954, 2717, + /* 2110 */ 2825, 2735, 2099, 2097, 204, 2930, 325, 220, 1, 381, + /* 2120 */ 319, 166, 846, 813, 818, 2558, 2557, 2556, 382, 2682, + /* 2130 */ 467, 845, 167, 2735, 819, 826, 823, 61, 338, 2790, + /* 2140 */ 853, 2717, 851, 383, 343, 855, 856, 113, 116, 2716, + /* 2150 */ 2735, 2682, 2755, 845, 846, 2397, 393, 2718, 849, 2720, + /* 2160 */ 2721, 844, 2674, 866, 868, 387, 2673, 2669, 2682, 2668, + /* 2170 */ 845, 2660, 1463, 2659, 960, 176, 2716, 963, 372, 2755, + /* 2180 */ 2651, 2650, 2735, 395, 2718, 849, 2720, 2721, 844, 2666, + /* 2190 */ 866, 2665, 2657, 2656, 965, 2634, 411, 2645, 2716, 399, + /* 2200 */ 2682, 2755, 845, 2644, 2663, 401, 2718, 849, 2720, 2721, + /* 2210 */ 844, 2662, 866, 2654, 389, 2716, 2653, 2642, 2755, 2641, + /* 2220 */ 2639, 421, 405, 2718, 849, 2720, 2721, 844, 2717, 866, + /* 2230 */ 429, 2638, 2448, 410, 424, 2633, 52, 391, 2632, 400, + /* 2240 */ 2627, 846, 86, 430, 508, 509, 1877, 2716, 1878, 224, + /* 2250 */ 2755, 2625, 513, 739, 396, 2718, 849, 2720, 2721, 844, + /* 2260 */ 2717, 866, 515, 516, 1876, 517, 2624, 2623, 438, 2735, + /* 2270 */ 2621, 523, 2620, 846, 525, 2619, 527, 2618, 529, 2717, + /* 2280 */ 1864, 2594, 228, 2593, 230, 1823, 87, 2682, 1822, 845, + /* 2290 */ 2571, 2570, 846, 541, 542, 2568, 2567, 2511, 546, 1759, + /* 2300 */ 2508, 2735, 2569, 2507, 2501, 549, 552, 553, 2498, 2717, + /* 2310 */ 233, 2497, 2496, 2495, 2500, 2499, 90, 2494, 2493, 2682, + /* 2320 */ 2735, 845, 846, 235, 2491, 2490, 2489, 237, 2488, 569, + /* 2330 */ 571, 2486, 2485, 2484, 2716, 239, 2468, 2755, 2682, 2483, + /* 2340 */ 845, 406, 2718, 849, 2720, 2721, 844, 2482, 866, 2506, + /* 2350 */ 2735, 2481, 2480, 2479, 2504, 2487, 2478, 2477, 2476, 2474, + /* 2360 */ 2473, 2472, 2471, 2470, 2469, 2467, 2716, 96, 2682, 2755, + /* 2370 */ 845, 2717, 2466, 397, 2718, 849, 2720, 2721, 844, 2465, + /* 2380 */ 866, 2464, 2536, 2505, 846, 2716, 2503, 2463, 2755, 2462, + /* 2390 */ 2717, 1765, 407, 2718, 849, 2720, 2721, 844, 2461, 866, + /* 2400 */ 244, 2460, 2459, 846, 2458, 608, 2457, 1610, 610, 2286, + /* 2410 */ 1614, 247, 2735, 2285, 248, 2716, 426, 427, 2755, 2284, + /* 2420 */ 2717, 1606, 398, 2718, 849, 2720, 2721, 844, 2283, 866, + /* 2430 */ 2682, 2735, 845, 846, 250, 2281, 251, 2278, 630, 2277, + /* 2440 */ 628, 634, 629, 633, 632, 2270, 637, 636, 2257, 2682, + /* 2450 */ 638, 845, 640, 2231, 199, 1487, 2717, 253, 82, 2230, + /* 2460 */ 2702, 2735, 83, 210, 2592, 255, 648, 2588, 2578, 846, + /* 2470 */ 2566, 262, 2565, 267, 2542, 269, 2535, 2716, 2372, 2682, + /* 2480 */ 2755, 845, 2717, 264, 414, 2718, 849, 2720, 2721, 844, + /* 2490 */ 2280, 866, 1536, 2276, 669, 846, 2716, 2735, 670, 2755, + /* 2500 */ 671, 2274, 673, 415, 2718, 849, 2720, 2721, 844, 2272, + /* 2510 */ 866, 675, 674, 678, 677, 2682, 2269, 845, 681, 2252, + /* 2520 */ 2250, 679, 683, 2735, 2251, 682, 2716, 2249, 2227, 2755, + /* 2530 */ 2374, 1693, 1692, 2729, 2718, 849, 2720, 2721, 844, 2373, + /* 2540 */ 866, 2682, 1595, 845, 74, 1596, 275, 1578, 2717, 1594, + /* 2550 */ 1591, 1589, 1587, 2267, 1586, 1585, 2265, 451, 1584, 1583, + /* 2560 */ 2256, 846, 2716, 1580, 2717, 2755, 930, 932, 1579, 2728, + /* 2570 */ 2718, 849, 2720, 2721, 844, 1577, 866, 846, 2254, 452, + /* 2580 */ 2717, 453, 720, 717, 454, 2226, 2225, 2224, 2716, 2735, + /* 2590 */ 2223, 2755, 724, 846, 2222, 2727, 2718, 849, 2720, 2721, + /* 2600 */ 844, 726, 866, 728, 128, 2735, 1858, 2682, 1860, 845, + /* 2610 */ 1857, 1862, 28, 2591, 297, 56, 67, 1833, 1848, 2587, + /* 2620 */ 738, 2735, 57, 2682, 1831, 845, 1829, 2577, 749, 301, + /* 2630 */ 750, 2564, 2563, 1808, 755, 17, 757, 1807, 2912, 2682, + /* 2640 */ 20, 845, 765, 6, 21, 30, 180, 459, 7, 22, + /* 2650 */ 2152, 2126, 769, 304, 2716, 767, 771, 2755, 306, 203, + /* 2660 */ 2133, 434, 2718, 849, 2720, 2721, 844, 190, 866, 215, + /* 2670 */ 2716, 202, 2717, 2755, 31, 32, 84, 435, 2718, 849, + /* 2680 */ 2720, 2721, 844, 2703, 866, 846, 2716, 216, 2120, 2755, + /* 2690 */ 2090, 2172, 2092, 431, 2718, 849, 2720, 2721, 844, 2717, + /* 2700 */ 866, 23, 2094, 65, 217, 24, 2173, 2167, 2166, 2074, + /* 2710 */ 464, 2171, 846, 2735, 2717, 2170, 465, 2073, 321, 59, + /* 2720 */ 2562, 2541, 107, 58, 195, 108, 2540, 846, 328, 2128, + /* 2730 */ 205, 2682, 18, 845, 334, 69, 816, 109, 2534, 822, + /* 2740 */ 2735, 337, 824, 110, 339, 336, 25, 2026, 2025, 13, + /* 2750 */ 1942, 2036, 2001, 2000, 11, 2735, 881, 884, 2682, 887, + /* 2760 */ 845, 890, 38, 196, 1999, 16, 26, 206, 1977, 1969, + /* 2770 */ 27, 70, 2533, 2682, 852, 845, 341, 111, 2716, 112, + /* 2780 */ 1637, 2755, 347, 117, 2188, 436, 2718, 849, 2720, 2721, + /* 2790 */ 844, 2003, 866, 854, 80, 2760, 2187, 2759, 865, 867, + /* 2800 */ 68, 2186, 848, 1674, 873, 847, 2185, 491, 2755, 875, + /* 2810 */ 877, 1671, 404, 2718, 849, 2720, 2721, 844, 878, 866, + /* 2820 */ 2716, 1670, 880, 2755, 1667, 883, 1661, 403, 2718, 849, + /* 2830 */ 2720, 2721, 844, 886, 866, 889, 1659, 1665, 1664, 371, + /* 2840 */ 1663, 1687, 1662, 118, 119, 81, 1683, 1574, 1573, 1534, + /* 2850 */ 904, 1572, 1569, 1566, 1565, 1564, 1563, 1561, 1559, 1558, + /* 2860 */ 1557, 1604, 918, 1603, 920, 222, 1555, 1554, 1553, 1552, + /* 2870 */ 1551, 1550, 1549, 1600, 1598, 1546, 1545, 1542, 1541, 1540, + /* 2880 */ 1539, 2275, 940, 2273, 942, 944, 2271, 948, 941, 2268, + /* 2890 */ 952, 946, 2248, 950, 2246, 956, 945, 954, 949, 958, + /* 2900 */ 1476, 2221, 1464, 962, 953, 2191, 375, 1928, 964, 2191, + /* 2910 */ 388, 967, 2191, 968, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 506, 507, 438, 379, 386, 391, 421, 389, 390, 519, - /* 10 */ 408, 521, 12, 13, 14, 490, 392, 453, 12, 13, - /* 20 */ 20, 0, 22, 459, 460, 8, 9, 379, 4, 12, - /* 30 */ 13, 14, 15, 16, 20, 35, 20, 37, 436, 0, - /* 40 */ 392, 516, 21, 37, 420, 24, 25, 26, 27, 28, - /* 50 */ 29, 30, 31, 32, 440, 441, 421, 443, 20, 34, - /* 60 */ 436, 447, 438, 421, 422, 2, 66, 432, 420, 391, - /* 70 */ 392, 8, 9, 73, 66, 12, 13, 14, 15, 16, - /* 80 */ 80, 0, 391, 392, 436, 419, 438, 21, 21, 487, - /* 90 */ 488, 24, 25, 26, 27, 28, 29, 30, 31, 32, - /* 100 */ 498, 435, 36, 387, 38, 39, 40, 391, 484, 393, - /* 110 */ 110, 487, 490, 113, 20, 491, 492, 493, 494, 495, - /* 120 */ 496, 386, 498, 115, 389, 390, 420, 503, 20, 505, - /* 130 */ 14, 114, 484, 509, 510, 487, 20, 113, 516, 491, - /* 140 */ 492, 493, 494, 495, 496, 497, 498, 499, 500, 149, - /* 150 */ 150, 113, 446, 529, 448, 50, 75, 76, 77, 78, - /* 160 */ 79, 537, 81, 82, 83, 84, 85, 86, 87, 88, + /* 0 */ 386, 421, 379, 389, 390, 440, 386, 423, 491, 389, + /* 10 */ 390, 427, 12, 13, 14, 392, 391, 392, 440, 454, + /* 20 */ 20, 0, 22, 8, 9, 460, 461, 12, 13, 14, + /* 30 */ 15, 16, 454, 518, 517, 35, 411, 37, 460, 461, + /* 40 */ 400, 526, 21, 420, 420, 24, 25, 26, 27, 28, + /* 50 */ 29, 30, 31, 32, 13, 431, 432, 417, 20, 544, + /* 60 */ 545, 438, 20, 440, 549, 550, 66, 391, 392, 429, + /* 70 */ 8, 9, 488, 73, 12, 13, 14, 15, 16, 0, + /* 80 */ 80, 0, 20, 499, 72, 21, 421, 379, 24, 25, + /* 90 */ 26, 27, 28, 29, 30, 31, 32, 8, 9, 434, + /* 100 */ 392, 12, 13, 14, 15, 16, 482, 483, 485, 72, + /* 110 */ 110, 488, 0, 113, 420, 492, 493, 494, 495, 496, + /* 120 */ 497, 80, 499, 20, 430, 391, 392, 504, 420, 506, + /* 130 */ 39, 40, 53, 510, 511, 441, 24, 25, 26, 27, + /* 140 */ 28, 29, 30, 31, 32, 411, 438, 376, 440, 149, + /* 150 */ 150, 113, 418, 530, 421, 113, 75, 76, 77, 78, + /* 160 */ 79, 538, 81, 82, 83, 84, 85, 86, 87, 88, /* 170 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, /* 180 */ 99, 100, 101, 102, 103, 104, 105, 106, 188, 189, - /* 190 */ 512, 513, 514, 515, 20, 517, 518, 143, 198, 199, - /* 200 */ 391, 392, 188, 189, 513, 514, 515, 168, 517, 518, - /* 210 */ 517, 423, 173, 213, 426, 215, 525, 42, 525, 14, - /* 220 */ 181, 215, 8, 9, 20, 20, 12, 13, 14, 15, - /* 230 */ 16, 0, 379, 379, 543, 544, 543, 544, 420, 548, - /* 240 */ 549, 548, 549, 149, 150, 392, 421, 429, 430, 249, - /* 250 */ 250, 251, 392, 253, 254, 255, 256, 257, 258, 259, + /* 190 */ 514, 515, 516, 485, 518, 519, 488, 113, 198, 199, + /* 200 */ 492, 493, 494, 495, 496, 497, 122, 499, 117, 118, + /* 210 */ 14, 120, 504, 213, 506, 215, 20, 484, 510, 511, + /* 220 */ 205, 398, 8, 9, 420, 20, 12, 13, 14, 15, + /* 230 */ 16, 391, 392, 142, 430, 464, 42, 146, 415, 436, + /* 240 */ 469, 379, 439, 440, 225, 441, 538, 424, 425, 249, + /* 250 */ 250, 251, 190, 253, 254, 255, 256, 257, 258, 259, /* 260 */ 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, - /* 270 */ 270, 12, 13, 420, 407, 487, 18, 410, 20, 20, - /* 280 */ 420, 22, 228, 229, 517, 27, 498, 73, 30, 436, - /* 290 */ 436, 438, 525, 35, 35, 190, 37, 8, 9, 481, - /* 300 */ 482, 12, 13, 14, 15, 16, 201, 14, 483, 20, - /* 310 */ 52, 544, 54, 20, 420, 548, 549, 59, 60, 20, - /* 320 */ 296, 22, 513, 514, 515, 66, 517, 518, 420, 71, - /* 330 */ 391, 392, 73, 72, 296, 121, 37, 484, 430, 80, - /* 340 */ 487, 166, 448, 193, 491, 492, 493, 494, 495, 496, - /* 350 */ 411, 498, 4, 493, 501, 56, 503, 504, 505, 0, - /* 360 */ 8, 9, 509, 510, 12, 13, 14, 15, 16, 110, - /* 370 */ 112, 23, 113, 142, 143, 144, 145, 146, 147, 148, - /* 380 */ 20, 123, 20, 24, 25, 26, 27, 28, 29, 30, - /* 390 */ 31, 32, 20, 188, 46, 47, 48, 463, 113, 8, - /* 400 */ 9, 187, 468, 12, 13, 14, 15, 16, 149, 150, - /* 410 */ 391, 153, 154, 20, 156, 157, 158, 159, 160, 161, - /* 420 */ 162, 163, 164, 165, 33, 251, 166, 169, 170, 171, - /* 430 */ 172, 173, 174, 175, 176, 387, 178, 179, 180, 391, - /* 440 */ 20, 393, 184, 185, 186, 143, 144, 188, 189, 191, - /* 450 */ 148, 517, 302, 303, 304, 305, 251, 198, 199, 525, - /* 460 */ 285, 286, 287, 288, 289, 290, 291, 292, 293, 450, - /* 470 */ 423, 452, 213, 71, 215, 113, 72, 543, 544, 190, - /* 480 */ 391, 188, 548, 549, 391, 392, 391, 392, 274, 275, - /* 490 */ 276, 277, 278, 279, 280, 281, 282, 283, 284, 289, - /* 500 */ 290, 291, 292, 293, 411, 114, 411, 420, 249, 250, - /* 510 */ 251, 418, 253, 254, 255, 256, 257, 258, 259, 260, + /* 270 */ 270, 12, 13, 20, 89, 22, 18, 20, 20, 20, + /* 280 */ 0, 22, 379, 507, 508, 27, 446, 73, 30, 518, + /* 290 */ 37, 188, 189, 35, 35, 392, 37, 526, 8, 9, + /* 300 */ 438, 4, 12, 13, 14, 15, 16, 42, 4, 56, + /* 310 */ 52, 20, 54, 251, 0, 544, 545, 59, 60, 166, + /* 320 */ 549, 550, 518, 420, 52, 66, 520, 23, 522, 71, + /* 330 */ 526, 66, 73, 61, 296, 121, 64, 65, 323, 80, + /* 340 */ 155, 438, 420, 440, 421, 422, 379, 33, 544, 545, + /* 350 */ 46, 47, 48, 549, 550, 75, 76, 77, 20, 392, + /* 360 */ 166, 394, 82, 83, 84, 462, 181, 182, 88, 110, + /* 370 */ 112, 449, 113, 93, 94, 95, 96, 391, 392, 99, + /* 380 */ 195, 123, 412, 103, 104, 105, 106, 420, 485, 423, + /* 390 */ 420, 488, 373, 374, 375, 492, 493, 494, 495, 496, + /* 400 */ 497, 187, 499, 433, 114, 438, 20, 440, 149, 150, + /* 410 */ 113, 153, 154, 122, 156, 157, 158, 159, 160, 161, + /* 420 */ 162, 163, 164, 165, 193, 20, 166, 169, 170, 171, + /* 430 */ 172, 173, 174, 175, 176, 419, 178, 179, 180, 286, + /* 440 */ 287, 288, 184, 185, 186, 391, 392, 188, 189, 191, + /* 450 */ 491, 113, 485, 437, 488, 488, 251, 198, 199, 492, + /* 460 */ 493, 494, 495, 496, 497, 499, 499, 20, 20, 22, + /* 470 */ 20, 504, 213, 506, 215, 20, 517, 510, 511, 285, + /* 480 */ 286, 287, 288, 289, 290, 291, 292, 293, 274, 275, + /* 490 */ 276, 277, 278, 279, 280, 281, 282, 283, 284, 513, + /* 500 */ 514, 515, 516, 56, 518, 519, 143, 144, 249, 250, + /* 510 */ 251, 148, 253, 254, 255, 256, 257, 258, 259, 260, /* 520 */ 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, - /* 530 */ 271, 12, 13, 113, 487, 37, 379, 438, 18, 20, - /* 540 */ 251, 22, 113, 23, 251, 498, 286, 287, 288, 392, - /* 550 */ 190, 122, 453, 89, 35, 37, 37, 205, 459, 460, - /* 560 */ 40, 41, 473, 474, 44, 379, 8, 9, 481, 482, - /* 570 */ 12, 13, 14, 15, 16, 55, 123, 420, 392, 166, - /* 580 */ 394, 296, 20, 80, 408, 66, 517, 67, 68, 69, - /* 590 */ 70, 71, 73, 436, 525, 438, 8, 9, 80, 80, - /* 600 */ 12, 13, 14, 15, 16, 0, 420, 75, 76, 77, - /* 610 */ 208, 251, 436, 544, 82, 83, 84, 548, 549, 155, - /* 620 */ 88, 438, 436, 391, 438, 93, 94, 95, 96, 110, - /* 630 */ 13, 99, 113, 113, 400, 103, 104, 105, 106, 237, - /* 640 */ 238, 484, 459, 460, 487, 181, 182, 42, 491, 492, - /* 650 */ 493, 494, 495, 496, 33, 498, 391, 392, 296, 195, - /* 660 */ 503, 427, 505, 487, 488, 489, 509, 510, 149, 150, - /* 670 */ 484, 151, 114, 487, 498, 323, 411, 491, 492, 493, - /* 680 */ 494, 495, 496, 418, 498, 271, 249, 455, 456, 503, - /* 690 */ 378, 505, 380, 113, 537, 509, 510, 80, 285, 286, - /* 700 */ 287, 288, 289, 290, 291, 292, 293, 188, 189, 2, - /* 710 */ 20, 149, 150, 215, 376, 8, 9, 198, 199, 12, - /* 720 */ 13, 14, 15, 16, 0, 205, 206, 207, 437, 438, - /* 730 */ 210, 4, 213, 420, 215, 12, 13, 14, 15, 16, - /* 740 */ 400, 428, 463, 223, 224, 308, 309, 310, 311, 312, - /* 750 */ 313, 314, 439, 271, 144, 273, 236, 417, 148, 239, - /* 760 */ 198, 199, 242, 243, 244, 245, 246, 427, 249, 250, - /* 770 */ 251, 37, 253, 254, 255, 256, 257, 258, 259, 260, + /* 530 */ 271, 12, 13, 302, 303, 304, 305, 113, 18, 20, + /* 540 */ 391, 22, 379, 23, 187, 285, 286, 287, 288, 289, + /* 550 */ 290, 291, 292, 293, 35, 392, 37, 391, 392, 464, + /* 560 */ 40, 41, 71, 21, 44, 14, 379, 0, 514, 515, + /* 570 */ 516, 20, 518, 519, 440, 55, 190, 411, 36, 392, + /* 580 */ 38, 39, 40, 420, 418, 66, 33, 67, 68, 69, + /* 590 */ 70, 71, 73, 296, 460, 461, 408, 149, 150, 80, + /* 600 */ 20, 438, 387, 440, 149, 150, 391, 420, 393, 407, + /* 610 */ 8, 9, 410, 518, 12, 13, 14, 15, 16, 52, + /* 620 */ 408, 526, 518, 474, 475, 438, 438, 440, 391, 110, + /* 630 */ 526, 274, 113, 113, 296, 33, 212, 251, 214, 544, + /* 640 */ 545, 284, 12, 13, 549, 550, 198, 199, 485, 545, + /* 650 */ 438, 488, 22, 549, 550, 492, 493, 494, 495, 496, + /* 660 */ 497, 498, 499, 500, 501, 35, 420, 37, 149, 150, + /* 670 */ 246, 151, 485, 0, 428, 488, 488, 489, 490, 492, + /* 680 */ 493, 494, 495, 496, 497, 1, 499, 499, 451, 502, + /* 690 */ 453, 504, 505, 506, 420, 449, 66, 510, 511, 208, + /* 700 */ 488, 489, 428, 19, 401, 37, 20, 188, 189, 113, + /* 710 */ 80, 499, 409, 391, 392, 14, 114, 198, 199, 35, + /* 720 */ 296, 20, 123, 449, 37, 205, 206, 207, 237, 238, + /* 730 */ 210, 271, 213, 411, 215, 51, 52, 113, 80, 188, + /* 740 */ 110, 464, 22, 223, 224, 61, 62, 63, 64, 379, + /* 750 */ 66, 289, 290, 291, 292, 293, 236, 37, 502, 239, + /* 760 */ 391, 505, 242, 243, 244, 245, 246, 123, 249, 250, + /* 770 */ 251, 464, 253, 254, 255, 256, 257, 258, 259, 260, /* 780 */ 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, - /* 790 */ 12, 13, 14, 20, 379, 22, 517, 37, 20, 66, - /* 800 */ 22, 463, 420, 225, 525, 123, 468, 392, 3, 394, - /* 810 */ 423, 429, 430, 35, 80, 37, 296, 434, 379, 123, - /* 820 */ 437, 438, 543, 544, 22, 20, 490, 548, 549, 56, - /* 830 */ 517, 392, 222, 394, 52, 420, 20, 227, 525, 37, - /* 840 */ 230, 420, 232, 61, 66, 112, 64, 65, 115, 428, - /* 850 */ 469, 436, 516, 438, 73, 517, 543, 544, 80, 420, - /* 860 */ 439, 548, 549, 525, 391, 392, 142, 143, 144, 145, - /* 870 */ 146, 147, 148, 177, 487, 436, 296, 438, 39, 40, - /* 880 */ 190, 543, 544, 37, 411, 498, 548, 549, 110, 0, - /* 890 */ 421, 113, 142, 143, 144, 145, 146, 147, 148, 484, - /* 900 */ 57, 58, 487, 33, 379, 391, 491, 492, 493, 494, - /* 910 */ 495, 496, 110, 498, 22, 45, 183, 392, 503, 114, - /* 920 */ 505, 391, 392, 484, 509, 510, 487, 149, 150, 37, - /* 930 */ 491, 492, 493, 494, 495, 496, 502, 498, 504, 391, - /* 940 */ 392, 411, 503, 322, 505, 420, 391, 392, 509, 510, - /* 950 */ 412, 373, 374, 375, 391, 392, 117, 118, 420, 120, - /* 960 */ 420, 436, 502, 438, 504, 379, 188, 189, 428, 431, - /* 970 */ 391, 392, 80, 23, 411, 215, 198, 199, 392, 439, - /* 980 */ 394, 142, 421, 391, 392, 146, 420, 473, 474, 421, - /* 990 */ 411, 213, 444, 215, 428, 190, 22, 47, 48, 444, - /* 1000 */ 391, 392, 110, 411, 188, 439, 420, 247, 248, 484, - /* 1010 */ 113, 37, 487, 20, 396, 397, 491, 492, 493, 494, - /* 1020 */ 495, 496, 436, 498, 438, 298, 379, 249, 250, 251, - /* 1030 */ 249, 253, 254, 255, 256, 257, 258, 259, 260, 261, + /* 790 */ 12, 13, 14, 3, 379, 518, 112, 518, 20, 115, + /* 800 */ 22, 379, 251, 526, 392, 526, 249, 392, 438, 394, + /* 810 */ 20, 442, 443, 35, 445, 37, 296, 448, 0, 391, + /* 820 */ 392, 544, 545, 379, 545, 518, 549, 550, 549, 550, + /* 830 */ 110, 147, 420, 526, 421, 420, 392, 23, 394, 411, + /* 840 */ 271, 168, 273, 213, 66, 215, 173, 391, 392, 12, + /* 850 */ 13, 544, 545, 438, 181, 440, 549, 550, 80, 34, + /* 860 */ 438, 47, 48, 391, 420, 308, 309, 310, 311, 312, + /* 870 */ 313, 314, 379, 320, 37, 378, 192, 380, 194, 249, + /* 880 */ 250, 197, 438, 215, 440, 392, 202, 394, 110, 188, + /* 890 */ 72, 113, 296, 263, 264, 265, 266, 267, 268, 269, + /* 900 */ 485, 20, 215, 488, 114, 221, 494, 492, 493, 494, + /* 910 */ 495, 496, 497, 420, 499, 247, 248, 37, 423, 504, + /* 920 */ 296, 506, 391, 392, 421, 510, 511, 149, 150, 485, + /* 930 */ 491, 438, 488, 440, 247, 248, 492, 493, 494, 495, + /* 940 */ 496, 497, 411, 499, 22, 387, 474, 475, 504, 391, + /* 950 */ 506, 393, 251, 50, 510, 511, 517, 8, 9, 37, + /* 960 */ 80, 12, 13, 14, 15, 16, 188, 189, 439, 440, + /* 970 */ 514, 515, 516, 14, 518, 519, 198, 199, 485, 20, + /* 980 */ 190, 488, 526, 488, 420, 492, 493, 494, 495, 496, + /* 990 */ 497, 213, 499, 215, 499, 110, 432, 504, 420, 506, + /* 1000 */ 544, 545, 80, 510, 511, 549, 550, 391, 392, 124, + /* 1010 */ 125, 126, 127, 128, 129, 130, 131, 132, 133, 66, + /* 1020 */ 135, 136, 137, 138, 139, 140, 141, 249, 250, 251, + /* 1030 */ 20, 253, 254, 255, 256, 257, 258, 259, 260, 261, /* 1040 */ 262, 263, 264, 265, 266, 267, 268, 269, 270, 12, - /* 1050 */ 13, 379, 412, 444, 80, 166, 167, 20, 421, 22, - /* 1060 */ 420, 215, 396, 397, 392, 183, 394, 251, 391, 392, - /* 1070 */ 484, 431, 35, 487, 37, 550, 551, 491, 492, 493, - /* 1080 */ 494, 495, 496, 436, 498, 405, 406, 379, 411, 503, - /* 1090 */ 401, 505, 420, 247, 248, 509, 510, 22, 409, 217, - /* 1100 */ 392, 379, 394, 66, 110, 213, 421, 215, 436, 212, - /* 1110 */ 438, 214, 37, 398, 1, 2, 379, 80, 124, 125, - /* 1120 */ 126, 127, 128, 129, 130, 131, 132, 133, 420, 135, - /* 1130 */ 136, 137, 138, 139, 140, 141, 380, 391, 392, 424, - /* 1140 */ 409, 249, 250, 246, 436, 398, 438, 110, 379, 3, - /* 1150 */ 113, 187, 391, 392, 391, 392, 484, 411, 436, 487, - /* 1160 */ 0, 392, 415, 491, 492, 493, 494, 495, 496, 420, - /* 1170 */ 498, 424, 411, 436, 411, 503, 379, 505, 391, 392, - /* 1180 */ 519, 509, 510, 190, 33, 110, 149, 150, 14, 420, - /* 1190 */ 391, 392, 484, 296, 20, 487, 45, 379, 411, 491, - /* 1200 */ 492, 493, 494, 495, 496, 436, 498, 438, 391, 392, - /* 1210 */ 411, 503, 379, 505, 12, 13, 379, 509, 510, 379, - /* 1220 */ 391, 392, 391, 392, 22, 188, 189, 114, 411, 391, - /* 1230 */ 392, 482, 72, 436, 449, 198, 199, 35, 274, 37, - /* 1240 */ 411, 20, 411, 20, 251, 14, 15, 16, 284, 411, - /* 1250 */ 213, 416, 215, 484, 436, 0, 487, 391, 392, 541, - /* 1260 */ 491, 492, 493, 494, 495, 496, 379, 498, 66, 436, - /* 1270 */ 405, 406, 503, 436, 505, 379, 436, 411, 509, 510, - /* 1280 */ 501, 142, 80, 504, 379, 146, 249, 250, 251, 0, + /* 1050 */ 13, 379, 215, 464, 391, 392, 3, 20, 469, 22, + /* 1060 */ 482, 483, 446, 114, 392, 112, 394, 183, 115, 2, + /* 1070 */ 379, 190, 35, 144, 37, 8, 9, 148, 379, 12, + /* 1080 */ 13, 14, 15, 16, 2, 391, 392, 379, 391, 392, + /* 1090 */ 8, 9, 420, 190, 12, 13, 14, 15, 16, 421, + /* 1100 */ 392, 217, 394, 66, 201, 411, 0, 518, 411, 446, + /* 1110 */ 438, 503, 440, 505, 379, 526, 421, 80, 142, 143, + /* 1120 */ 144, 145, 146, 147, 148, 391, 392, 392, 420, 438, + /* 1130 */ 143, 421, 251, 544, 545, 379, 183, 438, 549, 550, + /* 1140 */ 12, 13, 14, 15, 16, 411, 438, 110, 440, 379, + /* 1150 */ 113, 222, 391, 392, 379, 420, 227, 485, 379, 230, + /* 1160 */ 488, 232, 392, 379, 492, 493, 494, 495, 496, 497, + /* 1170 */ 420, 499, 411, 438, 420, 440, 504, 391, 506, 391, + /* 1180 */ 392, 379, 510, 511, 430, 379, 149, 150, 379, 33, + /* 1190 */ 420, 391, 392, 485, 438, 441, 488, 464, 188, 411, + /* 1200 */ 492, 493, 494, 495, 496, 497, 435, 499, 438, 438, + /* 1210 */ 440, 411, 504, 438, 506, 228, 229, 438, 510, 511, + /* 1220 */ 485, 413, 438, 488, 416, 188, 189, 492, 493, 494, + /* 1230 */ 495, 496, 497, 483, 499, 198, 199, 391, 392, 504, + /* 1240 */ 438, 506, 456, 457, 438, 510, 511, 438, 391, 392, + /* 1250 */ 213, 518, 215, 57, 58, 485, 400, 411, 488, 526, + /* 1260 */ 409, 251, 492, 493, 494, 495, 496, 497, 411, 499, + /* 1270 */ 114, 379, 166, 167, 504, 20, 506, 544, 545, 20, + /* 1280 */ 510, 511, 549, 550, 392, 429, 249, 250, 251, 0, /* 1290 */ 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, /* 1300 */ 263, 264, 265, 266, 267, 268, 269, 270, 12, 13, - /* 1310 */ 379, 379, 110, 478, 391, 392, 20, 379, 22, 391, - /* 1320 */ 392, 379, 379, 436, 392, 534, 420, 463, 110, 13, - /* 1330 */ 379, 35, 436, 37, 411, 433, 33, 431, 436, 411, - /* 1340 */ 379, 436, 124, 125, 126, 127, 128, 129, 130, 131, - /* 1350 */ 132, 133, 420, 135, 136, 137, 138, 139, 140, 141, - /* 1360 */ 433, 379, 66, 436, 75, 76, 77, 436, 436, 33, - /* 1370 */ 438, 82, 83, 84, 436, 552, 80, 88, 436, 436, - /* 1380 */ 420, 517, 93, 94, 95, 96, 420, 436, 99, 525, - /* 1390 */ 0, 420, 103, 104, 105, 106, 80, 436, 42, 439, - /* 1400 */ 433, 391, 392, 436, 0, 439, 110, 543, 544, 113, - /* 1410 */ 439, 413, 548, 549, 416, 213, 484, 215, 436, 487, - /* 1420 */ 382, 383, 66, 491, 492, 493, 494, 495, 496, 116, - /* 1430 */ 498, 116, 119, 116, 119, 503, 119, 505, 12, 13, - /* 1440 */ 0, 509, 510, 53, 116, 149, 150, 119, 22, 33, - /* 1450 */ 114, 249, 250, 33, 13, 13, 52, 231, 49, 233, - /* 1460 */ 35, 35, 379, 37, 318, 263, 264, 265, 266, 267, - /* 1470 */ 268, 269, 251, 33, 251, 392, 0, 52, 37, 37, - /* 1480 */ 0, 149, 150, 37, 188, 189, 61, 62, 63, 64, - /* 1490 */ 0, 66, 66, 0, 198, 199, 241, 520, 22, 395, - /* 1500 */ 8, 9, 22, 420, 12, 13, 14, 15, 16, 213, - /* 1510 */ 33, 215, 22, 420, 33, 22, 33, 13, 33, 436, - /* 1520 */ 33, 438, 113, 513, 514, 515, 80, 517, 518, 33, - /* 1530 */ 114, 408, 33, 408, 114, 33, 449, 112, 12, 13, - /* 1540 */ 115, 37, 1, 2, 33, 249, 250, 251, 390, 253, + /* 1310 */ 396, 397, 420, 379, 391, 392, 20, 420, 22, 379, + /* 1320 */ 4, 110, 14, 15, 16, 503, 392, 505, 431, 432, + /* 1330 */ 438, 35, 440, 37, 411, 124, 125, 126, 127, 128, + /* 1340 */ 129, 130, 131, 132, 133, 379, 135, 136, 137, 138, + /* 1350 */ 139, 140, 141, 470, 420, 0, 379, 379, 420, 8, + /* 1360 */ 9, 33, 66, 12, 13, 14, 15, 16, 430, 392, + /* 1370 */ 464, 318, 438, 45, 440, 379, 80, 485, 438, 441, + /* 1380 */ 488, 416, 396, 397, 492, 493, 494, 495, 496, 497, + /* 1390 */ 22, 499, 391, 392, 1, 2, 504, 420, 506, 379, + /* 1400 */ 12, 13, 510, 511, 438, 37, 110, 379, 435, 113, + /* 1410 */ 22, 438, 411, 405, 406, 438, 438, 440, 33, 485, + /* 1420 */ 392, 398, 488, 35, 518, 37, 492, 493, 494, 495, + /* 1430 */ 496, 497, 526, 499, 438, 405, 406, 391, 392, 391, + /* 1440 */ 392, 391, 392, 20, 479, 149, 150, 424, 420, 190, + /* 1450 */ 544, 545, 382, 383, 66, 549, 550, 411, 438, 411, + /* 1460 */ 379, 411, 485, 0, 13, 488, 438, 379, 440, 492, + /* 1470 */ 493, 494, 495, 496, 497, 0, 499, 543, 110, 420, + /* 1480 */ 392, 4, 142, 506, 188, 189, 146, 510, 511, 379, + /* 1490 */ 391, 392, 433, 420, 198, 199, 19, 142, 143, 144, + /* 1500 */ 145, 146, 147, 148, 380, 33, 251, 114, 420, 213, + /* 1510 */ 411, 215, 35, 485, 441, 435, 488, 42, 438, 438, + /* 1520 */ 492, 493, 494, 495, 496, 497, 438, 499, 440, 52, + /* 1530 */ 241, 80, 33, 231, 506, 233, 59, 60, 510, 511, + /* 1540 */ 450, 190, 66, 66, 45, 249, 250, 251, 438, 253, /* 1550 */ 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, - /* 1560 */ 264, 265, 266, 267, 268, 269, 270, 484, 33, 1, - /* 1570 */ 487, 33, 12, 13, 491, 492, 493, 494, 495, 496, - /* 1580 */ 33, 498, 463, 33, 12, 13, 503, 19, 505, 12, - /* 1590 */ 13, 114, 509, 510, 379, 114, 33, 114, 33, 114, - /* 1600 */ 33, 114, 449, 35, 12, 13, 33, 392, 183, 540, - /* 1610 */ 114, 540, 540, 114, 12, 13, 114, 192, 462, 51, - /* 1620 */ 52, 196, 197, 320, 33, 114, 37, 202, 203, 61, - /* 1630 */ 62, 63, 64, 33, 66, 420, 517, 540, 395, 213, - /* 1640 */ 485, 215, 12, 13, 525, 13, 221, 12, 13, 114, - /* 1650 */ 449, 436, 114, 438, 12, 13, 12, 13, 37, 12, - /* 1660 */ 13, 114, 543, 544, 114, 392, 470, 548, 549, 37, - /* 1670 */ 435, 379, 524, 247, 248, 249, 449, 114, 449, 114, - /* 1680 */ 112, 114, 190, 115, 392, 524, 545, 114, 4, 263, - /* 1690 */ 264, 265, 266, 267, 268, 269, 511, 527, 410, 484, - /* 1700 */ 299, 80, 487, 19, 379, 114, 491, 492, 493, 494, - /* 1710 */ 495, 496, 420, 498, 114, 147, 464, 392, 52, 35, - /* 1720 */ 505, 20, 486, 20, 509, 510, 391, 230, 436, 475, - /* 1730 */ 438, 480, 475, 400, 379, 211, 52, 400, 466, 391, - /* 1740 */ 20, 392, 45, 59, 60, 420, 445, 392, 187, 392, - /* 1750 */ 66, 379, 445, 442, 392, 391, 391, 445, 404, 111, - /* 1760 */ 192, 436, 194, 438, 392, 197, 442, 109, 442, 442, - /* 1770 */ 202, 403, 391, 391, 391, 420, 484, 108, 402, 487, - /* 1780 */ 391, 384, 391, 491, 492, 493, 494, 495, 496, 221, - /* 1790 */ 498, 436, 420, 438, 20, 50, 112, 505, 388, 115, - /* 1800 */ 388, 509, 510, 384, 215, 475, 400, 400, 436, 484, - /* 1810 */ 438, 20, 487, 438, 400, 20, 491, 492, 493, 494, - /* 1820 */ 495, 496, 393, 498, 20, 465, 463, 400, 379, 463, - /* 1830 */ 505, 393, 400, 20, 509, 510, 456, 400, 20, 484, - /* 1840 */ 384, 392, 487, 450, 400, 379, 491, 492, 493, 494, - /* 1850 */ 495, 496, 400, 498, 391, 400, 484, 384, 392, 487, - /* 1860 */ 382, 382, 391, 491, 492, 493, 494, 495, 496, 420, - /* 1870 */ 498, 420, 436, 420, 420, 436, 113, 505, 420, 420, - /* 1880 */ 517, 420, 510, 517, 420, 436, 420, 438, 525, 420, - /* 1890 */ 420, 525, 420, 538, 539, 420, 436, 234, 475, 477, - /* 1900 */ 479, 398, 436, 20, 438, 474, 543, 544, 219, 543, - /* 1910 */ 544, 548, 549, 218, 548, 549, 398, 472, 471, 391, - /* 1920 */ 438, 464, 436, 307, 306, 379, 315, 461, 533, 533, - /* 1930 */ 536, 457, 204, 484, 535, 533, 487, 317, 392, 316, - /* 1940 */ 491, 492, 493, 494, 495, 496, 457, 498, 530, 532, - /* 1950 */ 484, 300, 464, 487, 379, 531, 295, 491, 492, 493, - /* 1960 */ 494, 495, 496, 324, 498, 294, 420, 392, 553, 319, - /* 1970 */ 321, 523, 522, 392, 20, 547, 546, 123, 297, 393, - /* 1980 */ 398, 490, 436, 398, 438, 436, 457, 436, 539, 436, - /* 1990 */ 528, 526, 436, 457, 436, 420, 196, 454, 436, 398, - /* 2000 */ 113, 398, 450, 508, 196, 436, 451, 461, 398, 450, - /* 2010 */ 416, 436, 398, 438, 392, 379, 436, 113, 22, 436, - /* 2020 */ 436, 38, 425, 436, 436, 391, 436, 381, 392, 436, - /* 2030 */ 484, 436, 436, 487, 436, 436, 398, 491, 492, 493, - /* 2040 */ 494, 495, 496, 436, 498, 436, 467, 385, 436, 436, - /* 2050 */ 422, 379, 384, 436, 483, 436, 420, 414, 399, 484, - /* 2060 */ 436, 436, 487, 436, 392, 436, 491, 492, 493, 494, - /* 2070 */ 495, 496, 436, 498, 438, 422, 436, 436, 414, 414, - /* 2080 */ 476, 377, 0, 0, 458, 0, 45, 0, 37, 458, - /* 2090 */ 240, 37, 420, 37, 37, 240, 0, 37, 37, 240, - /* 2100 */ 37, 0, 0, 240, 0, 37, 0, 37, 436, 0, - /* 2110 */ 438, 22, 0, 37, 235, 0, 221, 542, 0, 221, - /* 2120 */ 484, 222, 215, 487, 213, 0, 0, 491, 492, 493, - /* 2130 */ 494, 495, 496, 0, 498, 209, 208, 0, 0, 154, - /* 2140 */ 379, 49, 49, 0, 37, 0, 0, 37, 0, 52, - /* 2150 */ 0, 0, 49, 392, 49, 0, 484, 0, 45, 487, - /* 2160 */ 0, 0, 0, 491, 492, 493, 494, 495, 496, 379, - /* 2170 */ 498, 0, 500, 0, 0, 173, 37, 0, 173, 0, - /* 2180 */ 0, 420, 392, 0, 0, 0, 0, 551, 0, 0, - /* 2190 */ 379, 49, 0, 0, 45, 0, 0, 436, 0, 438, - /* 2200 */ 0, 0, 0, 392, 0, 0, 0, 0, 0, 0, - /* 2210 */ 420, 0, 0, 0, 0, 0, 0, 0, 0, 379, - /* 2220 */ 0, 22, 461, 154, 0, 153, 436, 0, 438, 152, - /* 2230 */ 0, 420, 392, 0, 0, 66, 0, 50, 66, 0, - /* 2240 */ 50, 22, 66, 22, 0, 484, 0, 436, 487, 438, - /* 2250 */ 0, 461, 491, 492, 493, 494, 495, 496, 0, 498, - /* 2260 */ 420, 0, 37, 66, 42, 37, 37, 0, 42, 37, - /* 2270 */ 0, 14, 0, 42, 484, 52, 436, 487, 438, 37, - /* 2280 */ 42, 491, 492, 493, 494, 495, 496, 52, 498, 52, - /* 2290 */ 45, 42, 33, 0, 0, 484, 49, 49, 487, 43, - /* 2300 */ 49, 0, 491, 492, 493, 494, 495, 496, 0, 498, - /* 2310 */ 42, 0, 204, 379, 49, 0, 0, 0, 49, 0, - /* 2320 */ 0, 37, 42, 52, 484, 0, 392, 487, 74, 37, - /* 2330 */ 379, 491, 492, 493, 494, 495, 496, 52, 498, 42, - /* 2340 */ 0, 37, 52, 392, 42, 0, 37, 379, 52, 42, - /* 2350 */ 0, 0, 0, 0, 420, 0, 0, 22, 37, 0, - /* 2360 */ 392, 121, 119, 22, 37, 37, 37, 37, 37, 37, - /* 2370 */ 436, 420, 438, 0, 37, 37, 37, 33, 0, 33, - /* 2380 */ 37, 0, 22, 0, 37, 37, 22, 436, 420, 438, - /* 2390 */ 22, 22, 22, 0, 37, 0, 54, 0, 0, 37, - /* 2400 */ 37, 0, 22, 37, 436, 20, 438, 0, 37, 37, - /* 2410 */ 379, 0, 114, 113, 49, 0, 113, 0, 484, 37, - /* 2420 */ 226, 487, 22, 392, 22, 491, 492, 493, 494, 495, - /* 2430 */ 496, 190, 498, 0, 3, 484, 33, 301, 487, 113, - /* 2440 */ 50, 37, 491, 492, 493, 494, 495, 496, 114, 498, - /* 2450 */ 190, 420, 484, 37, 190, 487, 190, 33, 196, 491, - /* 2460 */ 492, 493, 494, 495, 496, 111, 498, 436, 190, 438, - /* 2470 */ 50, 113, 33, 200, 200, 220, 49, 33, 225, 216, - /* 2480 */ 33, 114, 301, 49, 109, 80, 33, 113, 37, 113, - /* 2490 */ 379, 114, 3, 114, 33, 37, 37, 113, 49, 113, - /* 2500 */ 37, 114, 113, 392, 301, 114, 114, 379, 114, 113, - /* 2510 */ 37, 37, 37, 114, 33, 484, 49, 0, 487, 0, - /* 2520 */ 392, 113, 491, 492, 493, 494, 495, 496, 114, 498, - /* 2530 */ 42, 420, 114, 379, 0, 114, 113, 42, 113, 113, - /* 2540 */ 0, 113, 193, 114, 42, 33, 392, 436, 420, 438, - /* 2550 */ 2, 111, 111, 272, 22, 249, 114, 49, 49, 114, - /* 2560 */ 114, 285, 114, 113, 436, 113, 438, 113, 113, 113, - /* 2570 */ 379, 22, 0, 113, 420, 113, 252, 113, 113, 42, - /* 2580 */ 114, 113, 113, 392, 49, 197, 114, 37, 22, 113, - /* 2590 */ 436, 113, 438, 122, 114, 484, 113, 113, 487, 193, - /* 2600 */ 123, 192, 491, 492, 493, 494, 495, 496, 22, 498, - /* 2610 */ 37, 420, 484, 22, 113, 487, 37, 114, 113, 491, - /* 2620 */ 492, 493, 494, 495, 496, 193, 498, 436, 114, 438, - /* 2630 */ 37, 379, 114, 37, 114, 37, 226, 114, 484, 37, - /* 2640 */ 134, 487, 113, 33, 392, 491, 492, 493, 494, 495, - /* 2650 */ 496, 113, 498, 37, 379, 134, 134, 113, 134, 22, - /* 2660 */ 22, 74, 73, 37, 37, 37, 37, 392, 37, 37, - /* 2670 */ 37, 37, 420, 37, 80, 484, 37, 37, 487, 80, - /* 2680 */ 33, 107, 491, 492, 493, 494, 495, 496, 436, 498, - /* 2690 */ 438, 37, 107, 37, 37, 420, 22, 37, 37, 37, - /* 2700 */ 80, 37, 37, 37, 37, 37, 22, 37, 0, 37, - /* 2710 */ 52, 436, 0, 438, 37, 379, 0, 42, 42, 37, - /* 2720 */ 42, 52, 0, 52, 37, 52, 0, 42, 392, 37, - /* 2730 */ 0, 22, 37, 0, 33, 22, 484, 22, 21, 487, - /* 2740 */ 379, 22, 22, 491, 492, 493, 494, 495, 496, 21, - /* 2750 */ 498, 20, 554, 392, 554, 554, 420, 554, 554, 484, - /* 2760 */ 554, 554, 487, 554, 554, 554, 491, 492, 493, 494, - /* 2770 */ 495, 496, 436, 498, 438, 554, 554, 554, 554, 554, - /* 2780 */ 554, 420, 554, 554, 554, 554, 554, 554, 554, 554, - /* 2790 */ 554, 554, 554, 554, 554, 554, 554, 436, 554, 438, - /* 2800 */ 554, 379, 554, 554, 554, 554, 554, 554, 554, 554, - /* 2810 */ 554, 554, 554, 554, 392, 554, 554, 554, 554, 554, - /* 2820 */ 484, 554, 379, 487, 554, 554, 554, 491, 492, 493, - /* 2830 */ 494, 495, 496, 554, 498, 392, 554, 554, 554, 554, - /* 2840 */ 554, 554, 420, 554, 554, 484, 554, 554, 487, 554, - /* 2850 */ 554, 554, 491, 492, 493, 494, 495, 496, 436, 498, - /* 2860 */ 438, 554, 554, 420, 554, 554, 554, 554, 554, 554, - /* 2870 */ 554, 554, 554, 554, 554, 554, 554, 554, 554, 436, - /* 2880 */ 554, 438, 554, 379, 554, 554, 554, 554, 554, 554, - /* 2890 */ 554, 554, 554, 554, 554, 554, 392, 554, 554, 554, - /* 2900 */ 554, 554, 554, 554, 554, 554, 484, 554, 554, 487, - /* 2910 */ 554, 554, 554, 491, 492, 493, 494, 495, 496, 554, - /* 2920 */ 498, 554, 554, 554, 420, 554, 554, 484, 554, 554, - /* 2930 */ 487, 554, 554, 554, 491, 492, 493, 494, 495, 496, - /* 2940 */ 436, 498, 438, 554, 379, 554, 554, 554, 554, 554, - /* 2950 */ 554, 554, 554, 554, 554, 554, 554, 392, 554, 554, - /* 2960 */ 554, 554, 554, 379, 554, 554, 554, 554, 554, 554, - /* 2970 */ 554, 554, 554, 554, 554, 554, 392, 554, 554, 554, - /* 2980 */ 554, 554, 554, 554, 554, 420, 554, 554, 484, 554, - /* 2990 */ 554, 487, 554, 554, 554, 491, 492, 493, 494, 495, - /* 3000 */ 496, 436, 498, 438, 420, 554, 554, 554, 554, 554, - /* 3010 */ 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, - /* 3020 */ 436, 554, 438, 554, 379, 554, 554, 554, 554, 554, - /* 3030 */ 554, 554, 554, 554, 554, 554, 554, 392, 554, 554, - /* 3040 */ 554, 554, 554, 554, 554, 554, 554, 554, 554, 484, - /* 3050 */ 554, 554, 487, 554, 554, 554, 491, 492, 493, 494, - /* 3060 */ 495, 496, 554, 498, 554, 420, 554, 554, 484, 554, - /* 3070 */ 554, 487, 554, 554, 554, 491, 492, 493, 494, 495, - /* 3080 */ 496, 436, 498, 438, 554, 554, 554, 554, 554, 554, - /* 3090 */ 554, 554, 554, 379, 554, 554, 554, 554, 554, 554, - /* 3100 */ 554, 554, 554, 554, 554, 554, 392, 554, 379, 554, - /* 3110 */ 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, - /* 3120 */ 554, 392, 554, 554, 554, 554, 554, 554, 554, 484, - /* 3130 */ 554, 554, 487, 554, 420, 554, 491, 492, 493, 494, - /* 3140 */ 495, 496, 554, 498, 554, 554, 554, 554, 554, 420, - /* 3150 */ 436, 554, 438, 554, 554, 554, 554, 554, 554, 554, - /* 3160 */ 554, 554, 554, 554, 554, 436, 554, 438, 554, 554, - /* 3170 */ 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, - /* 3180 */ 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, - /* 3190 */ 554, 554, 554, 554, 554, 554, 554, 554, 484, 554, - /* 3200 */ 554, 487, 554, 554, 554, 491, 492, 493, 494, 495, - /* 3210 */ 496, 554, 498, 484, 554, 554, 487, 554, 554, 554, - /* 3220 */ 491, 492, 493, 494, 495, 496, 554, 498, 376, 376, - /* 3230 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3240 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3250 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3260 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3270 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3280 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3290 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3300 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3310 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3320 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3330 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3340 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3350 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3360 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3370 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3380 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3390 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3400 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3410 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3420 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3430 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3440 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3450 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3460 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3470 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3480 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3490 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3500 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3510 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3520 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3530 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3540 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3550 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3560 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3570 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3580 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3590 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, - /* 3600 */ 376, 376, 376, 376, + /* 1560 */ 264, 265, 266, 267, 268, 269, 270, 123, 391, 392, + /* 1570 */ 391, 392, 420, 485, 116, 116, 488, 119, 119, 37, + /* 1580 */ 492, 493, 494, 495, 496, 497, 114, 499, 411, 112, + /* 1590 */ 411, 115, 115, 441, 506, 391, 392, 73, 510, 511, + /* 1600 */ 379, 213, 420, 215, 412, 142, 143, 144, 145, 146, + /* 1610 */ 147, 148, 420, 392, 298, 411, 13, 116, 13, 379, + /* 1620 */ 119, 177, 80, 441, 116, 433, 0, 119, 0, 520, + /* 1630 */ 33, 553, 392, 149, 150, 247, 248, 249, 1, 2, + /* 1640 */ 37, 420, 37, 12, 13, 542, 33, 535, 22, 379, + /* 1650 */ 22, 263, 264, 265, 266, 267, 268, 269, 37, 438, + /* 1660 */ 420, 440, 392, 75, 76, 77, 37, 33, 521, 33, + /* 1670 */ 82, 83, 84, 33, 251, 0, 88, 0, 438, 395, + /* 1680 */ 440, 93, 94, 95, 96, 12, 13, 99, 379, 420, + /* 1690 */ 420, 103, 104, 105, 106, 35, 33, 22, 33, 22, + /* 1700 */ 408, 392, 408, 37, 49, 390, 485, 322, 438, 488, + /* 1710 */ 440, 114, 52, 492, 493, 494, 495, 496, 497, 33, + /* 1720 */ 499, 61, 62, 63, 64, 485, 66, 114, 488, 420, + /* 1730 */ 33, 450, 492, 493, 494, 495, 496, 497, 33, 499, + /* 1740 */ 33, 33, 33, 33, 33, 33, 80, 438, 114, 440, + /* 1750 */ 114, 12, 13, 541, 114, 485, 12, 13, 488, 33, + /* 1760 */ 539, 540, 492, 493, 494, 495, 496, 497, 113, 499, + /* 1770 */ 22, 379, 112, 249, 33, 115, 506, 114, 33, 114, + /* 1780 */ 541, 511, 12, 13, 392, 37, 379, 541, 12, 13, + /* 1790 */ 33, 551, 552, 33, 485, 12, 13, 488, 37, 392, + /* 1800 */ 114, 492, 493, 494, 495, 496, 497, 379, 499, 12, + /* 1810 */ 13, 114, 420, 13, 12, 13, 12, 13, 13, 114, + /* 1820 */ 392, 114, 114, 114, 114, 114, 114, 420, 80, 463, + /* 1830 */ 438, 541, 440, 12, 13, 395, 215, 37, 486, 450, + /* 1840 */ 114, 80, 37, 183, 215, 438, 392, 440, 420, 540, + /* 1850 */ 437, 471, 192, 450, 462, 114, 196, 197, 110, 114, + /* 1860 */ 450, 525, 202, 203, 525, 546, 438, 450, 440, 512, + /* 1870 */ 528, 114, 410, 299, 114, 52, 465, 485, 487, 20, + /* 1880 */ 488, 221, 391, 20, 492, 493, 494, 495, 496, 497, + /* 1890 */ 476, 499, 485, 481, 400, 488, 379, 230, 476, 492, + /* 1900 */ 493, 494, 495, 496, 497, 400, 499, 211, 467, 392, + /* 1910 */ 391, 20, 392, 485, 45, 447, 488, 392, 447, 187, + /* 1920 */ 492, 493, 494, 495, 496, 497, 444, 499, 391, 501, + /* 1930 */ 392, 391, 379, 447, 444, 111, 444, 420, 404, 444, + /* 1940 */ 109, 391, 403, 391, 108, 392, 402, 391, 391, 391, + /* 1950 */ 384, 20, 50, 388, 384, 438, 388, 440, 20, 552, + /* 1960 */ 400, 213, 379, 215, 476, 20, 440, 400, 393, 400, + /* 1970 */ 20, 400, 466, 420, 393, 392, 400, 20, 457, 462, + /* 1980 */ 400, 379, 20, 451, 400, 400, 391, 400, 384, 438, + /* 1990 */ 234, 438, 420, 440, 392, 384, 382, 249, 250, 420, + /* 2000 */ 382, 438, 485, 420, 20, 488, 420, 391, 480, 492, + /* 2010 */ 493, 494, 495, 496, 497, 462, 499, 113, 420, 420, + /* 2020 */ 420, 438, 420, 440, 478, 476, 420, 420, 420, 420, + /* 2030 */ 420, 438, 219, 398, 475, 473, 218, 398, 485, 391, + /* 2040 */ 438, 488, 440, 379, 307, 492, 493, 494, 495, 496, + /* 2050 */ 497, 315, 499, 306, 472, 440, 392, 465, 438, 458, + /* 2060 */ 537, 534, 204, 534, 300, 534, 536, 317, 485, 533, + /* 2070 */ 379, 488, 295, 532, 316, 492, 493, 494, 495, 496, + /* 2080 */ 497, 458, 499, 392, 420, 531, 294, 485, 524, 465, + /* 2090 */ 488, 324, 379, 321, 492, 493, 494, 495, 496, 497, + /* 2100 */ 523, 499, 438, 548, 440, 392, 319, 392, 20, 379, + /* 2110 */ 491, 420, 123, 297, 393, 554, 398, 527, 529, 458, + /* 2120 */ 547, 398, 392, 438, 196, 438, 438, 438, 458, 438, + /* 2130 */ 438, 440, 398, 420, 455, 451, 438, 113, 398, 509, + /* 2140 */ 438, 379, 196, 416, 398, 452, 451, 398, 113, 485, + /* 2150 */ 420, 438, 488, 440, 392, 392, 492, 493, 494, 495, + /* 2160 */ 496, 497, 438, 499, 426, 391, 438, 438, 438, 438, + /* 2170 */ 440, 438, 22, 438, 38, 385, 485, 381, 398, 488, + /* 2180 */ 438, 438, 420, 492, 493, 494, 495, 496, 497, 438, + /* 2190 */ 499, 438, 438, 438, 384, 0, 477, 438, 485, 414, + /* 2200 */ 438, 488, 440, 438, 438, 492, 493, 494, 495, 496, + /* 2210 */ 497, 438, 499, 438, 399, 485, 438, 438, 488, 438, + /* 2220 */ 438, 422, 492, 493, 494, 495, 496, 497, 379, 499, + /* 2230 */ 459, 438, 438, 414, 422, 0, 468, 377, 0, 414, + /* 2240 */ 0, 392, 45, 459, 37, 240, 37, 485, 37, 37, + /* 2250 */ 488, 0, 240, 484, 492, 493, 494, 495, 496, 497, + /* 2260 */ 379, 499, 37, 37, 37, 240, 0, 0, 240, 420, + /* 2270 */ 0, 37, 0, 392, 37, 0, 22, 0, 37, 379, + /* 2280 */ 235, 0, 221, 0, 221, 215, 222, 438, 213, 440, + /* 2290 */ 0, 0, 392, 209, 208, 0, 0, 154, 49, 49, + /* 2300 */ 0, 420, 0, 0, 0, 37, 37, 52, 0, 379, + /* 2310 */ 49, 0, 0, 0, 0, 0, 45, 0, 0, 438, + /* 2320 */ 420, 440, 392, 49, 0, 0, 0, 173, 0, 37, + /* 2330 */ 173, 0, 0, 0, 485, 49, 0, 488, 438, 0, + /* 2340 */ 440, 492, 493, 494, 495, 496, 497, 0, 499, 0, + /* 2350 */ 420, 0, 0, 0, 0, 0, 0, 0, 0, 0, + /* 2360 */ 0, 0, 0, 0, 0, 0, 485, 45, 438, 488, + /* 2370 */ 440, 379, 0, 492, 493, 494, 495, 496, 497, 0, + /* 2380 */ 499, 0, 0, 0, 392, 485, 0, 0, 488, 0, + /* 2390 */ 379, 22, 492, 493, 494, 495, 496, 497, 0, 499, + /* 2400 */ 154, 0, 0, 392, 0, 153, 0, 22, 152, 0, + /* 2410 */ 22, 66, 420, 0, 66, 485, 50, 50, 488, 0, + /* 2420 */ 379, 37, 492, 493, 494, 495, 496, 497, 0, 499, + /* 2430 */ 438, 420, 440, 392, 66, 0, 66, 0, 42, 0, + /* 2440 */ 37, 42, 52, 52, 37, 0, 52, 37, 0, 438, + /* 2450 */ 42, 440, 37, 0, 33, 14, 379, 45, 42, 0, + /* 2460 */ 49, 420, 42, 49, 0, 43, 49, 0, 0, 392, + /* 2470 */ 0, 42, 0, 49, 0, 49, 0, 485, 0, 438, + /* 2480 */ 488, 440, 379, 204, 492, 493, 494, 495, 496, 497, + /* 2490 */ 0, 499, 74, 0, 37, 392, 485, 420, 52, 488, + /* 2500 */ 42, 0, 37, 492, 493, 494, 495, 496, 497, 0, + /* 2510 */ 499, 42, 52, 52, 37, 438, 0, 440, 37, 0, + /* 2520 */ 0, 42, 42, 420, 0, 52, 485, 0, 0, 488, + /* 2530 */ 0, 37, 22, 492, 493, 494, 495, 496, 497, 0, + /* 2540 */ 499, 438, 37, 440, 121, 22, 119, 22, 379, 37, + /* 2550 */ 37, 37, 37, 0, 37, 37, 0, 22, 37, 37, + /* 2560 */ 0, 392, 485, 37, 379, 488, 33, 33, 37, 492, + /* 2570 */ 493, 494, 495, 496, 497, 37, 499, 392, 0, 22, + /* 2580 */ 379, 22, 37, 54, 22, 0, 0, 0, 485, 420, + /* 2590 */ 0, 488, 37, 392, 0, 492, 493, 494, 495, 496, + /* 2600 */ 497, 37, 499, 22, 20, 420, 37, 438, 37, 440, + /* 2610 */ 37, 114, 113, 0, 49, 190, 113, 220, 226, 0, + /* 2620 */ 225, 420, 190, 438, 22, 440, 37, 0, 22, 196, + /* 2630 */ 190, 0, 0, 190, 200, 301, 200, 190, 3, 438, + /* 2640 */ 33, 440, 37, 50, 33, 113, 216, 37, 50, 33, + /* 2650 */ 114, 114, 111, 113, 485, 113, 109, 488, 114, 33, + /* 2660 */ 114, 492, 493, 494, 495, 496, 497, 113, 499, 49, + /* 2670 */ 485, 113, 379, 488, 113, 33, 113, 492, 493, 494, + /* 2680 */ 495, 496, 497, 49, 499, 392, 485, 33, 114, 488, + /* 2690 */ 114, 114, 80, 492, 493, 494, 495, 496, 497, 379, + /* 2700 */ 499, 301, 37, 3, 113, 33, 114, 37, 37, 114, + /* 2710 */ 37, 37, 392, 420, 379, 37, 37, 114, 49, 33, + /* 2720 */ 0, 0, 113, 285, 49, 42, 0, 392, 114, 114, + /* 2730 */ 113, 438, 301, 440, 113, 113, 193, 42, 0, 114, + /* 2740 */ 420, 113, 193, 42, 192, 197, 33, 111, 111, 2, + /* 2750 */ 22, 249, 114, 114, 272, 420, 113, 113, 438, 113, + /* 2760 */ 440, 113, 113, 49, 114, 113, 113, 49, 22, 114, + /* 2770 */ 113, 113, 0, 438, 114, 440, 113, 42, 485, 113, + /* 2780 */ 22, 488, 49, 122, 22, 492, 493, 494, 495, 496, + /* 2790 */ 497, 114, 499, 193, 113, 113, 22, 113, 113, 123, + /* 2800 */ 113, 22, 252, 114, 37, 485, 226, 37, 488, 113, + /* 2810 */ 37, 114, 492, 493, 494, 495, 496, 497, 113, 499, + /* 2820 */ 485, 114, 37, 488, 114, 37, 114, 492, 493, 494, + /* 2830 */ 495, 496, 497, 37, 499, 37, 114, 134, 134, 33, + /* 2840 */ 134, 37, 134, 113, 113, 113, 22, 22, 37, 74, + /* 2850 */ 73, 37, 37, 37, 37, 37, 37, 37, 37, 37, + /* 2860 */ 37, 80, 107, 80, 107, 33, 37, 37, 37, 22, + /* 2870 */ 37, 37, 37, 80, 37, 37, 37, 37, 37, 22, + /* 2880 */ 37, 0, 37, 0, 42, 37, 0, 37, 52, 0, + /* 2890 */ 37, 42, 0, 42, 0, 37, 52, 42, 52, 22, + /* 2900 */ 37, 0, 22, 33, 52, 555, 22, 22, 21, 555, + /* 2910 */ 22, 21, 555, 20, 555, 555, 555, 555, 555, 555, + /* 2920 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 2930 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 2940 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 2950 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 2960 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 2970 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 2980 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 2990 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3000 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3010 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3020 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3030 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3040 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3050 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3060 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3070 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3080 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3090 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3100 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3110 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3120 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3130 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3140 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3150 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3160 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3170 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3180 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3190 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3200 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3210 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3220 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3230 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3240 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3250 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3260 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3270 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, + /* 3280 */ 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, }; -#define YY_SHIFT_COUNT (964) +#define YY_SHIFT_COUNT (969) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2733) +#define YY_SHIFT_MAX (2901) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 520, 0, 259, 0, 519, 519, 519, 519, 519, 519, /* 10 */ 519, 519, 519, 519, 519, 519, 778, 1037, 1037, 1296, /* 20 */ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, /* 30 */ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, /* 40 */ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, - /* 50 */ 38, 362, 897, 420, 285, 580, 285, 285, 420, 420, - /* 60 */ 285, 1202, 285, 258, 1202, 24, 285, 16, 1426, 562, - /* 70 */ 562, 108, 108, 1426, 1426, 348, 348, 562, 14, 94, - /* 80 */ 116, 116, 174, 108, 108, 108, 108, 108, 108, 108, - /* 90 */ 108, 108, 108, 108, 204, 372, 393, 108, 108, 261, - /* 100 */ 16, 108, 204, 108, 16, 108, 108, 108, 108, 16, - /* 110 */ 108, 108, 16, 108, 16, 16, 16, 108, 404, 214, - /* 120 */ 214, 994, 994, 1218, 532, 175, 67, 892, 892, 892, - /* 130 */ 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, - /* 140 */ 892, 892, 892, 892, 892, 892, 839, 805, 14, 94, - /* 150 */ 843, 843, 518, 690, 690, 690, 482, 482, 1160, 617, - /* 160 */ 518, 261, 16, 453, 16, 16, 414, 16, 16, 503, - /* 170 */ 16, 503, 503, 682, 25, 994, 994, 994, 994, 994, - /* 180 */ 994, 1568, 1289, 21, 289, 413, 413, 352, 437, 150, - /* 190 */ 210, 299, 260, 205, 293, 6, 6, 360, 950, 993, - /* 200 */ 974, 974, 974, 105, 974, 816, 773, 1356, 1221, 1174, - /* 210 */ 1139, 882, 1221, 1221, 1223, 1316, 1316, 1146, 870, 727, - /* 220 */ 617, 1401, 1666, 1701, 1703, 1497, 261, 1703, 261, 1524, - /* 230 */ 1701, 1720, 1697, 1720, 1697, 1561, 1701, 1720, 1701, 1697, - /* 240 */ 1561, 1561, 1561, 1648, 1658, 1701, 1701, 1669, 1701, 1701, - /* 250 */ 1701, 1774, 1745, 1774, 1745, 1703, 261, 261, 1791, 261, - /* 260 */ 1795, 1804, 261, 1795, 261, 1813, 261, 1818, 261, 261, - /* 270 */ 1701, 261, 1774, 16, 16, 16, 16, 16, 16, 16, - /* 280 */ 16, 16, 16, 16, 1701, 25, 25, 1774, 503, 503, - /* 290 */ 503, 1663, 1763, 1703, 404, 1883, 1689, 1695, 1791, 404, - /* 300 */ 1401, 1701, 503, 1616, 1618, 1616, 1618, 1611, 1728, 1616, - /* 310 */ 1620, 1623, 1651, 1401, 1661, 1671, 1639, 1649, 1650, 1720, - /* 320 */ 1954, 1854, 1681, 1795, 404, 404, 1618, 503, 503, 503, - /* 330 */ 503, 1618, 503, 1800, 404, 503, 1818, 404, 1887, 503, - /* 340 */ 1808, 1818, 404, 682, 404, 1720, 503, 503, 503, 503, - /* 350 */ 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, - /* 360 */ 503, 503, 503, 503, 503, 503, 503, 503, 1904, 503, - /* 370 */ 1701, 404, 1996, 1983, 1774, 3228, 3228, 3228, 3228, 3228, - /* 380 */ 3228, 3228, 3228, 3228, 3228, 3228, 3228, 81, 1425, 359, - /* 390 */ 1684, 391, 17, 558, 63, 707, 1492, 231, 724, 588, - /* 400 */ 588, 588, 588, 588, 588, 588, 588, 588, 750, 610, - /* 410 */ 464, 66, 723, 723, 402, 733, 39, 782, 578, 578, - /* 420 */ 760, 846, 578, 889, 802, 1075, 54, 302, 302, 1231, - /* 430 */ 1113, 964, 1231, 1231, 1231, 1404, 1255, 1336, 605, 1151, - /* 440 */ 696, 1440, 1313, 1315, 1317, 1328, 734, 1441, 1442, 1476, - /* 450 */ 1480, 1490, 1493, 1226, 1416, 1420, 8, 1477, 1481, 1485, - /* 460 */ 1487, 1332, 1303, 621, 1483, 1496, 1499, 1541, 1502, 781, - /* 470 */ 1511, 1409, 1535, 1538, 1547, 1550, 1526, 1560, 1572, 1577, - /* 480 */ 1592, 1602, 1630, 1635, 1642, 1644, 1647, 1563, 1565, 1567, - /* 490 */ 1573, 1591, 1600, 429, 1446, 498, 1589, 1504, 1632, 1621, - /* 500 */ 1390, 2082, 2083, 2085, 2041, 2087, 2051, 1850, 2054, 2056, - /* 510 */ 2057, 1855, 2096, 2060, 2061, 1859, 2063, 2101, 2102, 1863, - /* 520 */ 2104, 2068, 2106, 2070, 2109, 2089, 2112, 2076, 1879, 2115, - /* 530 */ 1895, 2118, 1898, 1899, 1907, 1911, 2125, 2126, 2133, 1926, - /* 540 */ 1928, 2137, 2138, 1985, 2092, 2093, 2143, 2107, 2145, 2146, - /* 550 */ 2110, 2097, 2148, 2103, 2150, 2113, 2151, 2157, 2160, 2105, - /* 560 */ 2155, 2161, 2162, 2171, 2173, 2174, 2002, 2139, 2177, 2005, - /* 570 */ 2179, 2180, 2183, 2184, 2185, 2186, 2188, 2189, 2198, 2200, - /* 580 */ 2201, 2202, 2204, 2205, 2206, 2207, 2208, 2209, 2211, 2212, - /* 590 */ 2142, 2192, 2149, 2193, 2195, 2196, 2213, 2214, 2215, 2216, - /* 600 */ 2217, 2218, 2199, 2220, 2069, 2224, 2072, 2227, 2077, 2230, - /* 610 */ 2233, 2219, 2187, 2221, 2190, 2234, 2169, 2236, 2172, 2225, - /* 620 */ 2239, 2176, 2244, 2197, 2246, 2250, 2228, 2223, 2222, 2258, - /* 630 */ 2229, 2235, 2226, 2261, 2232, 2237, 2231, 2267, 2242, 2270, - /* 640 */ 2245, 2238, 2259, 2247, 2248, 2257, 2251, 2272, 2256, 2249, - /* 650 */ 2293, 2294, 2301, 2308, 2268, 2108, 2311, 2247, 2265, 2315, - /* 660 */ 2247, 2269, 2316, 2317, 2254, 2319, 2320, 2284, 2271, 2280, - /* 670 */ 2325, 2292, 2285, 2297, 2340, 2304, 2290, 2302, 2345, 2309, - /* 680 */ 2296, 2307, 2350, 2351, 2352, 2353, 2355, 2356, 2240, 2243, - /* 690 */ 2321, 2335, 2359, 2341, 2327, 2328, 2329, 2330, 2331, 2332, - /* 700 */ 2337, 2338, 2339, 2344, 2346, 2343, 2347, 2360, 2348, 2373, - /* 710 */ 2364, 2378, 2368, 2381, 2369, 2342, 2383, 2370, 2357, 2393, - /* 720 */ 2395, 2397, 2362, 2398, 2363, 2401, 2380, 2385, 2366, 2371, - /* 730 */ 2372, 2298, 2300, 2407, 2241, 2194, 2253, 2303, 2255, 2247, - /* 740 */ 2365, 2411, 2260, 2382, 2400, 2415, 2263, 2402, 2264, 2262, - /* 750 */ 2417, 2433, 2266, 2273, 2278, 2274, 2431, 2403, 2136, 2326, - /* 760 */ 2334, 2358, 2367, 2404, 2416, 2374, 2390, 2354, 2420, 2375, - /* 770 */ 2377, 2424, 2439, 2379, 2376, 2384, 2386, 2387, 2444, 2427, - /* 780 */ 2434, 2389, 2447, 2181, 2405, 2391, 2453, 2396, 2451, 2392, - /* 790 */ 2394, 2489, 2461, 2203, 2458, 2459, 2463, 2473, 2474, 2475, - /* 800 */ 2399, 2414, 2449, 2276, 2481, 2467, 2517, 2519, 2408, 2488, - /* 810 */ 2418, 2421, 2423, 2425, 2349, 2426, 2534, 2495, 2388, 2540, - /* 820 */ 2429, 2428, 2406, 2502, 2409, 2512, 2440, 2281, 2441, 2548, - /* 830 */ 2532, 2306, 2442, 2445, 2450, 2452, 2454, 2455, 2456, 2446, - /* 840 */ 2508, 2460, 2462, 2509, 2448, 2549, 2324, 2464, 2465, 2572, - /* 850 */ 2466, 2468, 2432, 2537, 2469, 2471, 2247, 2535, 2476, 2478, - /* 860 */ 2472, 2483, 2484, 2477, 2566, 2586, 2591, 2410, 2480, 2550, - /* 870 */ 2573, 2501, 2503, 2579, 2505, 2514, 2593, 2450, 2518, 2596, - /* 880 */ 2452, 2520, 2598, 2454, 2523, 2602, 2455, 2506, 2521, 2522, - /* 890 */ 2524, 2529, 2610, 2538, 2616, 2544, 2610, 2610, 2637, 2587, - /* 900 */ 2589, 2638, 2626, 2627, 2628, 2629, 2631, 2632, 2633, 2634, - /* 910 */ 2636, 2639, 2640, 2594, 2574, 2599, 2585, 2647, 2654, 2656, - /* 920 */ 2657, 2674, 2660, 2661, 2662, 2620, 2344, 2664, 2346, 2665, - /* 930 */ 2666, 2667, 2668, 2684, 2670, 2708, 2672, 2658, 2675, 2712, - /* 940 */ 2677, 2669, 2676, 2716, 2682, 2671, 2678, 2722, 2687, 2673, - /* 950 */ 2685, 2726, 2692, 2730, 2709, 2695, 2733, 2713, 2701, 2715, - /* 960 */ 2717, 2719, 2720, 2728, 2731, + /* 50 */ 38, 338, 424, 42, 596, 624, 596, 596, 42, 42, + /* 60 */ 596, 630, 596, 258, 630, 297, 596, 257, 1388, 448, + /* 70 */ 448, 405, 405, 12, 1388, 1388, 304, 304, 448, 103, + /* 80 */ 103, 455, 196, 196, 205, 291, 405, 405, 405, 405, + /* 90 */ 405, 405, 405, 405, 405, 405, 405, 450, 580, 686, + /* 100 */ 405, 405, 37, 257, 405, 450, 405, 257, 405, 405, + /* 110 */ 405, 405, 257, 405, 405, 405, 257, 405, 257, 257, + /* 120 */ 257, 214, 214, 885, 885, 1211, 1588, 194, 64, 1748, + /* 130 */ 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, + /* 140 */ 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 91, 790, + /* 150 */ 103, 455, 1196, 1196, 880, 1259, 1259, 1259, 569, 569, + /* 160 */ 818, 41, 880, 37, 257, 599, 257, 257, 460, 257, + /* 170 */ 257, 658, 257, 658, 658, 644, 825, 885, 885, 885, + /* 180 */ 885, 885, 885, 684, 280, 21, 62, 260, 260, 15, + /* 190 */ 557, 231, 462, 253, 153, 551, 701, 837, 837, 814, + /* 200 */ 386, 922, 922, 922, 903, 922, 1010, 881, 447, 265, + /* 210 */ 959, 1340, 884, 1255, 1255, 1423, 1451, 1451, 1053, 1328, + /* 220 */ 1316, 1255, 41, 1574, 1823, 1859, 1863, 1667, 37, 1863, + /* 230 */ 37, 1696, 1859, 1891, 1869, 1891, 1869, 1732, 1859, 1891, + /* 240 */ 1859, 1869, 1732, 1732, 1732, 1824, 1831, 1859, 1859, 1836, + /* 250 */ 1859, 1859, 1859, 1931, 1902, 1931, 1902, 1863, 37, 37, + /* 260 */ 1938, 37, 1945, 1950, 37, 1945, 37, 1957, 37, 1962, + /* 270 */ 37, 37, 1859, 37, 1931, 257, 257, 257, 257, 257, + /* 280 */ 257, 257, 257, 257, 257, 257, 1859, 825, 825, 1931, + /* 290 */ 658, 658, 658, 1756, 1904, 1863, 12, 1984, 1813, 1818, + /* 300 */ 1938, 12, 1574, 1859, 658, 1737, 1747, 1737, 1747, 1736, + /* 310 */ 1858, 1737, 1750, 1758, 1764, 1574, 1777, 1792, 1767, 1772, + /* 320 */ 1787, 1891, 2088, 1989, 1816, 1945, 12, 12, 1747, 658, + /* 330 */ 658, 658, 658, 1747, 658, 1928, 12, 658, 1962, 12, + /* 340 */ 2024, 658, 1946, 1962, 12, 644, 12, 1891, 658, 658, + /* 350 */ 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, + /* 360 */ 658, 658, 658, 658, 658, 658, 658, 658, 658, 658, + /* 370 */ 2035, 658, 1859, 12, 2150, 2136, 1931, 2914, 2914, 2914, + /* 380 */ 2914, 2914, 2914, 2914, 2914, 2914, 2914, 2914, 2914, 81, + /* 390 */ 1660, 112, 1477, 602, 290, 949, 1067, 1082, 1351, 1355, + /* 400 */ 1463, 89, 89, 89, 89, 89, 89, 89, 89, 89, + /* 410 */ 976, 929, 185, 542, 1128, 1128, 491, 953, 673, 272, + /* 420 */ 19, 19, 668, 687, 19, 1106, 720, 1368, 987, 363, + /* 430 */ 363, 1308, 1393, 357, 1308, 1308, 1308, 567, 1289, 1156, + /* 440 */ 1475, 1499, 1444, 314, 1458, 1459, 1501, 1508, 1542, 1603, + /* 450 */ 1605, 1626, 1628, 1675, 1677, 1302, 1472, 1597, 1476, 1613, + /* 460 */ 1636, 1663, 1665, 1484, 553, 1385, 1634, 1697, 1707, 1637, + /* 470 */ 1640, 1524, 1708, 1655, 1705, 1709, 1710, 1711, 1712, 1631, + /* 480 */ 1673, 1739, 1744, 1770, 1776, 1783, 1797, 1802, 1804, 1821, + /* 490 */ 1686, 1726, 1741, 1745, 1757, 1760, 84, 1666, 1621, 1629, + /* 500 */ 1800, 1805, 1761, 79, 2195, 2235, 2238, 2197, 2240, 2207, + /* 510 */ 2005, 2209, 2211, 2212, 2012, 2251, 2225, 2226, 2025, 2227, + /* 520 */ 2266, 2267, 2028, 2270, 2234, 2272, 2237, 2275, 2254, 2277, + /* 530 */ 2241, 2045, 2281, 2061, 2283, 2063, 2064, 2070, 2075, 2290, + /* 540 */ 2291, 2302, 2084, 2086, 2295, 2296, 2143, 2249, 2250, 2300, + /* 550 */ 2268, 2303, 2304, 2269, 2255, 2308, 2261, 2311, 2271, 2312, + /* 560 */ 2313, 2314, 2274, 2315, 2317, 2318, 2324, 2325, 2326, 2154, + /* 570 */ 2292, 2328, 2157, 2331, 2332, 2333, 2339, 2347, 2349, 2351, + /* 580 */ 2352, 2353, 2354, 2355, 2356, 2357, 2358, 2359, 2360, 2361, + /* 590 */ 2362, 2363, 2364, 2286, 2336, 2322, 2365, 2372, 2379, 2381, + /* 600 */ 2382, 2383, 2386, 2387, 2389, 2369, 2398, 2246, 2401, 2252, + /* 610 */ 2402, 2256, 2404, 2406, 2385, 2366, 2388, 2367, 2409, 2345, + /* 620 */ 2413, 2348, 2384, 2419, 2368, 2428, 2370, 2435, 2437, 2403, + /* 630 */ 2390, 2396, 2439, 2407, 2391, 2399, 2445, 2410, 2394, 2408, + /* 640 */ 2448, 2415, 2453, 2412, 2416, 2421, 2411, 2414, 2441, 2417, + /* 650 */ 2459, 2422, 2420, 2464, 2467, 2468, 2470, 2429, 2279, 2472, + /* 660 */ 2411, 2424, 2474, 2411, 2426, 2476, 2478, 2418, 2490, 2493, + /* 670 */ 2457, 2446, 2458, 2501, 2465, 2460, 2469, 2509, 2477, 2461, + /* 680 */ 2479, 2516, 2481, 2473, 2480, 2519, 2520, 2524, 2527, 2528, + /* 690 */ 2530, 2423, 2427, 2494, 2510, 2539, 2523, 2505, 2512, 2513, + /* 700 */ 2514, 2515, 2517, 2518, 2521, 2522, 2533, 2534, 2526, 2531, + /* 710 */ 2525, 2538, 2553, 2535, 2556, 2557, 2560, 2559, 2529, 2578, + /* 720 */ 2562, 2545, 2585, 2586, 2587, 2555, 2590, 2564, 2594, 2581, + /* 730 */ 2584, 2569, 2571, 2573, 2497, 2499, 2613, 2425, 2392, 2395, + /* 740 */ 2503, 2397, 2411, 2565, 2619, 2432, 2589, 2602, 2627, 2430, + /* 750 */ 2606, 2440, 2433, 2631, 2632, 2443, 2434, 2447, 2436, 2635, + /* 760 */ 2607, 2334, 2532, 2536, 2540, 2537, 2605, 2610, 2542, 2593, + /* 770 */ 2541, 2598, 2547, 2544, 2611, 2616, 2546, 2554, 2558, 2561, + /* 780 */ 2574, 2626, 2620, 2634, 2563, 2642, 2400, 2612, 2576, 2654, + /* 790 */ 2591, 2665, 2577, 2592, 2700, 2672, 2431, 2670, 2671, 2673, + /* 800 */ 2674, 2678, 2679, 2595, 2603, 2669, 2438, 2686, 2675, 2720, + /* 810 */ 2721, 2609, 2683, 2614, 2615, 2617, 2621, 2543, 2622, 2726, + /* 820 */ 2695, 2548, 2738, 2625, 2628, 2549, 2701, 2552, 2713, 2636, + /* 830 */ 2482, 2637, 2747, 2728, 2502, 2638, 2639, 2643, 2644, 2646, + /* 840 */ 2648, 2649, 2650, 2714, 2652, 2653, 2718, 2655, 2746, 2550, + /* 850 */ 2657, 2658, 2772, 2660, 2663, 2600, 2735, 2666, 2661, 2758, + /* 860 */ 2681, 2411, 2733, 2682, 2684, 2677, 2685, 2687, 2676, 2762, + /* 870 */ 2774, 2779, 2580, 2689, 2767, 2770, 2696, 2697, 2773, 2705, + /* 880 */ 2707, 2785, 2643, 2710, 2788, 2644, 2712, 2796, 2646, 2722, + /* 890 */ 2798, 2648, 2703, 2704, 2706, 2708, 2730, 2806, 2731, 2804, + /* 900 */ 2732, 2806, 2806, 2824, 2775, 2777, 2825, 2811, 2814, 2815, + /* 910 */ 2816, 2817, 2818, 2819, 2820, 2821, 2822, 2823, 2781, 2755, + /* 920 */ 2783, 2757, 2832, 2829, 2830, 2831, 2847, 2833, 2834, 2835, + /* 930 */ 2793, 2533, 2837, 2534, 2838, 2839, 2840, 2841, 2857, 2843, + /* 940 */ 2881, 2845, 2836, 2842, 2883, 2848, 2844, 2849, 2886, 2850, + /* 950 */ 2846, 2851, 2889, 2853, 2852, 2855, 2892, 2858, 2894, 2877, + /* 960 */ 2863, 2901, 2880, 2870, 2884, 2887, 2885, 2888, 2890, 2893, }; -#define YY_REDUCE_COUNT (386) -#define YY_REDUCE_MIN (-510) -#define YY_REDUCE_MAX (2729) +#define YY_REDUCE_COUNT (388) +#define YY_REDUCE_MIN (-485) +#define YY_REDUCE_MAX (2335) static const short yy_reduce_ofst[] = { - /* 0 */ 338, -376, -147, 157, 186, 415, 439, 586, 672, 708, - /* 10 */ 769, 932, 1083, 1215, 1292, 1325, -352, 1355, 525, 1372, - /* 20 */ 1449, 1466, 1546, 1575, 1636, 1672, 1761, 1790, 1811, 1840, - /* 30 */ 1934, 1951, 1968, 2031, 2111, 2128, 2154, 2191, 2252, 2275, - /* 40 */ 2336, 2361, 2422, 2443, 2504, 2565, 2584, 2645, 2714, 2729, - /* 50 */ -309, 313, -66, -322, 279, 864, 1119, 1363, -191, 1010, - /* 60 */ 1366, 176, -307, -386, -398, -233, 69, -182, -212, -436, - /* 70 */ 99, 93, 265, 47, 387, -382, -265, 183, -294, 383, - /* 80 */ -284, 48, -140, -61, 95, 473, 530, 548, 555, 579, - /* 90 */ 592, 677, 746, 609, 89, 232, 19, 563, 761, 340, - /* 100 */ 87, 763, 514, 787, 421, 799, 817, 829, 831, 538, - /* 110 */ 838, 866, 540, 923, 382, 566, 640, 928, 747, -506, - /* 120 */ -506, -358, -175, -365, 689, -510, 312, -146, 647, 722, - /* 130 */ 737, 797, 818, 833, 837, 840, 887, 896, 905, 931, - /* 140 */ 938, 942, 943, 951, 961, 982, -334, -475, -106, 291, - /* 150 */ 618, 666, 680, -475, -378, 336, 434, 460, 715, -133, - /* 160 */ 865, 234, 749, 835, 960, 966, 779, 906, -92, 902, - /* 170 */ 971, 927, 967, 998, 1038, -415, 469, 561, 568, 637, - /* 180 */ 685, 381, 731, 756, 785, 661, 661, 823, 718, 791, - /* 190 */ 977, 1104, 661, 1093, 1093, 1123, 1125, 1087, 1158, 1153, - /* 200 */ 1069, 1071, 1072, 1156, 1097, 1093, 1243, 1155, 1201, 1273, - /* 210 */ 1235, 1196, 1227, 1229, 1093, 1148, 1161, 1141, 1185, 1170, - /* 220 */ 1288, 1252, 1236, 1335, 1254, 1251, 1333, 1257, 1337, 1272, - /* 230 */ 1348, 1349, 1301, 1357, 1307, 1311, 1364, 1362, 1365, 1312, - /* 240 */ 1324, 1326, 1327, 1354, 1368, 1381, 1382, 1376, 1383, 1389, - /* 250 */ 1391, 1397, 1410, 1419, 1412, 1330, 1406, 1407, 1375, 1414, - /* 260 */ 1429, 1360, 1427, 1438, 1432, 1380, 1437, 1393, 1444, 1452, - /* 270 */ 1463, 1455, 1456, 1451, 1453, 1454, 1458, 1459, 1461, 1464, - /* 280 */ 1469, 1470, 1472, 1475, 1471, 1478, 1479, 1473, 1436, 1439, - /* 290 */ 1460, 1421, 1422, 1423, 1503, 1431, 1445, 1447, 1482, 1518, - /* 300 */ 1457, 1528, 1486, 1395, 1474, 1396, 1489, 1394, 1399, 1402, - /* 310 */ 1417, 1424, 1418, 1488, 1448, 1450, 1415, 1428, 1430, 1581, - /* 320 */ 1491, 1462, 1465, 1586, 1582, 1585, 1529, 1549, 1551, 1553, - /* 330 */ 1556, 1536, 1558, 1543, 1601, 1562, 1552, 1603, 1495, 1569, - /* 340 */ 1555, 1559, 1610, 1594, 1614, 1622, 1580, 1583, 1584, 1587, - /* 350 */ 1588, 1590, 1593, 1595, 1596, 1598, 1599, 1607, 1609, 1612, - /* 360 */ 1613, 1617, 1619, 1624, 1625, 1627, 1629, 1640, 1597, 1641, - /* 370 */ 1634, 1638, 1646, 1662, 1668, 1579, 1628, 1571, 1604, 1626, - /* 380 */ 1631, 1643, 1664, 1653, 1665, 1659, 1704, + /* 0 */ -229, -377, 187, -292, -33, 415, 444, 493, 672, 708, + /* 10 */ 735, 770, 892, 977, 1028, 1088, 163, 1221, 1240, 1270, + /* 20 */ 1309, -97, 1392, 934, 1407, 1428, 1517, 1553, 1583, 1602, + /* 30 */ 1664, 1691, 1713, 1730, 1762, 1849, 1881, 1900, 1930, 1992, + /* 40 */ 2011, 2041, 2077, 2103, 2169, 2185, 2201, 2293, 2320, 2335, + /* 50 */ 456, -196, 589, -14, 95, 277, 307, 733, -324, 54, + /* 60 */ 906, 188, -485, 369, 212, 104, 279, -376, -416, -435, + /* 70 */ -422, -266, 166, -177, -34, 495, -386, -380, 134, 246, + /* 80 */ 274, -197, 215, 558, 412, -375, 322, 428, 531, 694, + /* 90 */ -160, 616, 697, 734, 761, 788, 663, 149, 786, 237, + /* 100 */ 800, 846, -360, 578, 857, 472, 923, -306, 1001, 1046, + /* 110 */ 1048, 1050, -30, 1099, 1177, 1179, 754, 1204, 897, 938, + /* 120 */ 1192, -224, -224, -77, -267, -335, 303, -194, 497, -138, + /* 130 */ 370, 422, 691, 699, 756, 775, 779, 784, 802, 806, + /* 140 */ 809, 940, 966, 978, 996, 1020, 1081, 1110, 16, -483, + /* 150 */ -78, 529, 914, 986, 1008, -483, -41, 439, 608, 822, + /* 160 */ 1023, 202, 1030, 856, 750, 965, 1073, 1152, 256, 1059, + /* 170 */ 564, 771, 1182, 973, 1080, 808, 1070, -420, 413, 503, + /* 180 */ 678, 695, 710, 883, 851, 1124, 1090, 1109, 1109, 1078, + /* 190 */ 1103, 1112, 1147, 1284, 1109, 1269, 1269, 1292, 1294, 1315, + /* 200 */ 1281, 1212, 1239, 1246, 1366, 1290, 1269, 1389, 1440, 1352, + /* 210 */ 1454, 1413, 1380, 1403, 1410, 1269, 1336, 1339, 1319, 1357, + /* 220 */ 1342, 1417, 1462, 1411, 1391, 1491, 1414, 1412, 1494, 1422, + /* 230 */ 1505, 1441, 1519, 1520, 1468, 1525, 1471, 1482, 1537, 1538, + /* 240 */ 1540, 1486, 1490, 1492, 1495, 1534, 1539, 1550, 1552, 1544, + /* 250 */ 1556, 1557, 1558, 1566, 1565, 1570, 1568, 1488, 1560, 1567, + /* 260 */ 1526, 1569, 1575, 1506, 1571, 1581, 1576, 1521, 1580, 1532, + /* 270 */ 1584, 1585, 1595, 1587, 1604, 1572, 1579, 1586, 1598, 1599, + /* 280 */ 1600, 1606, 1607, 1608, 1609, 1610, 1616, 1614, 1618, 1611, + /* 290 */ 1551, 1563, 1593, 1528, 1546, 1549, 1635, 1559, 1562, 1582, + /* 300 */ 1615, 1639, 1592, 1648, 1620, 1527, 1601, 1529, 1623, 1523, + /* 310 */ 1530, 1531, 1536, 1541, 1554, 1624, 1564, 1577, 1561, 1555, + /* 320 */ 1573, 1715, 1619, 1589, 1590, 1721, 1718, 1723, 1661, 1685, + /* 330 */ 1687, 1688, 1689, 1670, 1692, 1679, 1734, 1698, 1684, 1740, + /* 340 */ 1630, 1702, 1693, 1695, 1746, 1727, 1749, 1763, 1724, 1728, + /* 350 */ 1729, 1731, 1733, 1735, 1742, 1743, 1751, 1753, 1754, 1755, + /* 360 */ 1759, 1765, 1766, 1773, 1775, 1778, 1779, 1781, 1782, 1793, + /* 370 */ 1738, 1794, 1774, 1780, 1796, 1790, 1810, 1768, 1799, 1769, + /* 380 */ 1719, 1771, 1784, 1785, 1819, 1812, 1825, 1815, 1860, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 10 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 20 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 30 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 40 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 50 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 60 */ 2548, 2180, 2180, 2504, 2180, 2180, 2180, 2180, 2180, 2180, - /* 70 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2511, 2180, - /* 80 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 90 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2281, - /* 100 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 110 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2279, 2800, - /* 120 */ 2180, 2926, 2589, 2180, 2180, 2829, 2180, 2180, 2180, 2180, - /* 130 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 140 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2812, 2180, 2180, - /* 150 */ 2252, 2252, 2180, 2812, 2812, 2812, 2772, 2772, 2279, 2180, - /* 160 */ 2180, 2281, 2180, 2591, 2180, 2180, 2180, 2180, 2180, 2180, - /* 170 */ 2180, 2180, 2180, 2421, 2210, 2180, 2180, 2180, 2180, 2180, - /* 180 */ 2180, 2574, 2180, 2180, 2858, 2804, 2805, 2920, 2180, 2861, - /* 190 */ 2823, 2180, 2818, 2180, 2180, 2180, 2180, 2516, 2180, 2848, - /* 200 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2617, 2180, 2180, - /* 210 */ 2366, 2568, 2180, 2180, 2180, 2180, 2180, 2904, 2802, 2842, - /* 220 */ 2180, 2852, 2180, 2180, 2180, 2605, 2281, 2180, 2281, 2561, - /* 230 */ 2499, 2180, 2509, 2180, 2509, 2506, 2180, 2180, 2180, 2509, - /* 240 */ 2506, 2506, 2506, 2355, 2351, 2180, 2180, 2349, 2180, 2180, - /* 250 */ 2180, 2180, 2235, 2180, 2235, 2180, 2281, 2281, 2180, 2281, - /* 260 */ 2180, 2180, 2281, 2180, 2281, 2180, 2281, 2180, 2281, 2281, - /* 270 */ 2180, 2281, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 280 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 290 */ 2180, 2603, 2584, 2180, 2279, 2180, 2572, 2570, 2180, 2279, - /* 300 */ 2852, 2180, 2180, 2874, 2869, 2874, 2869, 2888, 2884, 2874, - /* 310 */ 2893, 2890, 2854, 2852, 2835, 2831, 2923, 2910, 2906, 2180, - /* 320 */ 2180, 2840, 2838, 2180, 2279, 2279, 2869, 2180, 2180, 2180, - /* 330 */ 2180, 2869, 2180, 2180, 2279, 2180, 2180, 2279, 2180, 2180, - /* 340 */ 2180, 2180, 2279, 2180, 2279, 2180, 2180, 2180, 2180, 2180, - /* 350 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 360 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2383, 2180, - /* 370 */ 2180, 2279, 2180, 2219, 2180, 2563, 2926, 2589, 2594, 2544, - /* 380 */ 2544, 2424, 2424, 2926, 2424, 2282, 2185, 2180, 2180, 2180, - /* 390 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2887, - /* 400 */ 2886, 2723, 2180, 2776, 2775, 2774, 2765, 2722, 2379, 2180, - /* 410 */ 2180, 2180, 2721, 2720, 2180, 2180, 2180, 2180, 2370, 2367, - /* 420 */ 2180, 2180, 2392, 2180, 2180, 2180, 2180, 2535, 2534, 2714, - /* 430 */ 2180, 2180, 2715, 2713, 2712, 2180, 2180, 2180, 2180, 2180, - /* 440 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 450 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 460 */ 2180, 2180, 2907, 2911, 2180, 2180, 2180, 2801, 2180, 2180, - /* 470 */ 2180, 2693, 2180, 2180, 2180, 2180, 2661, 2656, 2647, 2638, - /* 480 */ 2653, 2644, 2632, 2650, 2641, 2629, 2626, 2180, 2180, 2180, - /* 490 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 500 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 510 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 520 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 530 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 540 */ 2180, 2180, 2180, 2505, 2180, 2180, 2180, 2180, 2180, 2180, - /* 550 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 560 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 570 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 580 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 590 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 600 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2520, 2180, - /* 610 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 620 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 630 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 640 */ 2180, 2180, 2224, 2700, 2180, 2180, 2180, 2180, 2180, 2180, - /* 650 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2703, 2180, 2180, - /* 660 */ 2704, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 670 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 680 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 690 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 700 */ 2180, 2180, 2180, 2326, 2325, 2180, 2180, 2180, 2180, 2180, - /* 710 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 720 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 730 */ 2180, 2705, 2180, 2180, 2180, 2180, 2588, 2180, 2180, 2695, - /* 740 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 750 */ 2180, 2180, 2180, 2180, 2180, 2180, 2903, 2855, 2180, 2180, - /* 760 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 770 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 780 */ 2693, 2180, 2885, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 790 */ 2901, 2180, 2905, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 800 */ 2811, 2807, 2180, 2180, 2803, 2180, 2180, 2180, 2180, 2180, - /* 810 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 820 */ 2180, 2180, 2180, 2180, 2180, 2762, 2180, 2180, 2180, 2796, - /* 830 */ 2180, 2180, 2180, 2180, 2420, 2419, 2418, 2417, 2180, 2180, - /* 840 */ 2180, 2180, 2180, 2180, 2705, 2180, 2708, 2180, 2180, 2180, - /* 850 */ 2180, 2180, 2180, 2180, 2180, 2180, 2692, 2180, 2747, 2746, - /* 860 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 870 */ 2180, 2414, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 880 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2398, 2396, 2395, - /* 890 */ 2394, 2180, 2431, 2180, 2180, 2180, 2427, 2426, 2180, 2180, - /* 900 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 910 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2300, 2180, 2180, - /* 920 */ 2180, 2180, 2180, 2180, 2180, 2180, 2292, 2180, 2291, 2180, - /* 930 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 940 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, - /* 950 */ 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2180, 2209, 2180, - /* 960 */ 2180, 2180, 2180, 2180, 2180, + /* 0 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 10 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 20 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 30 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 40 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 50 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 60 */ 2559, 2189, 2189, 2515, 2189, 2189, 2189, 2189, 2189, 2189, + /* 70 */ 2189, 2189, 2189, 2288, 2189, 2189, 2189, 2189, 2189, 2522, + /* 80 */ 2522, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 90 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 100 */ 2189, 2189, 2290, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 110 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 120 */ 2189, 2811, 2189, 2937, 2600, 2189, 2189, 2840, 2189, 2189, + /* 130 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 140 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2823, + /* 150 */ 2189, 2189, 2261, 2261, 2189, 2823, 2823, 2823, 2783, 2783, + /* 160 */ 2288, 2189, 2189, 2290, 2189, 2602, 2189, 2189, 2189, 2189, + /* 170 */ 2189, 2189, 2189, 2189, 2189, 2432, 2219, 2189, 2189, 2189, + /* 180 */ 2189, 2189, 2189, 2585, 2189, 2189, 2869, 2815, 2816, 2931, + /* 190 */ 2189, 2872, 2834, 2189, 2829, 2189, 2189, 2189, 2189, 2189, + /* 200 */ 2859, 2189, 2189, 2189, 2189, 2189, 2189, 2527, 2189, 2628, + /* 210 */ 2189, 2375, 2579, 2189, 2189, 2189, 2189, 2189, 2915, 2813, + /* 220 */ 2853, 2189, 2189, 2863, 2189, 2189, 2189, 2616, 2290, 2189, + /* 230 */ 2290, 2572, 2510, 2189, 2520, 2189, 2520, 2517, 2189, 2189, + /* 240 */ 2189, 2520, 2517, 2517, 2517, 2364, 2360, 2189, 2189, 2358, + /* 250 */ 2189, 2189, 2189, 2189, 2244, 2189, 2244, 2189, 2290, 2290, + /* 260 */ 2189, 2290, 2189, 2189, 2290, 2189, 2290, 2189, 2290, 2189, + /* 270 */ 2290, 2290, 2189, 2290, 2189, 2189, 2189, 2189, 2189, 2189, + /* 280 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 290 */ 2189, 2189, 2189, 2614, 2595, 2189, 2288, 2189, 2583, 2581, + /* 300 */ 2189, 2288, 2863, 2189, 2189, 2885, 2880, 2885, 2880, 2899, + /* 310 */ 2895, 2885, 2904, 2901, 2865, 2863, 2846, 2842, 2934, 2921, + /* 320 */ 2917, 2189, 2189, 2851, 2849, 2189, 2288, 2288, 2880, 2189, + /* 330 */ 2189, 2189, 2189, 2880, 2189, 2189, 2288, 2189, 2189, 2288, + /* 340 */ 2189, 2189, 2189, 2189, 2288, 2189, 2288, 2189, 2189, 2189, + /* 350 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 360 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 370 */ 2394, 2189, 2189, 2288, 2189, 2228, 2189, 2574, 2937, 2600, + /* 380 */ 2605, 2555, 2555, 2435, 2435, 2937, 2435, 2291, 2194, 2189, + /* 390 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 400 */ 2189, 2898, 2897, 2734, 2189, 2787, 2786, 2785, 2776, 2733, + /* 410 */ 2389, 2189, 2189, 2189, 2732, 2731, 2189, 2189, 2189, 2189, + /* 420 */ 2379, 2376, 2189, 2189, 2403, 2189, 2189, 2189, 2189, 2546, + /* 430 */ 2545, 2725, 2189, 2189, 2726, 2724, 2723, 2189, 2189, 2189, + /* 440 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 450 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 460 */ 2189, 2189, 2189, 2189, 2918, 2922, 2189, 2189, 2189, 2812, + /* 470 */ 2189, 2189, 2189, 2704, 2189, 2189, 2189, 2189, 2189, 2672, + /* 480 */ 2667, 2658, 2649, 2664, 2655, 2643, 2661, 2652, 2640, 2637, + /* 490 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 500 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 510 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 520 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 530 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 540 */ 2189, 2189, 2189, 2189, 2189, 2189, 2516, 2189, 2189, 2189, + /* 550 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 560 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 570 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 580 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 590 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 600 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 610 */ 2189, 2531, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 620 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 630 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 640 */ 2189, 2189, 2189, 2189, 2189, 2233, 2711, 2189, 2189, 2189, + /* 650 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 660 */ 2714, 2189, 2189, 2715, 2189, 2189, 2189, 2189, 2189, 2189, + /* 670 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 680 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 690 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 700 */ 2189, 2189, 2189, 2189, 2189, 2189, 2335, 2334, 2189, 2189, + /* 710 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 720 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 730 */ 2189, 2189, 2189, 2189, 2716, 2189, 2189, 2189, 2189, 2599, + /* 740 */ 2189, 2189, 2706, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 750 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2914, + /* 760 */ 2866, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 770 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 780 */ 2189, 2189, 2189, 2704, 2189, 2896, 2189, 2189, 2189, 2189, + /* 790 */ 2189, 2189, 2189, 2912, 2189, 2916, 2189, 2189, 2189, 2189, + /* 800 */ 2189, 2189, 2189, 2822, 2818, 2189, 2189, 2814, 2189, 2189, + /* 810 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 820 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2773, 2189, + /* 830 */ 2189, 2189, 2807, 2189, 2189, 2189, 2189, 2431, 2430, 2429, + /* 840 */ 2428, 2189, 2189, 2189, 2189, 2189, 2189, 2716, 2189, 2719, + /* 850 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 860 */ 2189, 2703, 2189, 2758, 2757, 2189, 2189, 2189, 2189, 2189, + /* 870 */ 2189, 2189, 2189, 2189, 2189, 2189, 2425, 2189, 2189, 2189, + /* 880 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 890 */ 2189, 2189, 2409, 2407, 2406, 2405, 2189, 2442, 2189, 2189, + /* 900 */ 2189, 2438, 2437, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 910 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 920 */ 2189, 2189, 2309, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 930 */ 2189, 2301, 2189, 2300, 2189, 2189, 2189, 2189, 2189, 2189, + /* 940 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 950 */ 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, 2189, + /* 960 */ 2189, 2189, 2189, 2218, 2189, 2189, 2189, 2189, 2189, 2189, }; /********** End of lemon-generated parsing tables *****************************/ @@ -2439,135 +2376,136 @@ static const char *const yyTokenName[] = { /* 422 */ "column_options", /* 423 */ "tags_literal", /* 424 */ "create_subtable_clause", - /* 425 */ "specific_cols_opt", - /* 426 */ "tags_literal_list", - /* 427 */ "drop_table_clause", - /* 428 */ "col_name_list", - /* 429 */ "tag_def_list", - /* 430 */ "tag_def", - /* 431 */ "column_def", - /* 432 */ "type_name_default_len", - /* 433 */ "duration_list", - /* 434 */ "rollup_func_list", - /* 435 */ "alter_table_option", - /* 436 */ "duration_literal", - /* 437 */ "rollup_func_name", - /* 438 */ "function_name", - /* 439 */ "col_name", - /* 440 */ "db_kind_opt", - /* 441 */ "table_kind_db_name_cond_opt", - /* 442 */ "like_pattern_opt", - /* 443 */ "db_name_cond_opt", - /* 444 */ "table_name_cond", - /* 445 */ "from_db_opt", - /* 446 */ "tag_list_opt", - /* 447 */ "table_kind", - /* 448 */ "tag_item", - /* 449 */ "column_alias", - /* 450 */ "tsma_name", - /* 451 */ "tsma_func_list", - /* 452 */ "full_tsma_name", - /* 453 */ "func_list", - /* 454 */ "index_options", - /* 455 */ "full_index_name", - /* 456 */ "index_name", - /* 457 */ "sliding_opt", - /* 458 */ "sma_stream_opt", - /* 459 */ "func", - /* 460 */ "sma_func_name", - /* 461 */ "expression_list", - /* 462 */ "with_meta", - /* 463 */ "query_or_subquery", - /* 464 */ "where_clause_opt", - /* 465 */ "cgroup_name", - /* 466 */ "analyze_opt", - /* 467 */ "explain_options", - /* 468 */ "insert_query", - /* 469 */ "or_replace_opt", - /* 470 */ "agg_func_opt", - /* 471 */ "bufsize_opt", - /* 472 */ "language_opt", - /* 473 */ "full_view_name", - /* 474 */ "view_name", - /* 475 */ "stream_name", - /* 476 */ "stream_options", - /* 477 */ "col_list_opt", - /* 478 */ "tag_def_or_ref_opt", - /* 479 */ "subtable_opt", - /* 480 */ "ignore_opt", - /* 481 */ "column_stream_def_list", - /* 482 */ "column_stream_def", - /* 483 */ "stream_col_options", - /* 484 */ "expression", - /* 485 */ "on_vgroup_id", - /* 486 */ "dnode_list", - /* 487 */ "literal_func", - /* 488 */ "signed_literal", - /* 489 */ "literal_list", - /* 490 */ "table_alias", - /* 491 */ "expr_or_subquery", - /* 492 */ "pseudo_column", - /* 493 */ "column_reference", - /* 494 */ "function_expression", - /* 495 */ "case_when_expression", - /* 496 */ "star_func", - /* 497 */ "star_func_para_list", - /* 498 */ "noarg_func", - /* 499 */ "other_para_list", - /* 500 */ "star_func_para", - /* 501 */ "when_then_list", - /* 502 */ "case_when_else_opt", - /* 503 */ "common_expression", - /* 504 */ "when_then_expr", - /* 505 */ "predicate", - /* 506 */ "compare_op", - /* 507 */ "in_op", - /* 508 */ "in_predicate_value", - /* 509 */ "boolean_value_expression", - /* 510 */ "boolean_primary", - /* 511 */ "from_clause_opt", - /* 512 */ "table_reference_list", - /* 513 */ "table_reference", - /* 514 */ "table_primary", - /* 515 */ "joined_table", - /* 516 */ "alias_opt", - /* 517 */ "subquery", - /* 518 */ "parenthesized_joined_table", - /* 519 */ "join_type", - /* 520 */ "join_subtype", - /* 521 */ "join_on_clause_opt", - /* 522 */ "window_offset_clause_opt", - /* 523 */ "jlimit_clause_opt", - /* 524 */ "window_offset_literal", - /* 525 */ "query_specification", - /* 526 */ "hint_list", - /* 527 */ "set_quantifier_opt", - /* 528 */ "tag_mode_opt", - /* 529 */ "select_list", - /* 530 */ "partition_by_clause_opt", - /* 531 */ "range_opt", - /* 532 */ "every_opt", - /* 533 */ "fill_opt", - /* 534 */ "twindow_clause_opt", - /* 535 */ "group_by_clause_opt", - /* 536 */ "having_clause_opt", - /* 537 */ "select_item", - /* 538 */ "partition_list", - /* 539 */ "partition_item", - /* 540 */ "interval_sliding_duration_literal", - /* 541 */ "fill_mode", - /* 542 */ "group_by_list", - /* 543 */ "query_expression", - /* 544 */ "query_simple", - /* 545 */ "order_by_clause_opt", - /* 546 */ "slimit_clause_opt", - /* 547 */ "limit_clause_opt", - /* 548 */ "union_query_expression", - /* 549 */ "query_simple_or_subquery", - /* 550 */ "sort_specification_list", - /* 551 */ "sort_specification", - /* 552 */ "ordering_specification_opt", - /* 553 */ "null_ordering_opt", + /* 425 */ "create_from_file_clause", + /* 426 */ "specific_cols_opt", + /* 427 */ "tags_literal_list", + /* 428 */ "tag_list_opt", + /* 429 */ "drop_table_clause", + /* 430 */ "col_name_list", + /* 431 */ "tag_def_list", + /* 432 */ "tag_def", + /* 433 */ "column_def", + /* 434 */ "type_name_default_len", + /* 435 */ "duration_list", + /* 436 */ "rollup_func_list", + /* 437 */ "alter_table_option", + /* 438 */ "duration_literal", + /* 439 */ "rollup_func_name", + /* 440 */ "function_name", + /* 441 */ "col_name", + /* 442 */ "db_kind_opt", + /* 443 */ "table_kind_db_name_cond_opt", + /* 444 */ "like_pattern_opt", + /* 445 */ "db_name_cond_opt", + /* 446 */ "table_name_cond", + /* 447 */ "from_db_opt", + /* 448 */ "table_kind", + /* 449 */ "tag_item", + /* 450 */ "column_alias", + /* 451 */ "tsma_name", + /* 452 */ "tsma_func_list", + /* 453 */ "full_tsma_name", + /* 454 */ "func_list", + /* 455 */ "index_options", + /* 456 */ "full_index_name", + /* 457 */ "index_name", + /* 458 */ "sliding_opt", + /* 459 */ "sma_stream_opt", + /* 460 */ "func", + /* 461 */ "sma_func_name", + /* 462 */ "expression_list", + /* 463 */ "with_meta", + /* 464 */ "query_or_subquery", + /* 465 */ "where_clause_opt", + /* 466 */ "cgroup_name", + /* 467 */ "analyze_opt", + /* 468 */ "explain_options", + /* 469 */ "insert_query", + /* 470 */ "or_replace_opt", + /* 471 */ "agg_func_opt", + /* 472 */ "bufsize_opt", + /* 473 */ "language_opt", + /* 474 */ "full_view_name", + /* 475 */ "view_name", + /* 476 */ "stream_name", + /* 477 */ "stream_options", + /* 478 */ "col_list_opt", + /* 479 */ "tag_def_or_ref_opt", + /* 480 */ "subtable_opt", + /* 481 */ "ignore_opt", + /* 482 */ "column_stream_def_list", + /* 483 */ "column_stream_def", + /* 484 */ "stream_col_options", + /* 485 */ "expression", + /* 486 */ "on_vgroup_id", + /* 487 */ "dnode_list", + /* 488 */ "literal_func", + /* 489 */ "signed_literal", + /* 490 */ "literal_list", + /* 491 */ "table_alias", + /* 492 */ "expr_or_subquery", + /* 493 */ "pseudo_column", + /* 494 */ "column_reference", + /* 495 */ "function_expression", + /* 496 */ "case_when_expression", + /* 497 */ "star_func", + /* 498 */ "star_func_para_list", + /* 499 */ "noarg_func", + /* 500 */ "other_para_list", + /* 501 */ "star_func_para", + /* 502 */ "when_then_list", + /* 503 */ "case_when_else_opt", + /* 504 */ "common_expression", + /* 505 */ "when_then_expr", + /* 506 */ "predicate", + /* 507 */ "compare_op", + /* 508 */ "in_op", + /* 509 */ "in_predicate_value", + /* 510 */ "boolean_value_expression", + /* 511 */ "boolean_primary", + /* 512 */ "from_clause_opt", + /* 513 */ "table_reference_list", + /* 514 */ "table_reference", + /* 515 */ "table_primary", + /* 516 */ "joined_table", + /* 517 */ "alias_opt", + /* 518 */ "subquery", + /* 519 */ "parenthesized_joined_table", + /* 520 */ "join_type", + /* 521 */ "join_subtype", + /* 522 */ "join_on_clause_opt", + /* 523 */ "window_offset_clause_opt", + /* 524 */ "jlimit_clause_opt", + /* 525 */ "window_offset_literal", + /* 526 */ "query_specification", + /* 527 */ "hint_list", + /* 528 */ "set_quantifier_opt", + /* 529 */ "tag_mode_opt", + /* 530 */ "select_list", + /* 531 */ "partition_by_clause_opt", + /* 532 */ "range_opt", + /* 533 */ "every_opt", + /* 534 */ "fill_opt", + /* 535 */ "twindow_clause_opt", + /* 536 */ "group_by_clause_opt", + /* 537 */ "having_clause_opt", + /* 538 */ "select_item", + /* 539 */ "partition_list", + /* 540 */ "partition_item", + /* 541 */ "interval_sliding_duration_literal", + /* 542 */ "fill_mode", + /* 543 */ "group_by_list", + /* 544 */ "query_expression", + /* 545 */ "query_simple", + /* 546 */ "order_by_clause_opt", + /* 547 */ "slimit_clause_opt", + /* 548 */ "limit_clause_opt", + /* 549 */ "union_query_expression", + /* 550 */ "query_simple_or_subquery", + /* 551 */ "sort_specification_list", + /* 552 */ "sort_specification", + /* 553 */ "ordering_specification_opt", + /* 554 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -2771,558 +2709,560 @@ static const char *const yyRuleName[] = { /* 193 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal", /* 194 */ "multi_create_clause ::= create_subtable_clause", /* 195 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 196 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options", - /* 197 */ "multi_drop_clause ::= drop_table_clause", - /* 198 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", - /* 199 */ "drop_table_clause ::= exists_opt full_table_name", - /* 200 */ "specific_cols_opt ::=", - /* 201 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", - /* 202 */ "full_table_name ::= table_name", - /* 203 */ "full_table_name ::= db_name NK_DOT table_name", - /* 204 */ "tag_def_list ::= tag_def", - /* 205 */ "tag_def_list ::= tag_def_list NK_COMMA tag_def", - /* 206 */ "tag_def ::= column_name type_name", - /* 207 */ "column_def_list ::= column_def", - /* 208 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 209 */ "column_def ::= column_name type_name column_options", - /* 210 */ "type_name ::= BOOL", - /* 211 */ "type_name ::= TINYINT", - /* 212 */ "type_name ::= SMALLINT", - /* 213 */ "type_name ::= INT", - /* 214 */ "type_name ::= INTEGER", - /* 215 */ "type_name ::= BIGINT", - /* 216 */ "type_name ::= FLOAT", - /* 217 */ "type_name ::= DOUBLE", - /* 218 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 219 */ "type_name ::= TIMESTAMP", - /* 220 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 221 */ "type_name ::= TINYINT UNSIGNED", - /* 222 */ "type_name ::= SMALLINT UNSIGNED", - /* 223 */ "type_name ::= INT UNSIGNED", - /* 224 */ "type_name ::= BIGINT UNSIGNED", - /* 225 */ "type_name ::= JSON", - /* 226 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 227 */ "type_name ::= MEDIUMBLOB", - /* 228 */ "type_name ::= BLOB", - /* 229 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 230 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", - /* 231 */ "type_name ::= DECIMAL", - /* 232 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 233 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 234 */ "type_name_default_len ::= BINARY", - /* 235 */ "type_name_default_len ::= NCHAR", - /* 236 */ "type_name_default_len ::= VARCHAR", - /* 237 */ "type_name_default_len ::= VARBINARY", - /* 238 */ "tags_def_opt ::=", - /* 239 */ "tags_def_opt ::= tags_def", - /* 240 */ "tags_def ::= TAGS NK_LP tag_def_list NK_RP", - /* 241 */ "table_options ::=", - /* 242 */ "table_options ::= table_options COMMENT NK_STRING", - /* 243 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 244 */ "table_options ::= table_options WATERMARK duration_list", - /* 245 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 246 */ "table_options ::= table_options TTL NK_INTEGER", - /* 247 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 248 */ "table_options ::= table_options DELETE_MARK duration_list", - /* 249 */ "alter_table_options ::= alter_table_option", - /* 250 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 251 */ "alter_table_option ::= COMMENT NK_STRING", - /* 252 */ "alter_table_option ::= TTL NK_INTEGER", - /* 253 */ "duration_list ::= duration_literal", - /* 254 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 255 */ "rollup_func_list ::= rollup_func_name", - /* 256 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 257 */ "rollup_func_name ::= function_name", - /* 258 */ "rollup_func_name ::= FIRST", - /* 259 */ "rollup_func_name ::= LAST", - /* 260 */ "col_name_list ::= col_name", - /* 261 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 262 */ "col_name ::= column_name", - /* 263 */ "cmd ::= SHOW DNODES", - /* 264 */ "cmd ::= SHOW USERS", - /* 265 */ "cmd ::= SHOW USER PRIVILEGES", - /* 266 */ "cmd ::= SHOW db_kind_opt DATABASES", - /* 267 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", - /* 268 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 269 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 270 */ "cmd ::= SHOW MNODES", - /* 271 */ "cmd ::= SHOW QNODES", - /* 272 */ "cmd ::= SHOW ARBGROUPS", - /* 273 */ "cmd ::= SHOW FUNCTIONS", - /* 274 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 275 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", - /* 276 */ "cmd ::= SHOW STREAMS", - /* 277 */ "cmd ::= SHOW ACCOUNTS", - /* 278 */ "cmd ::= SHOW APPS", - /* 279 */ "cmd ::= SHOW CONNECTIONS", - /* 280 */ "cmd ::= SHOW LICENCES", - /* 281 */ "cmd ::= SHOW GRANTS", - /* 282 */ "cmd ::= SHOW GRANTS FULL", - /* 283 */ "cmd ::= SHOW GRANTS LOGS", - /* 284 */ "cmd ::= SHOW CLUSTER MACHINES", - /* 285 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 286 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 287 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 288 */ "cmd ::= SHOW ENCRYPTIONS", - /* 289 */ "cmd ::= SHOW QUERIES", - /* 290 */ "cmd ::= SHOW SCORES", - /* 291 */ "cmd ::= SHOW TOPICS", - /* 292 */ "cmd ::= SHOW VARIABLES", - /* 293 */ "cmd ::= SHOW CLUSTER VARIABLES", - /* 294 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 295 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", - /* 296 */ "cmd ::= SHOW BNODES", - /* 297 */ "cmd ::= SHOW SNODES", - /* 298 */ "cmd ::= SHOW CLUSTER", - /* 299 */ "cmd ::= SHOW TRANSACTIONS", - /* 300 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 301 */ "cmd ::= SHOW CONSUMERS", - /* 302 */ "cmd ::= SHOW SUBSCRIPTIONS", - /* 303 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", - /* 304 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", - /* 305 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", - /* 306 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", - /* 307 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", - /* 308 */ "cmd ::= SHOW VNODES", - /* 309 */ "cmd ::= SHOW db_name_cond_opt ALIVE", - /* 310 */ "cmd ::= SHOW CLUSTER ALIVE", - /* 311 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt", - /* 312 */ "cmd ::= SHOW CREATE VIEW full_table_name", - /* 313 */ "cmd ::= SHOW COMPACTS", - /* 314 */ "cmd ::= SHOW COMPACT NK_INTEGER", - /* 315 */ "table_kind_db_name_cond_opt ::=", - /* 316 */ "table_kind_db_name_cond_opt ::= table_kind", - /* 317 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", - /* 318 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", - /* 319 */ "table_kind ::= NORMAL", - /* 320 */ "table_kind ::= CHILD", - /* 321 */ "db_name_cond_opt ::=", - /* 322 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 323 */ "like_pattern_opt ::=", - /* 324 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 325 */ "table_name_cond ::= table_name", - /* 326 */ "from_db_opt ::=", - /* 327 */ "from_db_opt ::= FROM db_name", - /* 328 */ "tag_list_opt ::=", - /* 329 */ "tag_list_opt ::= tag_item", - /* 330 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", - /* 331 */ "tag_item ::= TBNAME", - /* 332 */ "tag_item ::= QTAGS", - /* 333 */ "tag_item ::= column_name", - /* 334 */ "tag_item ::= column_name column_alias", - /* 335 */ "tag_item ::= column_name AS column_alias", - /* 336 */ "db_kind_opt ::=", - /* 337 */ "db_kind_opt ::= USER", - /* 338 */ "db_kind_opt ::= SYSTEM", - /* 339 */ "cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP", - /* 340 */ "cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP", - /* 341 */ "cmd ::= DROP TSMA exists_opt full_tsma_name", - /* 342 */ "cmd ::= SHOW db_name_cond_opt TSMAS", - /* 343 */ "full_tsma_name ::= tsma_name", - /* 344 */ "full_tsma_name ::= db_name NK_DOT tsma_name", - /* 345 */ "tsma_func_list ::= FUNCTION NK_LP func_list NK_RP", - /* 346 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", - /* 347 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", - /* 348 */ "cmd ::= DROP INDEX exists_opt full_index_name", - /* 349 */ "full_index_name ::= index_name", - /* 350 */ "full_index_name ::= db_name NK_DOT index_name", - /* 351 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", - /* 352 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt", - /* 353 */ "func_list ::= func", - /* 354 */ "func_list ::= func_list NK_COMMA func", - /* 355 */ "func ::= sma_func_name NK_LP expression_list NK_RP", - /* 356 */ "sma_func_name ::= function_name", - /* 357 */ "sma_func_name ::= COUNT", - /* 358 */ "sma_func_name ::= FIRST", - /* 359 */ "sma_func_name ::= LAST", - /* 360 */ "sma_func_name ::= LAST_ROW", - /* 361 */ "sma_stream_opt ::=", - /* 362 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", - /* 363 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", - /* 364 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", - /* 365 */ "with_meta ::= AS", - /* 366 */ "with_meta ::= WITH META AS", - /* 367 */ "with_meta ::= ONLY META AS", - /* 368 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", - /* 369 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", - /* 370 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", - /* 371 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 372 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 373 */ "cmd ::= DESC full_table_name", - /* 374 */ "cmd ::= DESCRIBE full_table_name", - /* 375 */ "cmd ::= RESET QUERY CACHE", - /* 376 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", - /* 377 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", - /* 378 */ "analyze_opt ::=", - /* 379 */ "analyze_opt ::= ANALYZE", - /* 380 */ "explain_options ::=", - /* 381 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 382 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 383 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", - /* 384 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 385 */ "agg_func_opt ::=", - /* 386 */ "agg_func_opt ::= AGGREGATE", - /* 387 */ "bufsize_opt ::=", - /* 388 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 389 */ "language_opt ::=", - /* 390 */ "language_opt ::= LANGUAGE NK_STRING", - /* 391 */ "or_replace_opt ::=", - /* 392 */ "or_replace_opt ::= OR REPLACE", - /* 393 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", - /* 394 */ "cmd ::= DROP VIEW exists_opt full_view_name", - /* 395 */ "full_view_name ::= view_name", - /* 396 */ "full_view_name ::= db_name NK_DOT view_name", - /* 397 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery", - /* 398 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 399 */ "cmd ::= PAUSE STREAM exists_opt stream_name", - /* 400 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", - /* 401 */ "col_list_opt ::=", - /* 402 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP", - /* 403 */ "column_stream_def_list ::= column_stream_def", - /* 404 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def", - /* 405 */ "column_stream_def ::= column_name stream_col_options", - /* 406 */ "stream_col_options ::=", - /* 407 */ "stream_col_options ::= stream_col_options PRIMARY KEY", - /* 408 */ "tag_def_or_ref_opt ::=", - /* 409 */ "tag_def_or_ref_opt ::= tags_def", - /* 410 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP", - /* 411 */ "stream_options ::=", - /* 412 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 413 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 414 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 415 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 416 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", - /* 417 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", - /* 418 */ "stream_options ::= stream_options DELETE_MARK duration_literal", - /* 419 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", - /* 420 */ "subtable_opt ::=", - /* 421 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", - /* 422 */ "ignore_opt ::=", - /* 423 */ "ignore_opt ::= IGNORE UNTREATED", - /* 424 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 425 */ "cmd ::= KILL QUERY NK_STRING", - /* 426 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 427 */ "cmd ::= KILL COMPACT NK_INTEGER", - /* 428 */ "cmd ::= BALANCE VGROUP", - /* 429 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", - /* 430 */ "cmd ::= BALANCE VGROUP LEADER DATABASE db_name", - /* 431 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 432 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 433 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 434 */ "on_vgroup_id ::=", - /* 435 */ "on_vgroup_id ::= ON NK_INTEGER", - /* 436 */ "dnode_list ::= DNODE NK_INTEGER", - /* 437 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 438 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 439 */ "cmd ::= query_or_subquery", - /* 440 */ "cmd ::= insert_query", - /* 441 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", - /* 442 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", - /* 443 */ "tags_literal ::= NK_INTEGER", - /* 444 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal", - /* 445 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal", - /* 446 */ "tags_literal ::= NK_PLUS NK_INTEGER", - /* 447 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal", - /* 448 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal", - /* 449 */ "tags_literal ::= NK_MINUS NK_INTEGER", - /* 450 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal", - /* 451 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal", - /* 452 */ "tags_literal ::= NK_FLOAT", - /* 453 */ "tags_literal ::= NK_PLUS NK_FLOAT", - /* 454 */ "tags_literal ::= NK_MINUS NK_FLOAT", - /* 455 */ "tags_literal ::= NK_BIN", - /* 456 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal", - /* 457 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal", - /* 458 */ "tags_literal ::= NK_PLUS NK_BIN", - /* 459 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal", - /* 460 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal", - /* 461 */ "tags_literal ::= NK_MINUS NK_BIN", - /* 462 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal", - /* 463 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal", - /* 464 */ "tags_literal ::= NK_HEX", - /* 465 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal", - /* 466 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal", - /* 467 */ "tags_literal ::= NK_PLUS NK_HEX", - /* 468 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal", - /* 469 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal", - /* 470 */ "tags_literal ::= NK_MINUS NK_HEX", - /* 471 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal", - /* 472 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal", - /* 473 */ "tags_literal ::= NK_STRING", - /* 474 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal", - /* 475 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal", - /* 476 */ "tags_literal ::= NK_BOOL", - /* 477 */ "tags_literal ::= NULL", - /* 478 */ "tags_literal ::= literal_func", - /* 479 */ "tags_literal ::= literal_func NK_PLUS duration_literal", - /* 480 */ "tags_literal ::= literal_func NK_MINUS duration_literal", - /* 481 */ "tags_literal_list ::= tags_literal", - /* 482 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal", - /* 483 */ "literal ::= NK_INTEGER", - /* 484 */ "literal ::= NK_FLOAT", - /* 485 */ "literal ::= NK_STRING", - /* 486 */ "literal ::= NK_BOOL", - /* 487 */ "literal ::= TIMESTAMP NK_STRING", - /* 488 */ "literal ::= duration_literal", - /* 489 */ "literal ::= NULL", - /* 490 */ "literal ::= NK_QUESTION", - /* 491 */ "duration_literal ::= NK_VARIABLE", - /* 492 */ "signed ::= NK_INTEGER", - /* 493 */ "signed ::= NK_PLUS NK_INTEGER", - /* 494 */ "signed ::= NK_MINUS NK_INTEGER", - /* 495 */ "signed ::= NK_FLOAT", - /* 496 */ "signed ::= NK_PLUS NK_FLOAT", - /* 497 */ "signed ::= NK_MINUS NK_FLOAT", - /* 498 */ "signed_literal ::= signed", - /* 499 */ "signed_literal ::= NK_STRING", - /* 500 */ "signed_literal ::= NK_BOOL", - /* 501 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 502 */ "signed_literal ::= duration_literal", - /* 503 */ "signed_literal ::= NULL", - /* 504 */ "signed_literal ::= literal_func", - /* 505 */ "signed_literal ::= NK_QUESTION", - /* 506 */ "literal_list ::= signed_literal", - /* 507 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 508 */ "db_name ::= NK_ID", - /* 509 */ "table_name ::= NK_ID", - /* 510 */ "column_name ::= NK_ID", - /* 511 */ "function_name ::= NK_ID", - /* 512 */ "view_name ::= NK_ID", - /* 513 */ "table_alias ::= NK_ID", - /* 514 */ "column_alias ::= NK_ID", - /* 515 */ "column_alias ::= NK_ALIAS", - /* 516 */ "user_name ::= NK_ID", - /* 517 */ "topic_name ::= NK_ID", - /* 518 */ "stream_name ::= NK_ID", - /* 519 */ "cgroup_name ::= NK_ID", - /* 520 */ "index_name ::= NK_ID", - /* 521 */ "tsma_name ::= NK_ID", - /* 522 */ "expr_or_subquery ::= expression", - /* 523 */ "expression ::= literal", - /* 524 */ "expression ::= pseudo_column", - /* 525 */ "expression ::= column_reference", - /* 526 */ "expression ::= function_expression", - /* 527 */ "expression ::= case_when_expression", - /* 528 */ "expression ::= NK_LP expression NK_RP", - /* 529 */ "expression ::= NK_PLUS expr_or_subquery", - /* 530 */ "expression ::= NK_MINUS expr_or_subquery", - /* 531 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", - /* 532 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", - /* 533 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", - /* 534 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", - /* 535 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", - /* 536 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 537 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", - /* 538 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", - /* 539 */ "expression_list ::= expr_or_subquery", - /* 540 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", - /* 541 */ "column_reference ::= column_name", - /* 542 */ "column_reference ::= table_name NK_DOT column_name", - /* 543 */ "column_reference ::= NK_ALIAS", - /* 544 */ "column_reference ::= table_name NK_DOT NK_ALIAS", - /* 545 */ "pseudo_column ::= ROWTS", - /* 546 */ "pseudo_column ::= TBNAME", - /* 547 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 548 */ "pseudo_column ::= QSTART", - /* 549 */ "pseudo_column ::= QEND", - /* 550 */ "pseudo_column ::= QDURATION", - /* 551 */ "pseudo_column ::= WSTART", - /* 552 */ "pseudo_column ::= WEND", - /* 553 */ "pseudo_column ::= WDURATION", - /* 554 */ "pseudo_column ::= IROWTS", - /* 555 */ "pseudo_column ::= ISFILLED", - /* 556 */ "pseudo_column ::= QTAGS", - /* 557 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 558 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 559 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", - /* 560 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP", - /* 561 */ "function_expression ::= literal_func", - /* 562 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 563 */ "literal_func ::= NOW", - /* 564 */ "literal_func ::= TODAY", - /* 565 */ "noarg_func ::= NOW", - /* 566 */ "noarg_func ::= TODAY", - /* 567 */ "noarg_func ::= TIMEZONE", - /* 568 */ "noarg_func ::= DATABASE", - /* 569 */ "noarg_func ::= CLIENT_VERSION", - /* 570 */ "noarg_func ::= SERVER_VERSION", - /* 571 */ "noarg_func ::= SERVER_STATUS", - /* 572 */ "noarg_func ::= CURRENT_USER", - /* 573 */ "noarg_func ::= USER", - /* 574 */ "star_func ::= COUNT", - /* 575 */ "star_func ::= FIRST", - /* 576 */ "star_func ::= LAST", - /* 577 */ "star_func ::= LAST_ROW", - /* 578 */ "star_func_para_list ::= NK_STAR", - /* 579 */ "star_func_para_list ::= other_para_list", - /* 580 */ "other_para_list ::= star_func_para", - /* 581 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 582 */ "star_func_para ::= expr_or_subquery", - /* 583 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 584 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", - /* 585 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", - /* 586 */ "when_then_list ::= when_then_expr", - /* 587 */ "when_then_list ::= when_then_list when_then_expr", - /* 588 */ "when_then_expr ::= WHEN common_expression THEN common_expression", - /* 589 */ "case_when_else_opt ::=", - /* 590 */ "case_when_else_opt ::= ELSE common_expression", - /* 591 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", - /* 592 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", - /* 593 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", - /* 594 */ "predicate ::= expr_or_subquery IS NULL", - /* 595 */ "predicate ::= expr_or_subquery IS NOT NULL", - /* 596 */ "predicate ::= expr_or_subquery in_op in_predicate_value", - /* 597 */ "compare_op ::= NK_LT", - /* 598 */ "compare_op ::= NK_GT", - /* 599 */ "compare_op ::= NK_LE", - /* 600 */ "compare_op ::= NK_GE", - /* 601 */ "compare_op ::= NK_NE", - /* 602 */ "compare_op ::= NK_EQ", - /* 603 */ "compare_op ::= LIKE", - /* 604 */ "compare_op ::= NOT LIKE", - /* 605 */ "compare_op ::= MATCH", - /* 606 */ "compare_op ::= NMATCH", - /* 607 */ "compare_op ::= CONTAINS", - /* 608 */ "in_op ::= IN", - /* 609 */ "in_op ::= NOT IN", - /* 610 */ "in_predicate_value ::= NK_LP literal_list NK_RP", - /* 611 */ "boolean_value_expression ::= boolean_primary", - /* 612 */ "boolean_value_expression ::= NOT boolean_primary", - /* 613 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 614 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 615 */ "boolean_primary ::= predicate", - /* 616 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 617 */ "common_expression ::= expr_or_subquery", - /* 618 */ "common_expression ::= boolean_value_expression", - /* 619 */ "from_clause_opt ::=", - /* 620 */ "from_clause_opt ::= FROM table_reference_list", - /* 621 */ "table_reference_list ::= table_reference", - /* 622 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 623 */ "table_reference ::= table_primary", - /* 624 */ "table_reference ::= joined_table", - /* 625 */ "table_primary ::= table_name alias_opt", - /* 626 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 627 */ "table_primary ::= subquery alias_opt", - /* 628 */ "table_primary ::= parenthesized_joined_table", - /* 629 */ "alias_opt ::=", - /* 630 */ "alias_opt ::= table_alias", - /* 631 */ "alias_opt ::= AS table_alias", - /* 632 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 633 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 634 */ "joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt", - /* 635 */ "join_type ::=", - /* 636 */ "join_type ::= INNER", - /* 637 */ "join_type ::= LEFT", - /* 638 */ "join_type ::= RIGHT", - /* 639 */ "join_type ::= FULL", - /* 640 */ "join_subtype ::=", - /* 641 */ "join_subtype ::= OUTER", - /* 642 */ "join_subtype ::= SEMI", - /* 643 */ "join_subtype ::= ANTI", - /* 644 */ "join_subtype ::= ASOF", - /* 645 */ "join_subtype ::= WINDOW", - /* 646 */ "join_on_clause_opt ::=", - /* 647 */ "join_on_clause_opt ::= ON search_condition", - /* 648 */ "window_offset_clause_opt ::=", - /* 649 */ "window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP", - /* 650 */ "window_offset_literal ::= NK_VARIABLE", - /* 651 */ "window_offset_literal ::= NK_MINUS NK_VARIABLE", - /* 652 */ "jlimit_clause_opt ::=", - /* 653 */ "jlimit_clause_opt ::= JLIMIT NK_INTEGER", - /* 654 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 655 */ "hint_list ::=", - /* 656 */ "hint_list ::= NK_HINT", - /* 657 */ "tag_mode_opt ::=", - /* 658 */ "tag_mode_opt ::= TAGS", - /* 659 */ "set_quantifier_opt ::=", - /* 660 */ "set_quantifier_opt ::= DISTINCT", - /* 661 */ "set_quantifier_opt ::= ALL", - /* 662 */ "select_list ::= select_item", - /* 663 */ "select_list ::= select_list NK_COMMA select_item", - /* 664 */ "select_item ::= NK_STAR", - /* 665 */ "select_item ::= common_expression", - /* 666 */ "select_item ::= common_expression column_alias", - /* 667 */ "select_item ::= common_expression AS column_alias", - /* 668 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 669 */ "where_clause_opt ::=", - /* 670 */ "where_clause_opt ::= WHERE search_condition", - /* 671 */ "partition_by_clause_opt ::=", - /* 672 */ "partition_by_clause_opt ::= PARTITION BY partition_list", - /* 673 */ "partition_list ::= partition_item", - /* 674 */ "partition_list ::= partition_list NK_COMMA partition_item", - /* 675 */ "partition_item ::= expr_or_subquery", - /* 676 */ "partition_item ::= expr_or_subquery column_alias", - /* 677 */ "partition_item ::= expr_or_subquery AS column_alias", - /* 678 */ "twindow_clause_opt ::=", - /* 679 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", - /* 680 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", - /* 681 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 682 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 683 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", - /* 684 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", - /* 685 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 686 */ "sliding_opt ::=", - /* 687 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", - /* 688 */ "interval_sliding_duration_literal ::= NK_VARIABLE", - /* 689 */ "interval_sliding_duration_literal ::= NK_STRING", - /* 690 */ "interval_sliding_duration_literal ::= NK_INTEGER", - /* 691 */ "fill_opt ::=", - /* 692 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 693 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", - /* 694 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", - /* 695 */ "fill_mode ::= NONE", - /* 696 */ "fill_mode ::= PREV", - /* 697 */ "fill_mode ::= NULL", - /* 698 */ "fill_mode ::= NULL_F", - /* 699 */ "fill_mode ::= LINEAR", - /* 700 */ "fill_mode ::= NEXT", - /* 701 */ "group_by_clause_opt ::=", - /* 702 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 703 */ "group_by_list ::= expr_or_subquery", - /* 704 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", - /* 705 */ "having_clause_opt ::=", - /* 706 */ "having_clause_opt ::= HAVING search_condition", - /* 707 */ "range_opt ::=", - /* 708 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", - /* 709 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", - /* 710 */ "every_opt ::=", - /* 711 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 712 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 713 */ "query_simple ::= query_specification", - /* 714 */ "query_simple ::= union_query_expression", - /* 715 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", - /* 716 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", - /* 717 */ "query_simple_or_subquery ::= query_simple", - /* 718 */ "query_simple_or_subquery ::= subquery", - /* 719 */ "query_or_subquery ::= query_expression", - /* 720 */ "query_or_subquery ::= subquery", - /* 721 */ "order_by_clause_opt ::=", - /* 722 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 723 */ "slimit_clause_opt ::=", - /* 724 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 725 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 726 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 727 */ "limit_clause_opt ::=", - /* 728 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 729 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 730 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 731 */ "subquery ::= NK_LP query_expression NK_RP", - /* 732 */ "subquery ::= NK_LP subquery NK_RP", - /* 733 */ "search_condition ::= common_expression", - /* 734 */ "sort_specification_list ::= sort_specification", - /* 735 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 736 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", - /* 737 */ "ordering_specification_opt ::=", - /* 738 */ "ordering_specification_opt ::= ASC", - /* 739 */ "ordering_specification_opt ::= DESC", - /* 740 */ "null_ordering_opt ::=", - /* 741 */ "null_ordering_opt ::= NULLS FIRST", - /* 742 */ "null_ordering_opt ::= NULLS LAST", - /* 743 */ "column_options ::=", - /* 744 */ "column_options ::= column_options PRIMARY KEY", - /* 745 */ "column_options ::= column_options ENCODE NK_STRING", - /* 746 */ "column_options ::= column_options COMPRESS NK_STRING", - /* 747 */ "column_options ::= column_options LEVEL NK_STRING", + /* 196 */ "multi_create_clause ::= create_from_file_clause", + /* 197 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options", + /* 198 */ "create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP NK_STRING", + /* 199 */ "multi_drop_clause ::= drop_table_clause", + /* 200 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", + /* 201 */ "drop_table_clause ::= exists_opt full_table_name", + /* 202 */ "specific_cols_opt ::=", + /* 203 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", + /* 204 */ "full_table_name ::= table_name", + /* 205 */ "full_table_name ::= db_name NK_DOT table_name", + /* 206 */ "tag_def_list ::= tag_def", + /* 207 */ "tag_def_list ::= tag_def_list NK_COMMA tag_def", + /* 208 */ "tag_def ::= column_name type_name", + /* 209 */ "column_def_list ::= column_def", + /* 210 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 211 */ "column_def ::= column_name type_name column_options", + /* 212 */ "type_name ::= BOOL", + /* 213 */ "type_name ::= TINYINT", + /* 214 */ "type_name ::= SMALLINT", + /* 215 */ "type_name ::= INT", + /* 216 */ "type_name ::= INTEGER", + /* 217 */ "type_name ::= BIGINT", + /* 218 */ "type_name ::= FLOAT", + /* 219 */ "type_name ::= DOUBLE", + /* 220 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 221 */ "type_name ::= TIMESTAMP", + /* 222 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 223 */ "type_name ::= TINYINT UNSIGNED", + /* 224 */ "type_name ::= SMALLINT UNSIGNED", + /* 225 */ "type_name ::= INT UNSIGNED", + /* 226 */ "type_name ::= BIGINT UNSIGNED", + /* 227 */ "type_name ::= JSON", + /* 228 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 229 */ "type_name ::= MEDIUMBLOB", + /* 230 */ "type_name ::= BLOB", + /* 231 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 232 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", + /* 233 */ "type_name ::= DECIMAL", + /* 234 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 235 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 236 */ "type_name_default_len ::= BINARY", + /* 237 */ "type_name_default_len ::= NCHAR", + /* 238 */ "type_name_default_len ::= VARCHAR", + /* 239 */ "type_name_default_len ::= VARBINARY", + /* 240 */ "tags_def_opt ::=", + /* 241 */ "tags_def_opt ::= tags_def", + /* 242 */ "tags_def ::= TAGS NK_LP tag_def_list NK_RP", + /* 243 */ "table_options ::=", + /* 244 */ "table_options ::= table_options COMMENT NK_STRING", + /* 245 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 246 */ "table_options ::= table_options WATERMARK duration_list", + /* 247 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 248 */ "table_options ::= table_options TTL NK_INTEGER", + /* 249 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 250 */ "table_options ::= table_options DELETE_MARK duration_list", + /* 251 */ "alter_table_options ::= alter_table_option", + /* 252 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 253 */ "alter_table_option ::= COMMENT NK_STRING", + /* 254 */ "alter_table_option ::= TTL NK_INTEGER", + /* 255 */ "duration_list ::= duration_literal", + /* 256 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 257 */ "rollup_func_list ::= rollup_func_name", + /* 258 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 259 */ "rollup_func_name ::= function_name", + /* 260 */ "rollup_func_name ::= FIRST", + /* 261 */ "rollup_func_name ::= LAST", + /* 262 */ "col_name_list ::= col_name", + /* 263 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 264 */ "col_name ::= column_name", + /* 265 */ "cmd ::= SHOW DNODES", + /* 266 */ "cmd ::= SHOW USERS", + /* 267 */ "cmd ::= SHOW USER PRIVILEGES", + /* 268 */ "cmd ::= SHOW db_kind_opt DATABASES", + /* 269 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", + /* 270 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 271 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 272 */ "cmd ::= SHOW MNODES", + /* 273 */ "cmd ::= SHOW QNODES", + /* 274 */ "cmd ::= SHOW ARBGROUPS", + /* 275 */ "cmd ::= SHOW FUNCTIONS", + /* 276 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 277 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", + /* 278 */ "cmd ::= SHOW STREAMS", + /* 279 */ "cmd ::= SHOW ACCOUNTS", + /* 280 */ "cmd ::= SHOW APPS", + /* 281 */ "cmd ::= SHOW CONNECTIONS", + /* 282 */ "cmd ::= SHOW LICENCES", + /* 283 */ "cmd ::= SHOW GRANTS", + /* 284 */ "cmd ::= SHOW GRANTS FULL", + /* 285 */ "cmd ::= SHOW GRANTS LOGS", + /* 286 */ "cmd ::= SHOW CLUSTER MACHINES", + /* 287 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 288 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 289 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 290 */ "cmd ::= SHOW ENCRYPTIONS", + /* 291 */ "cmd ::= SHOW QUERIES", + /* 292 */ "cmd ::= SHOW SCORES", + /* 293 */ "cmd ::= SHOW TOPICS", + /* 294 */ "cmd ::= SHOW VARIABLES", + /* 295 */ "cmd ::= SHOW CLUSTER VARIABLES", + /* 296 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 297 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", + /* 298 */ "cmd ::= SHOW BNODES", + /* 299 */ "cmd ::= SHOW SNODES", + /* 300 */ "cmd ::= SHOW CLUSTER", + /* 301 */ "cmd ::= SHOW TRANSACTIONS", + /* 302 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 303 */ "cmd ::= SHOW CONSUMERS", + /* 304 */ "cmd ::= SHOW SUBSCRIPTIONS", + /* 305 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", + /* 306 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", + /* 307 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", + /* 308 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", + /* 309 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", + /* 310 */ "cmd ::= SHOW VNODES", + /* 311 */ "cmd ::= SHOW db_name_cond_opt ALIVE", + /* 312 */ "cmd ::= SHOW CLUSTER ALIVE", + /* 313 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt", + /* 314 */ "cmd ::= SHOW CREATE VIEW full_table_name", + /* 315 */ "cmd ::= SHOW COMPACTS", + /* 316 */ "cmd ::= SHOW COMPACT NK_INTEGER", + /* 317 */ "table_kind_db_name_cond_opt ::=", + /* 318 */ "table_kind_db_name_cond_opt ::= table_kind", + /* 319 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", + /* 320 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", + /* 321 */ "table_kind ::= NORMAL", + /* 322 */ "table_kind ::= CHILD", + /* 323 */ "db_name_cond_opt ::=", + /* 324 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 325 */ "like_pattern_opt ::=", + /* 326 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 327 */ "table_name_cond ::= table_name", + /* 328 */ "from_db_opt ::=", + /* 329 */ "from_db_opt ::= FROM db_name", + /* 330 */ "tag_list_opt ::=", + /* 331 */ "tag_list_opt ::= tag_item", + /* 332 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", + /* 333 */ "tag_item ::= TBNAME", + /* 334 */ "tag_item ::= QTAGS", + /* 335 */ "tag_item ::= column_name", + /* 336 */ "tag_item ::= column_name column_alias", + /* 337 */ "tag_item ::= column_name AS column_alias", + /* 338 */ "db_kind_opt ::=", + /* 339 */ "db_kind_opt ::= USER", + /* 340 */ "db_kind_opt ::= SYSTEM", + /* 341 */ "cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP", + /* 342 */ "cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP", + /* 343 */ "cmd ::= DROP TSMA exists_opt full_tsma_name", + /* 344 */ "cmd ::= SHOW db_name_cond_opt TSMAS", + /* 345 */ "full_tsma_name ::= tsma_name", + /* 346 */ "full_tsma_name ::= db_name NK_DOT tsma_name", + /* 347 */ "tsma_func_list ::= FUNCTION NK_LP func_list NK_RP", + /* 348 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", + /* 349 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", + /* 350 */ "cmd ::= DROP INDEX exists_opt full_index_name", + /* 351 */ "full_index_name ::= index_name", + /* 352 */ "full_index_name ::= db_name NK_DOT index_name", + /* 353 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", + /* 354 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt", + /* 355 */ "func_list ::= func", + /* 356 */ "func_list ::= func_list NK_COMMA func", + /* 357 */ "func ::= sma_func_name NK_LP expression_list NK_RP", + /* 358 */ "sma_func_name ::= function_name", + /* 359 */ "sma_func_name ::= COUNT", + /* 360 */ "sma_func_name ::= FIRST", + /* 361 */ "sma_func_name ::= LAST", + /* 362 */ "sma_func_name ::= LAST_ROW", + /* 363 */ "sma_stream_opt ::=", + /* 364 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", + /* 365 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", + /* 366 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", + /* 367 */ "with_meta ::= AS", + /* 368 */ "with_meta ::= WITH META AS", + /* 369 */ "with_meta ::= ONLY META AS", + /* 370 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", + /* 371 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", + /* 372 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", + /* 373 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 374 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 375 */ "cmd ::= DESC full_table_name", + /* 376 */ "cmd ::= DESCRIBE full_table_name", + /* 377 */ "cmd ::= RESET QUERY CACHE", + /* 378 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", + /* 379 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", + /* 380 */ "analyze_opt ::=", + /* 381 */ "analyze_opt ::= ANALYZE", + /* 382 */ "explain_options ::=", + /* 383 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 384 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 385 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", + /* 386 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 387 */ "agg_func_opt ::=", + /* 388 */ "agg_func_opt ::= AGGREGATE", + /* 389 */ "bufsize_opt ::=", + /* 390 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 391 */ "language_opt ::=", + /* 392 */ "language_opt ::= LANGUAGE NK_STRING", + /* 393 */ "or_replace_opt ::=", + /* 394 */ "or_replace_opt ::= OR REPLACE", + /* 395 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", + /* 396 */ "cmd ::= DROP VIEW exists_opt full_view_name", + /* 397 */ "full_view_name ::= view_name", + /* 398 */ "full_view_name ::= db_name NK_DOT view_name", + /* 399 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery", + /* 400 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 401 */ "cmd ::= PAUSE STREAM exists_opt stream_name", + /* 402 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", + /* 403 */ "col_list_opt ::=", + /* 404 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP", + /* 405 */ "column_stream_def_list ::= column_stream_def", + /* 406 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def", + /* 407 */ "column_stream_def ::= column_name stream_col_options", + /* 408 */ "stream_col_options ::=", + /* 409 */ "stream_col_options ::= stream_col_options PRIMARY KEY", + /* 410 */ "tag_def_or_ref_opt ::=", + /* 411 */ "tag_def_or_ref_opt ::= tags_def", + /* 412 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP", + /* 413 */ "stream_options ::=", + /* 414 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 415 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 416 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 417 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 418 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", + /* 419 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", + /* 420 */ "stream_options ::= stream_options DELETE_MARK duration_literal", + /* 421 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", + /* 422 */ "subtable_opt ::=", + /* 423 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", + /* 424 */ "ignore_opt ::=", + /* 425 */ "ignore_opt ::= IGNORE UNTREATED", + /* 426 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 427 */ "cmd ::= KILL QUERY NK_STRING", + /* 428 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 429 */ "cmd ::= KILL COMPACT NK_INTEGER", + /* 430 */ "cmd ::= BALANCE VGROUP", + /* 431 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", + /* 432 */ "cmd ::= BALANCE VGROUP LEADER DATABASE db_name", + /* 433 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 434 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 435 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 436 */ "on_vgroup_id ::=", + /* 437 */ "on_vgroup_id ::= ON NK_INTEGER", + /* 438 */ "dnode_list ::= DNODE NK_INTEGER", + /* 439 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 440 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 441 */ "cmd ::= query_or_subquery", + /* 442 */ "cmd ::= insert_query", + /* 443 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", + /* 444 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", + /* 445 */ "tags_literal ::= NK_INTEGER", + /* 446 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal", + /* 447 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal", + /* 448 */ "tags_literal ::= NK_PLUS NK_INTEGER", + /* 449 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal", + /* 450 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal", + /* 451 */ "tags_literal ::= NK_MINUS NK_INTEGER", + /* 452 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal", + /* 453 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal", + /* 454 */ "tags_literal ::= NK_FLOAT", + /* 455 */ "tags_literal ::= NK_PLUS NK_FLOAT", + /* 456 */ "tags_literal ::= NK_MINUS NK_FLOAT", + /* 457 */ "tags_literal ::= NK_BIN", + /* 458 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal", + /* 459 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal", + /* 460 */ "tags_literal ::= NK_PLUS NK_BIN", + /* 461 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal", + /* 462 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal", + /* 463 */ "tags_literal ::= NK_MINUS NK_BIN", + /* 464 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal", + /* 465 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal", + /* 466 */ "tags_literal ::= NK_HEX", + /* 467 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal", + /* 468 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal", + /* 469 */ "tags_literal ::= NK_PLUS NK_HEX", + /* 470 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal", + /* 471 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal", + /* 472 */ "tags_literal ::= NK_MINUS NK_HEX", + /* 473 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal", + /* 474 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal", + /* 475 */ "tags_literal ::= NK_STRING", + /* 476 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal", + /* 477 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal", + /* 478 */ "tags_literal ::= NK_BOOL", + /* 479 */ "tags_literal ::= NULL", + /* 480 */ "tags_literal ::= literal_func", + /* 481 */ "tags_literal ::= literal_func NK_PLUS duration_literal", + /* 482 */ "tags_literal ::= literal_func NK_MINUS duration_literal", + /* 483 */ "tags_literal_list ::= tags_literal", + /* 484 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal", + /* 485 */ "literal ::= NK_INTEGER", + /* 486 */ "literal ::= NK_FLOAT", + /* 487 */ "literal ::= NK_STRING", + /* 488 */ "literal ::= NK_BOOL", + /* 489 */ "literal ::= TIMESTAMP NK_STRING", + /* 490 */ "literal ::= duration_literal", + /* 491 */ "literal ::= NULL", + /* 492 */ "literal ::= NK_QUESTION", + /* 493 */ "duration_literal ::= NK_VARIABLE", + /* 494 */ "signed ::= NK_INTEGER", + /* 495 */ "signed ::= NK_PLUS NK_INTEGER", + /* 496 */ "signed ::= NK_MINUS NK_INTEGER", + /* 497 */ "signed ::= NK_FLOAT", + /* 498 */ "signed ::= NK_PLUS NK_FLOAT", + /* 499 */ "signed ::= NK_MINUS NK_FLOAT", + /* 500 */ "signed_literal ::= signed", + /* 501 */ "signed_literal ::= NK_STRING", + /* 502 */ "signed_literal ::= NK_BOOL", + /* 503 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 504 */ "signed_literal ::= duration_literal", + /* 505 */ "signed_literal ::= NULL", + /* 506 */ "signed_literal ::= literal_func", + /* 507 */ "signed_literal ::= NK_QUESTION", + /* 508 */ "literal_list ::= signed_literal", + /* 509 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 510 */ "db_name ::= NK_ID", + /* 511 */ "table_name ::= NK_ID", + /* 512 */ "column_name ::= NK_ID", + /* 513 */ "function_name ::= NK_ID", + /* 514 */ "view_name ::= NK_ID", + /* 515 */ "table_alias ::= NK_ID", + /* 516 */ "column_alias ::= NK_ID", + /* 517 */ "column_alias ::= NK_ALIAS", + /* 518 */ "user_name ::= NK_ID", + /* 519 */ "topic_name ::= NK_ID", + /* 520 */ "stream_name ::= NK_ID", + /* 521 */ "cgroup_name ::= NK_ID", + /* 522 */ "index_name ::= NK_ID", + /* 523 */ "tsma_name ::= NK_ID", + /* 524 */ "expr_or_subquery ::= expression", + /* 525 */ "expression ::= literal", + /* 526 */ "expression ::= pseudo_column", + /* 527 */ "expression ::= column_reference", + /* 528 */ "expression ::= function_expression", + /* 529 */ "expression ::= case_when_expression", + /* 530 */ "expression ::= NK_LP expression NK_RP", + /* 531 */ "expression ::= NK_PLUS expr_or_subquery", + /* 532 */ "expression ::= NK_MINUS expr_or_subquery", + /* 533 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", + /* 534 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", + /* 535 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", + /* 536 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", + /* 537 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", + /* 538 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 539 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", + /* 540 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", + /* 541 */ "expression_list ::= expr_or_subquery", + /* 542 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", + /* 543 */ "column_reference ::= column_name", + /* 544 */ "column_reference ::= table_name NK_DOT column_name", + /* 545 */ "column_reference ::= NK_ALIAS", + /* 546 */ "column_reference ::= table_name NK_DOT NK_ALIAS", + /* 547 */ "pseudo_column ::= ROWTS", + /* 548 */ "pseudo_column ::= TBNAME", + /* 549 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 550 */ "pseudo_column ::= QSTART", + /* 551 */ "pseudo_column ::= QEND", + /* 552 */ "pseudo_column ::= QDURATION", + /* 553 */ "pseudo_column ::= WSTART", + /* 554 */ "pseudo_column ::= WEND", + /* 555 */ "pseudo_column ::= WDURATION", + /* 556 */ "pseudo_column ::= IROWTS", + /* 557 */ "pseudo_column ::= ISFILLED", + /* 558 */ "pseudo_column ::= QTAGS", + /* 559 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 560 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 561 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", + /* 562 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP", + /* 563 */ "function_expression ::= literal_func", + /* 564 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 565 */ "literal_func ::= NOW", + /* 566 */ "literal_func ::= TODAY", + /* 567 */ "noarg_func ::= NOW", + /* 568 */ "noarg_func ::= TODAY", + /* 569 */ "noarg_func ::= TIMEZONE", + /* 570 */ "noarg_func ::= DATABASE", + /* 571 */ "noarg_func ::= CLIENT_VERSION", + /* 572 */ "noarg_func ::= SERVER_VERSION", + /* 573 */ "noarg_func ::= SERVER_STATUS", + /* 574 */ "noarg_func ::= CURRENT_USER", + /* 575 */ "noarg_func ::= USER", + /* 576 */ "star_func ::= COUNT", + /* 577 */ "star_func ::= FIRST", + /* 578 */ "star_func ::= LAST", + /* 579 */ "star_func ::= LAST_ROW", + /* 580 */ "star_func_para_list ::= NK_STAR", + /* 581 */ "star_func_para_list ::= other_para_list", + /* 582 */ "other_para_list ::= star_func_para", + /* 583 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 584 */ "star_func_para ::= expr_or_subquery", + /* 585 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 586 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", + /* 587 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", + /* 588 */ "when_then_list ::= when_then_expr", + /* 589 */ "when_then_list ::= when_then_list when_then_expr", + /* 590 */ "when_then_expr ::= WHEN common_expression THEN common_expression", + /* 591 */ "case_when_else_opt ::=", + /* 592 */ "case_when_else_opt ::= ELSE common_expression", + /* 593 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", + /* 594 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", + /* 595 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", + /* 596 */ "predicate ::= expr_or_subquery IS NULL", + /* 597 */ "predicate ::= expr_or_subquery IS NOT NULL", + /* 598 */ "predicate ::= expr_or_subquery in_op in_predicate_value", + /* 599 */ "compare_op ::= NK_LT", + /* 600 */ "compare_op ::= NK_GT", + /* 601 */ "compare_op ::= NK_LE", + /* 602 */ "compare_op ::= NK_GE", + /* 603 */ "compare_op ::= NK_NE", + /* 604 */ "compare_op ::= NK_EQ", + /* 605 */ "compare_op ::= LIKE", + /* 606 */ "compare_op ::= NOT LIKE", + /* 607 */ "compare_op ::= MATCH", + /* 608 */ "compare_op ::= NMATCH", + /* 609 */ "compare_op ::= CONTAINS", + /* 610 */ "in_op ::= IN", + /* 611 */ "in_op ::= NOT IN", + /* 612 */ "in_predicate_value ::= NK_LP literal_list NK_RP", + /* 613 */ "boolean_value_expression ::= boolean_primary", + /* 614 */ "boolean_value_expression ::= NOT boolean_primary", + /* 615 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 616 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 617 */ "boolean_primary ::= predicate", + /* 618 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 619 */ "common_expression ::= expr_or_subquery", + /* 620 */ "common_expression ::= boolean_value_expression", + /* 621 */ "from_clause_opt ::=", + /* 622 */ "from_clause_opt ::= FROM table_reference_list", + /* 623 */ "table_reference_list ::= table_reference", + /* 624 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 625 */ "table_reference ::= table_primary", + /* 626 */ "table_reference ::= joined_table", + /* 627 */ "table_primary ::= table_name alias_opt", + /* 628 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 629 */ "table_primary ::= subquery alias_opt", + /* 630 */ "table_primary ::= parenthesized_joined_table", + /* 631 */ "alias_opt ::=", + /* 632 */ "alias_opt ::= table_alias", + /* 633 */ "alias_opt ::= AS table_alias", + /* 634 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 635 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 636 */ "joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt", + /* 637 */ "join_type ::=", + /* 638 */ "join_type ::= INNER", + /* 639 */ "join_type ::= LEFT", + /* 640 */ "join_type ::= RIGHT", + /* 641 */ "join_type ::= FULL", + /* 642 */ "join_subtype ::=", + /* 643 */ "join_subtype ::= OUTER", + /* 644 */ "join_subtype ::= SEMI", + /* 645 */ "join_subtype ::= ANTI", + /* 646 */ "join_subtype ::= ASOF", + /* 647 */ "join_subtype ::= WINDOW", + /* 648 */ "join_on_clause_opt ::=", + /* 649 */ "join_on_clause_opt ::= ON search_condition", + /* 650 */ "window_offset_clause_opt ::=", + /* 651 */ "window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP", + /* 652 */ "window_offset_literal ::= NK_VARIABLE", + /* 653 */ "window_offset_literal ::= NK_MINUS NK_VARIABLE", + /* 654 */ "jlimit_clause_opt ::=", + /* 655 */ "jlimit_clause_opt ::= JLIMIT NK_INTEGER", + /* 656 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 657 */ "hint_list ::=", + /* 658 */ "hint_list ::= NK_HINT", + /* 659 */ "tag_mode_opt ::=", + /* 660 */ "tag_mode_opt ::= TAGS", + /* 661 */ "set_quantifier_opt ::=", + /* 662 */ "set_quantifier_opt ::= DISTINCT", + /* 663 */ "set_quantifier_opt ::= ALL", + /* 664 */ "select_list ::= select_item", + /* 665 */ "select_list ::= select_list NK_COMMA select_item", + /* 666 */ "select_item ::= NK_STAR", + /* 667 */ "select_item ::= common_expression", + /* 668 */ "select_item ::= common_expression column_alias", + /* 669 */ "select_item ::= common_expression AS column_alias", + /* 670 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 671 */ "where_clause_opt ::=", + /* 672 */ "where_clause_opt ::= WHERE search_condition", + /* 673 */ "partition_by_clause_opt ::=", + /* 674 */ "partition_by_clause_opt ::= PARTITION BY partition_list", + /* 675 */ "partition_list ::= partition_item", + /* 676 */ "partition_list ::= partition_list NK_COMMA partition_item", + /* 677 */ "partition_item ::= expr_or_subquery", + /* 678 */ "partition_item ::= expr_or_subquery column_alias", + /* 679 */ "partition_item ::= expr_or_subquery AS column_alias", + /* 680 */ "twindow_clause_opt ::=", + /* 681 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", + /* 682 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", + /* 683 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 684 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 685 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", + /* 686 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", + /* 687 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 688 */ "sliding_opt ::=", + /* 689 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", + /* 690 */ "interval_sliding_duration_literal ::= NK_VARIABLE", + /* 691 */ "interval_sliding_duration_literal ::= NK_STRING", + /* 692 */ "interval_sliding_duration_literal ::= NK_INTEGER", + /* 693 */ "fill_opt ::=", + /* 694 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 695 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", + /* 696 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", + /* 697 */ "fill_mode ::= NONE", + /* 698 */ "fill_mode ::= PREV", + /* 699 */ "fill_mode ::= NULL", + /* 700 */ "fill_mode ::= NULL_F", + /* 701 */ "fill_mode ::= LINEAR", + /* 702 */ "fill_mode ::= NEXT", + /* 703 */ "group_by_clause_opt ::=", + /* 704 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 705 */ "group_by_list ::= expr_or_subquery", + /* 706 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", + /* 707 */ "having_clause_opt ::=", + /* 708 */ "having_clause_opt ::= HAVING search_condition", + /* 709 */ "range_opt ::=", + /* 710 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", + /* 711 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", + /* 712 */ "every_opt ::=", + /* 713 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 714 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 715 */ "query_simple ::= query_specification", + /* 716 */ "query_simple ::= union_query_expression", + /* 717 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", + /* 718 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", + /* 719 */ "query_simple_or_subquery ::= query_simple", + /* 720 */ "query_simple_or_subquery ::= subquery", + /* 721 */ "query_or_subquery ::= query_expression", + /* 722 */ "query_or_subquery ::= subquery", + /* 723 */ "order_by_clause_opt ::=", + /* 724 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 725 */ "slimit_clause_opt ::=", + /* 726 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 727 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 728 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 729 */ "limit_clause_opt ::=", + /* 730 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 731 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 732 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 733 */ "subquery ::= NK_LP query_expression NK_RP", + /* 734 */ "subquery ::= NK_LP subquery NK_RP", + /* 735 */ "search_condition ::= common_expression", + /* 736 */ "sort_specification_list ::= sort_specification", + /* 737 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 738 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", + /* 739 */ "ordering_specification_opt ::=", + /* 740 */ "ordering_specification_opt ::= ASC", + /* 741 */ "ordering_specification_opt ::= DESC", + /* 742 */ "null_ordering_opt ::=", + /* 743 */ "null_ordering_opt ::= NULLS FIRST", + /* 744 */ "null_ordering_opt ::= NULLS LAST", + /* 745 */ "column_options ::=", + /* 746 */ "column_options ::= column_options PRIMARY KEY", + /* 747 */ "column_options ::= column_options ENCODE NK_STRING", + /* 748 */ "column_options ::= column_options COMPRESS NK_STRING", + /* 749 */ "column_options ::= column_options LEVEL NK_STRING", }; #endif /* NDEBUG */ @@ -3466,91 +3406,92 @@ static void yy_destructor( case 422: /* column_options */ case 423: /* tags_literal */ case 424: /* create_subtable_clause */ - case 427: /* drop_table_clause */ - case 430: /* tag_def */ - case 431: /* column_def */ - case 436: /* duration_literal */ - case 437: /* rollup_func_name */ - case 439: /* col_name */ - case 442: /* like_pattern_opt */ - case 443: /* db_name_cond_opt */ - case 444: /* table_name_cond */ - case 445: /* from_db_opt */ - case 448: /* tag_item */ - case 452: /* full_tsma_name */ - case 454: /* index_options */ - case 455: /* full_index_name */ - case 457: /* sliding_opt */ - case 458: /* sma_stream_opt */ - case 459: /* func */ - case 463: /* query_or_subquery */ - case 464: /* where_clause_opt */ - case 467: /* explain_options */ - case 468: /* insert_query */ - case 473: /* full_view_name */ - case 476: /* stream_options */ - case 479: /* subtable_opt */ - case 482: /* column_stream_def */ - case 483: /* stream_col_options */ - case 484: /* expression */ - case 487: /* literal_func */ - case 488: /* signed_literal */ - case 491: /* expr_or_subquery */ - case 492: /* pseudo_column */ - case 493: /* column_reference */ - case 494: /* function_expression */ - case 495: /* case_when_expression */ - case 500: /* star_func_para */ - case 502: /* case_when_else_opt */ - case 503: /* common_expression */ - case 504: /* when_then_expr */ - case 505: /* predicate */ - case 508: /* in_predicate_value */ - case 509: /* boolean_value_expression */ - case 510: /* boolean_primary */ - case 511: /* from_clause_opt */ - case 512: /* table_reference_list */ - case 513: /* table_reference */ - case 514: /* table_primary */ - case 515: /* joined_table */ - case 517: /* subquery */ - case 518: /* parenthesized_joined_table */ - case 521: /* join_on_clause_opt */ - case 522: /* window_offset_clause_opt */ - case 523: /* jlimit_clause_opt */ - case 524: /* window_offset_literal */ - case 525: /* query_specification */ - case 531: /* range_opt */ - case 532: /* every_opt */ - case 533: /* fill_opt */ - case 534: /* twindow_clause_opt */ - case 536: /* having_clause_opt */ - case 537: /* select_item */ - case 539: /* partition_item */ - case 540: /* interval_sliding_duration_literal */ - case 543: /* query_expression */ - case 544: /* query_simple */ - case 546: /* slimit_clause_opt */ - case 547: /* limit_clause_opt */ - case 548: /* union_query_expression */ - case 549: /* query_simple_or_subquery */ - case 551: /* sort_specification */ + case 425: /* create_from_file_clause */ + case 429: /* drop_table_clause */ + case 432: /* tag_def */ + case 433: /* column_def */ + case 438: /* duration_literal */ + case 439: /* rollup_func_name */ + case 441: /* col_name */ + case 444: /* like_pattern_opt */ + case 445: /* db_name_cond_opt */ + case 446: /* table_name_cond */ + case 447: /* from_db_opt */ + case 449: /* tag_item */ + case 453: /* full_tsma_name */ + case 455: /* index_options */ + case 456: /* full_index_name */ + case 458: /* sliding_opt */ + case 459: /* sma_stream_opt */ + case 460: /* func */ + case 464: /* query_or_subquery */ + case 465: /* where_clause_opt */ + case 468: /* explain_options */ + case 469: /* insert_query */ + case 474: /* full_view_name */ + case 477: /* stream_options */ + case 480: /* subtable_opt */ + case 483: /* column_stream_def */ + case 484: /* stream_col_options */ + case 485: /* expression */ + case 488: /* literal_func */ + case 489: /* signed_literal */ + case 492: /* expr_or_subquery */ + case 493: /* pseudo_column */ + case 494: /* column_reference */ + case 495: /* function_expression */ + case 496: /* case_when_expression */ + case 501: /* star_func_para */ + case 503: /* case_when_else_opt */ + case 504: /* common_expression */ + case 505: /* when_then_expr */ + case 506: /* predicate */ + case 509: /* in_predicate_value */ + case 510: /* boolean_value_expression */ + case 511: /* boolean_primary */ + case 512: /* from_clause_opt */ + case 513: /* table_reference_list */ + case 514: /* table_reference */ + case 515: /* table_primary */ + case 516: /* joined_table */ + case 518: /* subquery */ + case 519: /* parenthesized_joined_table */ + case 522: /* join_on_clause_opt */ + case 523: /* window_offset_clause_opt */ + case 524: /* jlimit_clause_opt */ + case 525: /* window_offset_literal */ + case 526: /* query_specification */ + case 532: /* range_opt */ + case 533: /* every_opt */ + case 534: /* fill_opt */ + case 535: /* twindow_clause_opt */ + case 537: /* having_clause_opt */ + case 538: /* select_item */ + case 540: /* partition_item */ + case 541: /* interval_sliding_duration_literal */ + case 544: /* query_expression */ + case 545: /* query_simple */ + case 547: /* slimit_clause_opt */ + case 548: /* limit_clause_opt */ + case 549: /* union_query_expression */ + case 550: /* query_simple_or_subquery */ + case 552: /* sort_specification */ { #line 7 "sql.y" - nodesDestroyNode((yypminor->yy600)); -#line 3541 "sql.c" + nodesDestroyNode((yypminor->yy452)); +#line 3482 "sql.c" } break; case 377: /* account_options */ case 378: /* alter_account_options */ case 380: /* alter_account_option */ case 402: /* speed_opt */ - case 462: /* with_meta */ - case 471: /* bufsize_opt */ + case 463: /* with_meta */ + case 472: /* bufsize_opt */ { #line 54 "sql.y" -#line 3553 "sql.c" +#line 3494 "sql.c" } break; case 381: /* ip_range_list */ @@ -3564,35 +3505,35 @@ static void yy_destructor( case 415: /* multi_create_clause */ case 416: /* tags_def */ case 417: /* multi_drop_clause */ - case 425: /* specific_cols_opt */ - case 426: /* tags_literal_list */ - case 428: /* col_name_list */ - case 429: /* tag_def_list */ - case 433: /* duration_list */ - case 434: /* rollup_func_list */ - case 446: /* tag_list_opt */ - case 453: /* func_list */ - case 461: /* expression_list */ - case 477: /* col_list_opt */ - case 478: /* tag_def_or_ref_opt */ - case 481: /* column_stream_def_list */ - case 486: /* dnode_list */ - case 489: /* literal_list */ - case 497: /* star_func_para_list */ - case 499: /* other_para_list */ - case 501: /* when_then_list */ - case 526: /* hint_list */ - case 529: /* select_list */ - case 530: /* partition_by_clause_opt */ - case 535: /* group_by_clause_opt */ - case 538: /* partition_list */ - case 542: /* group_by_list */ - case 545: /* order_by_clause_opt */ - case 550: /* sort_specification_list */ + case 426: /* specific_cols_opt */ + case 427: /* tags_literal_list */ + case 428: /* tag_list_opt */ + case 430: /* col_name_list */ + case 431: /* tag_def_list */ + case 435: /* duration_list */ + case 436: /* rollup_func_list */ + case 454: /* func_list */ + case 462: /* expression_list */ + case 478: /* col_list_opt */ + case 479: /* tag_def_or_ref_opt */ + case 482: /* column_stream_def_list */ + case 487: /* dnode_list */ + case 490: /* literal_list */ + case 498: /* star_func_para_list */ + case 500: /* other_para_list */ + case 502: /* when_then_list */ + case 527: /* hint_list */ + case 530: /* select_list */ + case 531: /* partition_by_clause_opt */ + case 536: /* group_by_clause_opt */ + case 539: /* partition_list */ + case 543: /* group_by_list */ + case 546: /* order_by_clause_opt */ + case 551: /* sort_specification_list */ { #line 85 "sql.y" - nodesDestroyList((yypminor->yy748)); -#line 3595 "sql.c" + nodesDestroyList((yypminor->yy34)); +#line 3536 "sql.c" } break; case 384: /* user_name */ @@ -3601,31 +3542,31 @@ static void yy_destructor( case 393: /* topic_name */ case 395: /* dnode_endpoint */ case 420: /* column_name */ - case 438: /* function_name */ - case 449: /* column_alias */ - case 450: /* tsma_name */ - case 456: /* index_name */ - case 460: /* sma_func_name */ - case 465: /* cgroup_name */ - case 472: /* language_opt */ - case 474: /* view_name */ - case 475: /* stream_name */ - case 485: /* on_vgroup_id */ - case 490: /* table_alias */ - case 496: /* star_func */ - case 498: /* noarg_func */ - case 516: /* alias_opt */ + case 440: /* function_name */ + case 450: /* column_alias */ + case 451: /* tsma_name */ + case 457: /* index_name */ + case 461: /* sma_func_name */ + case 466: /* cgroup_name */ + case 473: /* language_opt */ + case 475: /* view_name */ + case 476: /* stream_name */ + case 486: /* on_vgroup_id */ + case 491: /* table_alias */ + case 497: /* star_func */ + case 499: /* noarg_func */ + case 517: /* alias_opt */ { -#line 1069 "sql.y" +#line 1073 "sql.y" -#line 3621 "sql.c" +#line 3562 "sql.c" } break; case 385: /* sysinfo_opt */ { #line 112 "sql.y" -#line 3628 "sql.c" +#line 3569 "sql.c" } break; case 386: /* privileges */ @@ -3634,111 +3575,111 @@ static void yy_destructor( { #line 121 "sql.y" -#line 3637 "sql.c" +#line 3578 "sql.c" } break; case 387: /* priv_level */ { #line 138 "sql.y" -#line 3644 "sql.c" +#line 3585 "sql.c" } break; case 396: /* force_opt */ case 397: /* unsafe_opt */ case 398: /* not_exists_opt */ case 400: /* exists_opt */ - case 466: /* analyze_opt */ - case 469: /* or_replace_opt */ - case 470: /* agg_func_opt */ - case 480: /* ignore_opt */ - case 527: /* set_quantifier_opt */ - case 528: /* tag_mode_opt */ + case 467: /* analyze_opt */ + case 470: /* or_replace_opt */ + case 471: /* agg_func_opt */ + case 481: /* ignore_opt */ + case 528: /* set_quantifier_opt */ + case 529: /* tag_mode_opt */ { #line 170 "sql.y" -#line 3660 "sql.c" +#line 3601 "sql.c" } break; case 409: /* alter_db_option */ - case 435: /* alter_table_option */ + case 437: /* alter_table_option */ { #line 278 "sql.y" +#line 3609 "sql.c" +} + break; + case 421: /* type_name */ + case 434: /* type_name_default_len */ +{ +#line 417 "sql.y" + +#line 3617 "sql.c" +} + break; + case 442: /* db_kind_opt */ + case 448: /* table_kind */ +{ +#line 595 "sql.y" + +#line 3625 "sql.c" +} + break; + case 443: /* table_kind_db_name_cond_opt */ +{ +#line 560 "sql.y" + +#line 3632 "sql.c" +} + break; + case 452: /* tsma_func_list */ +{ +#line 614 "sql.y" + nodesDestroyNode((yypminor->yy452)); +#line 3639 "sql.c" +} + break; + case 507: /* compare_op */ + case 508: /* in_op */ +{ +#line 1271 "sql.y" + +#line 3647 "sql.c" +} + break; + case 520: /* join_type */ +{ +#line 1352 "sql.y" + +#line 3654 "sql.c" +} + break; + case 521: /* join_subtype */ +{ +#line 1360 "sql.y" + +#line 3661 "sql.c" +} + break; + case 542: /* fill_mode */ +{ +#line 1476 "sql.y" + #line 3668 "sql.c" } break; - case 421: /* type_name */ - case 432: /* type_name_default_len */ + case 553: /* ordering_specification_opt */ { -#line 413 "sql.y" +#line 1561 "sql.y" -#line 3676 "sql.c" +#line 3675 "sql.c" } break; - case 440: /* db_kind_opt */ - case 447: /* table_kind */ + case 554: /* null_ordering_opt */ { -#line 591 "sql.y" +#line 1567 "sql.y" -#line 3684 "sql.c" -} - break; - case 441: /* table_kind_db_name_cond_opt */ -{ -#line 556 "sql.y" - -#line 3691 "sql.c" -} - break; - case 451: /* tsma_func_list */ -{ -#line 610 "sql.y" - nodesDestroyNode((yypminor->yy600)); -#line 3698 "sql.c" -} - break; - case 506: /* compare_op */ - case 507: /* in_op */ -{ -#line 1267 "sql.y" - -#line 3706 "sql.c" -} - break; - case 519: /* join_type */ -{ -#line 1348 "sql.y" - -#line 3713 "sql.c" -} - break; - case 520: /* join_subtype */ -{ -#line 1356 "sql.y" - -#line 3720 "sql.c" -} - break; - case 541: /* fill_mode */ -{ -#line 1472 "sql.y" - -#line 3727 "sql.c" -} - break; - case 552: /* ordering_specification_opt */ -{ -#line 1557 "sql.y" - -#line 3734 "sql.c" -} - break; - case 553: /* null_ordering_opt */ -{ -#line 1563 "sql.y" - -#line 3741 "sql.c" +#line 3682 "sql.c" } break; /********* End destructor definitions *****************************************/ @@ -4223,558 +4164,560 @@ static const YYCODETYPE yyRuleInfoLhs[] = { 418, /* (193) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ 415, /* (194) multi_create_clause ::= create_subtable_clause */ 415, /* (195) multi_create_clause ::= multi_create_clause create_subtable_clause */ - 424, /* (196) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ - 417, /* (197) multi_drop_clause ::= drop_table_clause */ - 417, /* (198) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ - 427, /* (199) drop_table_clause ::= exists_opt full_table_name */ - 425, /* (200) specific_cols_opt ::= */ - 425, /* (201) specific_cols_opt ::= NK_LP col_name_list NK_RP */ - 411, /* (202) full_table_name ::= table_name */ - 411, /* (203) full_table_name ::= db_name NK_DOT table_name */ - 429, /* (204) tag_def_list ::= tag_def */ - 429, /* (205) tag_def_list ::= tag_def_list NK_COMMA tag_def */ - 430, /* (206) tag_def ::= column_name type_name */ - 412, /* (207) column_def_list ::= column_def */ - 412, /* (208) column_def_list ::= column_def_list NK_COMMA column_def */ - 431, /* (209) column_def ::= column_name type_name column_options */ - 421, /* (210) type_name ::= BOOL */ - 421, /* (211) type_name ::= TINYINT */ - 421, /* (212) type_name ::= SMALLINT */ - 421, /* (213) type_name ::= INT */ - 421, /* (214) type_name ::= INTEGER */ - 421, /* (215) type_name ::= BIGINT */ - 421, /* (216) type_name ::= FLOAT */ - 421, /* (217) type_name ::= DOUBLE */ - 421, /* (218) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - 421, /* (219) type_name ::= TIMESTAMP */ - 421, /* (220) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - 421, /* (221) type_name ::= TINYINT UNSIGNED */ - 421, /* (222) type_name ::= SMALLINT UNSIGNED */ - 421, /* (223) type_name ::= INT UNSIGNED */ - 421, /* (224) type_name ::= BIGINT UNSIGNED */ - 421, /* (225) type_name ::= JSON */ - 421, /* (226) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - 421, /* (227) type_name ::= MEDIUMBLOB */ - 421, /* (228) type_name ::= BLOB */ - 421, /* (229) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - 421, /* (230) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ - 421, /* (231) type_name ::= DECIMAL */ - 421, /* (232) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - 421, /* (233) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 432, /* (234) type_name_default_len ::= BINARY */ - 432, /* (235) type_name_default_len ::= NCHAR */ - 432, /* (236) type_name_default_len ::= VARCHAR */ - 432, /* (237) type_name_default_len ::= VARBINARY */ - 413, /* (238) tags_def_opt ::= */ - 413, /* (239) tags_def_opt ::= tags_def */ - 416, /* (240) tags_def ::= TAGS NK_LP tag_def_list NK_RP */ - 414, /* (241) table_options ::= */ - 414, /* (242) table_options ::= table_options COMMENT NK_STRING */ - 414, /* (243) table_options ::= table_options MAX_DELAY duration_list */ - 414, /* (244) table_options ::= table_options WATERMARK duration_list */ - 414, /* (245) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - 414, /* (246) table_options ::= table_options TTL NK_INTEGER */ - 414, /* (247) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - 414, /* (248) table_options ::= table_options DELETE_MARK duration_list */ - 419, /* (249) alter_table_options ::= alter_table_option */ - 419, /* (250) alter_table_options ::= alter_table_options alter_table_option */ - 435, /* (251) alter_table_option ::= COMMENT NK_STRING */ - 435, /* (252) alter_table_option ::= TTL NK_INTEGER */ - 433, /* (253) duration_list ::= duration_literal */ - 433, /* (254) duration_list ::= duration_list NK_COMMA duration_literal */ - 434, /* (255) rollup_func_list ::= rollup_func_name */ - 434, /* (256) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - 437, /* (257) rollup_func_name ::= function_name */ - 437, /* (258) rollup_func_name ::= FIRST */ - 437, /* (259) rollup_func_name ::= LAST */ - 428, /* (260) col_name_list ::= col_name */ - 428, /* (261) col_name_list ::= col_name_list NK_COMMA col_name */ - 439, /* (262) col_name ::= column_name */ - 376, /* (263) cmd ::= SHOW DNODES */ - 376, /* (264) cmd ::= SHOW USERS */ - 376, /* (265) cmd ::= SHOW USER PRIVILEGES */ - 376, /* (266) cmd ::= SHOW db_kind_opt DATABASES */ - 376, /* (267) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ - 376, /* (268) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - 376, /* (269) cmd ::= SHOW db_name_cond_opt VGROUPS */ - 376, /* (270) cmd ::= SHOW MNODES */ - 376, /* (271) cmd ::= SHOW QNODES */ - 376, /* (272) cmd ::= SHOW ARBGROUPS */ - 376, /* (273) cmd ::= SHOW FUNCTIONS */ - 376, /* (274) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - 376, /* (275) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - 376, /* (276) cmd ::= SHOW STREAMS */ - 376, /* (277) cmd ::= SHOW ACCOUNTS */ - 376, /* (278) cmd ::= SHOW APPS */ - 376, /* (279) cmd ::= SHOW CONNECTIONS */ - 376, /* (280) cmd ::= SHOW LICENCES */ - 376, /* (281) cmd ::= SHOW GRANTS */ - 376, /* (282) cmd ::= SHOW GRANTS FULL */ - 376, /* (283) cmd ::= SHOW GRANTS LOGS */ - 376, /* (284) cmd ::= SHOW CLUSTER MACHINES */ - 376, /* (285) cmd ::= SHOW CREATE DATABASE db_name */ - 376, /* (286) cmd ::= SHOW CREATE TABLE full_table_name */ - 376, /* (287) cmd ::= SHOW CREATE STABLE full_table_name */ - 376, /* (288) cmd ::= SHOW ENCRYPTIONS */ - 376, /* (289) cmd ::= SHOW QUERIES */ - 376, /* (290) cmd ::= SHOW SCORES */ - 376, /* (291) cmd ::= SHOW TOPICS */ - 376, /* (292) cmd ::= SHOW VARIABLES */ - 376, /* (293) cmd ::= SHOW CLUSTER VARIABLES */ - 376, /* (294) cmd ::= SHOW LOCAL VARIABLES */ - 376, /* (295) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - 376, /* (296) cmd ::= SHOW BNODES */ - 376, /* (297) cmd ::= SHOW SNODES */ - 376, /* (298) cmd ::= SHOW CLUSTER */ - 376, /* (299) cmd ::= SHOW TRANSACTIONS */ - 376, /* (300) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - 376, /* (301) cmd ::= SHOW CONSUMERS */ - 376, /* (302) cmd ::= SHOW SUBSCRIPTIONS */ - 376, /* (303) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - 376, /* (304) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - 376, /* (305) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - 376, /* (306) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - 376, /* (307) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ - 376, /* (308) cmd ::= SHOW VNODES */ - 376, /* (309) cmd ::= SHOW db_name_cond_opt ALIVE */ - 376, /* (310) cmd ::= SHOW CLUSTER ALIVE */ - 376, /* (311) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ - 376, /* (312) cmd ::= SHOW CREATE VIEW full_table_name */ - 376, /* (313) cmd ::= SHOW COMPACTS */ - 376, /* (314) cmd ::= SHOW COMPACT NK_INTEGER */ - 441, /* (315) table_kind_db_name_cond_opt ::= */ - 441, /* (316) table_kind_db_name_cond_opt ::= table_kind */ - 441, /* (317) table_kind_db_name_cond_opt ::= db_name NK_DOT */ - 441, /* (318) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ - 447, /* (319) table_kind ::= NORMAL */ - 447, /* (320) table_kind ::= CHILD */ - 443, /* (321) db_name_cond_opt ::= */ - 443, /* (322) db_name_cond_opt ::= db_name NK_DOT */ - 442, /* (323) like_pattern_opt ::= */ - 442, /* (324) like_pattern_opt ::= LIKE NK_STRING */ - 444, /* (325) table_name_cond ::= table_name */ - 445, /* (326) from_db_opt ::= */ - 445, /* (327) from_db_opt ::= FROM db_name */ - 446, /* (328) tag_list_opt ::= */ - 446, /* (329) tag_list_opt ::= tag_item */ - 446, /* (330) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - 448, /* (331) tag_item ::= TBNAME */ - 448, /* (332) tag_item ::= QTAGS */ - 448, /* (333) tag_item ::= column_name */ - 448, /* (334) tag_item ::= column_name column_alias */ - 448, /* (335) tag_item ::= column_name AS column_alias */ - 440, /* (336) db_kind_opt ::= */ - 440, /* (337) db_kind_opt ::= USER */ - 440, /* (338) db_kind_opt ::= SYSTEM */ - 376, /* (339) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ - 376, /* (340) cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ - 376, /* (341) cmd ::= DROP TSMA exists_opt full_tsma_name */ - 376, /* (342) cmd ::= SHOW db_name_cond_opt TSMAS */ - 452, /* (343) full_tsma_name ::= tsma_name */ - 452, /* (344) full_tsma_name ::= db_name NK_DOT tsma_name */ - 451, /* (345) tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ - 376, /* (346) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ - 376, /* (347) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ - 376, /* (348) cmd ::= DROP INDEX exists_opt full_index_name */ - 455, /* (349) full_index_name ::= index_name */ - 455, /* (350) full_index_name ::= db_name NK_DOT index_name */ - 454, /* (351) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - 454, /* (352) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ - 453, /* (353) func_list ::= func */ - 453, /* (354) func_list ::= func_list NK_COMMA func */ - 459, /* (355) func ::= sma_func_name NK_LP expression_list NK_RP */ - 460, /* (356) sma_func_name ::= function_name */ - 460, /* (357) sma_func_name ::= COUNT */ - 460, /* (358) sma_func_name ::= FIRST */ - 460, /* (359) sma_func_name ::= LAST */ - 460, /* (360) sma_func_name ::= LAST_ROW */ - 458, /* (361) sma_stream_opt ::= */ - 458, /* (362) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - 458, /* (363) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - 458, /* (364) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - 462, /* (365) with_meta ::= AS */ - 462, /* (366) with_meta ::= WITH META AS */ - 462, /* (367) with_meta ::= ONLY META AS */ - 376, /* (368) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - 376, /* (369) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - 376, /* (370) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - 376, /* (371) cmd ::= DROP TOPIC exists_opt topic_name */ - 376, /* (372) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - 376, /* (373) cmd ::= DESC full_table_name */ - 376, /* (374) cmd ::= DESCRIBE full_table_name */ - 376, /* (375) cmd ::= RESET QUERY CACHE */ - 376, /* (376) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - 376, /* (377) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 466, /* (378) analyze_opt ::= */ - 466, /* (379) analyze_opt ::= ANALYZE */ - 467, /* (380) explain_options ::= */ - 467, /* (381) explain_options ::= explain_options VERBOSE NK_BOOL */ - 467, /* (382) explain_options ::= explain_options RATIO NK_FLOAT */ - 376, /* (383) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - 376, /* (384) cmd ::= DROP FUNCTION exists_opt function_name */ - 470, /* (385) agg_func_opt ::= */ - 470, /* (386) agg_func_opt ::= AGGREGATE */ - 471, /* (387) bufsize_opt ::= */ - 471, /* (388) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 472, /* (389) language_opt ::= */ - 472, /* (390) language_opt ::= LANGUAGE NK_STRING */ - 469, /* (391) or_replace_opt ::= */ - 469, /* (392) or_replace_opt ::= OR REPLACE */ - 376, /* (393) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ - 376, /* (394) cmd ::= DROP VIEW exists_opt full_view_name */ - 473, /* (395) full_view_name ::= view_name */ - 473, /* (396) full_view_name ::= db_name NK_DOT view_name */ - 376, /* (397) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ - 376, /* (398) cmd ::= DROP STREAM exists_opt stream_name */ - 376, /* (399) cmd ::= PAUSE STREAM exists_opt stream_name */ - 376, /* (400) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 477, /* (401) col_list_opt ::= */ - 477, /* (402) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ - 481, /* (403) column_stream_def_list ::= column_stream_def */ - 481, /* (404) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ - 482, /* (405) column_stream_def ::= column_name stream_col_options */ - 483, /* (406) stream_col_options ::= */ - 483, /* (407) stream_col_options ::= stream_col_options PRIMARY KEY */ - 478, /* (408) tag_def_or_ref_opt ::= */ - 478, /* (409) tag_def_or_ref_opt ::= tags_def */ - 478, /* (410) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ - 476, /* (411) stream_options ::= */ - 476, /* (412) stream_options ::= stream_options TRIGGER AT_ONCE */ - 476, /* (413) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - 476, /* (414) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - 476, /* (415) stream_options ::= stream_options WATERMARK duration_literal */ - 476, /* (416) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - 476, /* (417) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - 476, /* (418) stream_options ::= stream_options DELETE_MARK duration_literal */ - 476, /* (419) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 479, /* (420) subtable_opt ::= */ - 479, /* (421) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 480, /* (422) ignore_opt ::= */ - 480, /* (423) ignore_opt ::= IGNORE UNTREATED */ - 376, /* (424) cmd ::= KILL CONNECTION NK_INTEGER */ - 376, /* (425) cmd ::= KILL QUERY NK_STRING */ - 376, /* (426) cmd ::= KILL TRANSACTION NK_INTEGER */ - 376, /* (427) cmd ::= KILL COMPACT NK_INTEGER */ - 376, /* (428) cmd ::= BALANCE VGROUP */ - 376, /* (429) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ - 376, /* (430) cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ - 376, /* (431) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - 376, /* (432) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - 376, /* (433) cmd ::= SPLIT VGROUP NK_INTEGER */ - 485, /* (434) on_vgroup_id ::= */ - 485, /* (435) on_vgroup_id ::= ON NK_INTEGER */ - 486, /* (436) dnode_list ::= DNODE NK_INTEGER */ - 486, /* (437) dnode_list ::= dnode_list DNODE NK_INTEGER */ - 376, /* (438) cmd ::= DELETE FROM full_table_name where_clause_opt */ - 376, /* (439) cmd ::= query_or_subquery */ - 376, /* (440) cmd ::= insert_query */ - 468, /* (441) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - 468, /* (442) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - 423, /* (443) tags_literal ::= NK_INTEGER */ - 423, /* (444) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - 423, /* (445) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ - 423, /* (446) tags_literal ::= NK_PLUS NK_INTEGER */ - 423, /* (447) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - 423, /* (448) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ - 423, /* (449) tags_literal ::= NK_MINUS NK_INTEGER */ - 423, /* (450) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ - 423, /* (451) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ - 423, /* (452) tags_literal ::= NK_FLOAT */ - 423, /* (453) tags_literal ::= NK_PLUS NK_FLOAT */ - 423, /* (454) tags_literal ::= NK_MINUS NK_FLOAT */ - 423, /* (455) tags_literal ::= NK_BIN */ - 423, /* (456) tags_literal ::= NK_BIN NK_PLUS duration_literal */ - 423, /* (457) tags_literal ::= NK_BIN NK_MINUS duration_literal */ - 423, /* (458) tags_literal ::= NK_PLUS NK_BIN */ - 423, /* (459) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ - 423, /* (460) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ - 423, /* (461) tags_literal ::= NK_MINUS NK_BIN */ - 423, /* (462) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ - 423, /* (463) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ - 423, /* (464) tags_literal ::= NK_HEX */ - 423, /* (465) tags_literal ::= NK_HEX NK_PLUS duration_literal */ - 423, /* (466) tags_literal ::= NK_HEX NK_MINUS duration_literal */ - 423, /* (467) tags_literal ::= NK_PLUS NK_HEX */ - 423, /* (468) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ - 423, /* (469) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ - 423, /* (470) tags_literal ::= NK_MINUS NK_HEX */ - 423, /* (471) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ - 423, /* (472) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ - 423, /* (473) tags_literal ::= NK_STRING */ - 423, /* (474) tags_literal ::= NK_STRING NK_PLUS duration_literal */ - 423, /* (475) tags_literal ::= NK_STRING NK_MINUS duration_literal */ - 423, /* (476) tags_literal ::= NK_BOOL */ - 423, /* (477) tags_literal ::= NULL */ - 423, /* (478) tags_literal ::= literal_func */ - 423, /* (479) tags_literal ::= literal_func NK_PLUS duration_literal */ - 423, /* (480) tags_literal ::= literal_func NK_MINUS duration_literal */ - 426, /* (481) tags_literal_list ::= tags_literal */ - 426, /* (482) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ - 379, /* (483) literal ::= NK_INTEGER */ - 379, /* (484) literal ::= NK_FLOAT */ - 379, /* (485) literal ::= NK_STRING */ - 379, /* (486) literal ::= NK_BOOL */ - 379, /* (487) literal ::= TIMESTAMP NK_STRING */ - 379, /* (488) literal ::= duration_literal */ - 379, /* (489) literal ::= NULL */ - 379, /* (490) literal ::= NK_QUESTION */ - 436, /* (491) duration_literal ::= NK_VARIABLE */ - 408, /* (492) signed ::= NK_INTEGER */ - 408, /* (493) signed ::= NK_PLUS NK_INTEGER */ - 408, /* (494) signed ::= NK_MINUS NK_INTEGER */ - 408, /* (495) signed ::= NK_FLOAT */ - 408, /* (496) signed ::= NK_PLUS NK_FLOAT */ - 408, /* (497) signed ::= NK_MINUS NK_FLOAT */ - 488, /* (498) signed_literal ::= signed */ - 488, /* (499) signed_literal ::= NK_STRING */ - 488, /* (500) signed_literal ::= NK_BOOL */ - 488, /* (501) signed_literal ::= TIMESTAMP NK_STRING */ - 488, /* (502) signed_literal ::= duration_literal */ - 488, /* (503) signed_literal ::= NULL */ - 488, /* (504) signed_literal ::= literal_func */ - 488, /* (505) signed_literal ::= NK_QUESTION */ - 489, /* (506) literal_list ::= signed_literal */ - 489, /* (507) literal_list ::= literal_list NK_COMMA signed_literal */ - 391, /* (508) db_name ::= NK_ID */ - 392, /* (509) table_name ::= NK_ID */ - 420, /* (510) column_name ::= NK_ID */ - 438, /* (511) function_name ::= NK_ID */ - 474, /* (512) view_name ::= NK_ID */ - 490, /* (513) table_alias ::= NK_ID */ - 449, /* (514) column_alias ::= NK_ID */ - 449, /* (515) column_alias ::= NK_ALIAS */ - 384, /* (516) user_name ::= NK_ID */ - 393, /* (517) topic_name ::= NK_ID */ - 475, /* (518) stream_name ::= NK_ID */ - 465, /* (519) cgroup_name ::= NK_ID */ - 456, /* (520) index_name ::= NK_ID */ - 450, /* (521) tsma_name ::= NK_ID */ - 491, /* (522) expr_or_subquery ::= expression */ - 484, /* (523) expression ::= literal */ - 484, /* (524) expression ::= pseudo_column */ - 484, /* (525) expression ::= column_reference */ - 484, /* (526) expression ::= function_expression */ - 484, /* (527) expression ::= case_when_expression */ - 484, /* (528) expression ::= NK_LP expression NK_RP */ - 484, /* (529) expression ::= NK_PLUS expr_or_subquery */ - 484, /* (530) expression ::= NK_MINUS expr_or_subquery */ - 484, /* (531) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - 484, /* (532) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - 484, /* (533) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - 484, /* (534) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - 484, /* (535) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - 484, /* (536) expression ::= column_reference NK_ARROW NK_STRING */ - 484, /* (537) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - 484, /* (538) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - 461, /* (539) expression_list ::= expr_or_subquery */ - 461, /* (540) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - 493, /* (541) column_reference ::= column_name */ - 493, /* (542) column_reference ::= table_name NK_DOT column_name */ - 493, /* (543) column_reference ::= NK_ALIAS */ - 493, /* (544) column_reference ::= table_name NK_DOT NK_ALIAS */ - 492, /* (545) pseudo_column ::= ROWTS */ - 492, /* (546) pseudo_column ::= TBNAME */ - 492, /* (547) pseudo_column ::= table_name NK_DOT TBNAME */ - 492, /* (548) pseudo_column ::= QSTART */ - 492, /* (549) pseudo_column ::= QEND */ - 492, /* (550) pseudo_column ::= QDURATION */ - 492, /* (551) pseudo_column ::= WSTART */ - 492, /* (552) pseudo_column ::= WEND */ - 492, /* (553) pseudo_column ::= WDURATION */ - 492, /* (554) pseudo_column ::= IROWTS */ - 492, /* (555) pseudo_column ::= ISFILLED */ - 492, /* (556) pseudo_column ::= QTAGS */ - 494, /* (557) function_expression ::= function_name NK_LP expression_list NK_RP */ - 494, /* (558) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - 494, /* (559) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - 494, /* (560) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ - 494, /* (561) function_expression ::= literal_func */ - 487, /* (562) literal_func ::= noarg_func NK_LP NK_RP */ - 487, /* (563) literal_func ::= NOW */ - 487, /* (564) literal_func ::= TODAY */ - 498, /* (565) noarg_func ::= NOW */ - 498, /* (566) noarg_func ::= TODAY */ - 498, /* (567) noarg_func ::= TIMEZONE */ - 498, /* (568) noarg_func ::= DATABASE */ - 498, /* (569) noarg_func ::= CLIENT_VERSION */ - 498, /* (570) noarg_func ::= SERVER_VERSION */ - 498, /* (571) noarg_func ::= SERVER_STATUS */ - 498, /* (572) noarg_func ::= CURRENT_USER */ - 498, /* (573) noarg_func ::= USER */ - 496, /* (574) star_func ::= COUNT */ - 496, /* (575) star_func ::= FIRST */ - 496, /* (576) star_func ::= LAST */ - 496, /* (577) star_func ::= LAST_ROW */ - 497, /* (578) star_func_para_list ::= NK_STAR */ - 497, /* (579) star_func_para_list ::= other_para_list */ - 499, /* (580) other_para_list ::= star_func_para */ - 499, /* (581) other_para_list ::= other_para_list NK_COMMA star_func_para */ - 500, /* (582) star_func_para ::= expr_or_subquery */ - 500, /* (583) star_func_para ::= table_name NK_DOT NK_STAR */ - 495, /* (584) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - 495, /* (585) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - 501, /* (586) when_then_list ::= when_then_expr */ - 501, /* (587) when_then_list ::= when_then_list when_then_expr */ - 504, /* (588) when_then_expr ::= WHEN common_expression THEN common_expression */ - 502, /* (589) case_when_else_opt ::= */ - 502, /* (590) case_when_else_opt ::= ELSE common_expression */ - 505, /* (591) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - 505, /* (592) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - 505, /* (593) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - 505, /* (594) predicate ::= expr_or_subquery IS NULL */ - 505, /* (595) predicate ::= expr_or_subquery IS NOT NULL */ - 505, /* (596) predicate ::= expr_or_subquery in_op in_predicate_value */ - 506, /* (597) compare_op ::= NK_LT */ - 506, /* (598) compare_op ::= NK_GT */ - 506, /* (599) compare_op ::= NK_LE */ - 506, /* (600) compare_op ::= NK_GE */ - 506, /* (601) compare_op ::= NK_NE */ - 506, /* (602) compare_op ::= NK_EQ */ - 506, /* (603) compare_op ::= LIKE */ - 506, /* (604) compare_op ::= NOT LIKE */ - 506, /* (605) compare_op ::= MATCH */ - 506, /* (606) compare_op ::= NMATCH */ - 506, /* (607) compare_op ::= CONTAINS */ - 507, /* (608) in_op ::= IN */ - 507, /* (609) in_op ::= NOT IN */ - 508, /* (610) in_predicate_value ::= NK_LP literal_list NK_RP */ - 509, /* (611) boolean_value_expression ::= boolean_primary */ - 509, /* (612) boolean_value_expression ::= NOT boolean_primary */ - 509, /* (613) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - 509, /* (614) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - 510, /* (615) boolean_primary ::= predicate */ - 510, /* (616) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - 503, /* (617) common_expression ::= expr_or_subquery */ - 503, /* (618) common_expression ::= boolean_value_expression */ - 511, /* (619) from_clause_opt ::= */ - 511, /* (620) from_clause_opt ::= FROM table_reference_list */ - 512, /* (621) table_reference_list ::= table_reference */ - 512, /* (622) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - 513, /* (623) table_reference ::= table_primary */ - 513, /* (624) table_reference ::= joined_table */ - 514, /* (625) table_primary ::= table_name alias_opt */ - 514, /* (626) table_primary ::= db_name NK_DOT table_name alias_opt */ - 514, /* (627) table_primary ::= subquery alias_opt */ - 514, /* (628) table_primary ::= parenthesized_joined_table */ - 516, /* (629) alias_opt ::= */ - 516, /* (630) alias_opt ::= table_alias */ - 516, /* (631) alias_opt ::= AS table_alias */ - 518, /* (632) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - 518, /* (633) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - 515, /* (634) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ - 519, /* (635) join_type ::= */ - 519, /* (636) join_type ::= INNER */ - 519, /* (637) join_type ::= LEFT */ - 519, /* (638) join_type ::= RIGHT */ - 519, /* (639) join_type ::= FULL */ - 520, /* (640) join_subtype ::= */ - 520, /* (641) join_subtype ::= OUTER */ - 520, /* (642) join_subtype ::= SEMI */ - 520, /* (643) join_subtype ::= ANTI */ - 520, /* (644) join_subtype ::= ASOF */ - 520, /* (645) join_subtype ::= WINDOW */ - 521, /* (646) join_on_clause_opt ::= */ - 521, /* (647) join_on_clause_opt ::= ON search_condition */ - 522, /* (648) window_offset_clause_opt ::= */ - 522, /* (649) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ - 524, /* (650) window_offset_literal ::= NK_VARIABLE */ - 524, /* (651) window_offset_literal ::= NK_MINUS NK_VARIABLE */ - 523, /* (652) jlimit_clause_opt ::= */ - 523, /* (653) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ - 525, /* (654) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - 526, /* (655) hint_list ::= */ - 526, /* (656) hint_list ::= NK_HINT */ - 528, /* (657) tag_mode_opt ::= */ - 528, /* (658) tag_mode_opt ::= TAGS */ - 527, /* (659) set_quantifier_opt ::= */ - 527, /* (660) set_quantifier_opt ::= DISTINCT */ - 527, /* (661) set_quantifier_opt ::= ALL */ - 529, /* (662) select_list ::= select_item */ - 529, /* (663) select_list ::= select_list NK_COMMA select_item */ - 537, /* (664) select_item ::= NK_STAR */ - 537, /* (665) select_item ::= common_expression */ - 537, /* (666) select_item ::= common_expression column_alias */ - 537, /* (667) select_item ::= common_expression AS column_alias */ - 537, /* (668) select_item ::= table_name NK_DOT NK_STAR */ - 464, /* (669) where_clause_opt ::= */ - 464, /* (670) where_clause_opt ::= WHERE search_condition */ - 530, /* (671) partition_by_clause_opt ::= */ - 530, /* (672) partition_by_clause_opt ::= PARTITION BY partition_list */ - 538, /* (673) partition_list ::= partition_item */ - 538, /* (674) partition_list ::= partition_list NK_COMMA partition_item */ - 539, /* (675) partition_item ::= expr_or_subquery */ - 539, /* (676) partition_item ::= expr_or_subquery column_alias */ - 539, /* (677) partition_item ::= expr_or_subquery AS column_alias */ - 534, /* (678) twindow_clause_opt ::= */ - 534, /* (679) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ - 534, /* (680) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - 534, /* (681) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - 534, /* (682) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - 534, /* (683) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - 534, /* (684) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ - 534, /* (685) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 457, /* (686) sliding_opt ::= */ - 457, /* (687) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ - 540, /* (688) interval_sliding_duration_literal ::= NK_VARIABLE */ - 540, /* (689) interval_sliding_duration_literal ::= NK_STRING */ - 540, /* (690) interval_sliding_duration_literal ::= NK_INTEGER */ - 533, /* (691) fill_opt ::= */ - 533, /* (692) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - 533, /* (693) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - 533, /* (694) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - 541, /* (695) fill_mode ::= NONE */ - 541, /* (696) fill_mode ::= PREV */ - 541, /* (697) fill_mode ::= NULL */ - 541, /* (698) fill_mode ::= NULL_F */ - 541, /* (699) fill_mode ::= LINEAR */ - 541, /* (700) fill_mode ::= NEXT */ - 535, /* (701) group_by_clause_opt ::= */ - 535, /* (702) group_by_clause_opt ::= GROUP BY group_by_list */ - 542, /* (703) group_by_list ::= expr_or_subquery */ - 542, /* (704) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 536, /* (705) having_clause_opt ::= */ - 536, /* (706) having_clause_opt ::= HAVING search_condition */ - 531, /* (707) range_opt ::= */ - 531, /* (708) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - 531, /* (709) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 532, /* (710) every_opt ::= */ - 532, /* (711) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - 543, /* (712) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - 544, /* (713) query_simple ::= query_specification */ - 544, /* (714) query_simple ::= union_query_expression */ - 548, /* (715) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - 548, /* (716) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - 549, /* (717) query_simple_or_subquery ::= query_simple */ - 549, /* (718) query_simple_or_subquery ::= subquery */ - 463, /* (719) query_or_subquery ::= query_expression */ - 463, /* (720) query_or_subquery ::= subquery */ - 545, /* (721) order_by_clause_opt ::= */ - 545, /* (722) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 546, /* (723) slimit_clause_opt ::= */ - 546, /* (724) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - 546, /* (725) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - 546, /* (726) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 547, /* (727) limit_clause_opt ::= */ - 547, /* (728) limit_clause_opt ::= LIMIT NK_INTEGER */ - 547, /* (729) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - 547, /* (730) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 517, /* (731) subquery ::= NK_LP query_expression NK_RP */ - 517, /* (732) subquery ::= NK_LP subquery NK_RP */ - 394, /* (733) search_condition ::= common_expression */ - 550, /* (734) sort_specification_list ::= sort_specification */ - 550, /* (735) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - 551, /* (736) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 552, /* (737) ordering_specification_opt ::= */ - 552, /* (738) ordering_specification_opt ::= ASC */ - 552, /* (739) ordering_specification_opt ::= DESC */ - 553, /* (740) null_ordering_opt ::= */ - 553, /* (741) null_ordering_opt ::= NULLS FIRST */ - 553, /* (742) null_ordering_opt ::= NULLS LAST */ - 422, /* (743) column_options ::= */ - 422, /* (744) column_options ::= column_options PRIMARY KEY */ - 422, /* (745) column_options ::= column_options ENCODE NK_STRING */ - 422, /* (746) column_options ::= column_options COMPRESS NK_STRING */ - 422, /* (747) column_options ::= column_options LEVEL NK_STRING */ + 415, /* (196) multi_create_clause ::= create_from_file_clause */ + 424, /* (197) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ + 425, /* (198) create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP NK_STRING */ + 417, /* (199) multi_drop_clause ::= drop_table_clause */ + 417, /* (200) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ + 429, /* (201) drop_table_clause ::= exists_opt full_table_name */ + 426, /* (202) specific_cols_opt ::= */ + 426, /* (203) specific_cols_opt ::= NK_LP col_name_list NK_RP */ + 411, /* (204) full_table_name ::= table_name */ + 411, /* (205) full_table_name ::= db_name NK_DOT table_name */ + 431, /* (206) tag_def_list ::= tag_def */ + 431, /* (207) tag_def_list ::= tag_def_list NK_COMMA tag_def */ + 432, /* (208) tag_def ::= column_name type_name */ + 412, /* (209) column_def_list ::= column_def */ + 412, /* (210) column_def_list ::= column_def_list NK_COMMA column_def */ + 433, /* (211) column_def ::= column_name type_name column_options */ + 421, /* (212) type_name ::= BOOL */ + 421, /* (213) type_name ::= TINYINT */ + 421, /* (214) type_name ::= SMALLINT */ + 421, /* (215) type_name ::= INT */ + 421, /* (216) type_name ::= INTEGER */ + 421, /* (217) type_name ::= BIGINT */ + 421, /* (218) type_name ::= FLOAT */ + 421, /* (219) type_name ::= DOUBLE */ + 421, /* (220) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + 421, /* (221) type_name ::= TIMESTAMP */ + 421, /* (222) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + 421, /* (223) type_name ::= TINYINT UNSIGNED */ + 421, /* (224) type_name ::= SMALLINT UNSIGNED */ + 421, /* (225) type_name ::= INT UNSIGNED */ + 421, /* (226) type_name ::= BIGINT UNSIGNED */ + 421, /* (227) type_name ::= JSON */ + 421, /* (228) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + 421, /* (229) type_name ::= MEDIUMBLOB */ + 421, /* (230) type_name ::= BLOB */ + 421, /* (231) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + 421, /* (232) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ + 421, /* (233) type_name ::= DECIMAL */ + 421, /* (234) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + 421, /* (235) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 434, /* (236) type_name_default_len ::= BINARY */ + 434, /* (237) type_name_default_len ::= NCHAR */ + 434, /* (238) type_name_default_len ::= VARCHAR */ + 434, /* (239) type_name_default_len ::= VARBINARY */ + 413, /* (240) tags_def_opt ::= */ + 413, /* (241) tags_def_opt ::= tags_def */ + 416, /* (242) tags_def ::= TAGS NK_LP tag_def_list NK_RP */ + 414, /* (243) table_options ::= */ + 414, /* (244) table_options ::= table_options COMMENT NK_STRING */ + 414, /* (245) table_options ::= table_options MAX_DELAY duration_list */ + 414, /* (246) table_options ::= table_options WATERMARK duration_list */ + 414, /* (247) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + 414, /* (248) table_options ::= table_options TTL NK_INTEGER */ + 414, /* (249) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + 414, /* (250) table_options ::= table_options DELETE_MARK duration_list */ + 419, /* (251) alter_table_options ::= alter_table_option */ + 419, /* (252) alter_table_options ::= alter_table_options alter_table_option */ + 437, /* (253) alter_table_option ::= COMMENT NK_STRING */ + 437, /* (254) alter_table_option ::= TTL NK_INTEGER */ + 435, /* (255) duration_list ::= duration_literal */ + 435, /* (256) duration_list ::= duration_list NK_COMMA duration_literal */ + 436, /* (257) rollup_func_list ::= rollup_func_name */ + 436, /* (258) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + 439, /* (259) rollup_func_name ::= function_name */ + 439, /* (260) rollup_func_name ::= FIRST */ + 439, /* (261) rollup_func_name ::= LAST */ + 430, /* (262) col_name_list ::= col_name */ + 430, /* (263) col_name_list ::= col_name_list NK_COMMA col_name */ + 441, /* (264) col_name ::= column_name */ + 376, /* (265) cmd ::= SHOW DNODES */ + 376, /* (266) cmd ::= SHOW USERS */ + 376, /* (267) cmd ::= SHOW USER PRIVILEGES */ + 376, /* (268) cmd ::= SHOW db_kind_opt DATABASES */ + 376, /* (269) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + 376, /* (270) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + 376, /* (271) cmd ::= SHOW db_name_cond_opt VGROUPS */ + 376, /* (272) cmd ::= SHOW MNODES */ + 376, /* (273) cmd ::= SHOW QNODES */ + 376, /* (274) cmd ::= SHOW ARBGROUPS */ + 376, /* (275) cmd ::= SHOW FUNCTIONS */ + 376, /* (276) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + 376, /* (277) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + 376, /* (278) cmd ::= SHOW STREAMS */ + 376, /* (279) cmd ::= SHOW ACCOUNTS */ + 376, /* (280) cmd ::= SHOW APPS */ + 376, /* (281) cmd ::= SHOW CONNECTIONS */ + 376, /* (282) cmd ::= SHOW LICENCES */ + 376, /* (283) cmd ::= SHOW GRANTS */ + 376, /* (284) cmd ::= SHOW GRANTS FULL */ + 376, /* (285) cmd ::= SHOW GRANTS LOGS */ + 376, /* (286) cmd ::= SHOW CLUSTER MACHINES */ + 376, /* (287) cmd ::= SHOW CREATE DATABASE db_name */ + 376, /* (288) cmd ::= SHOW CREATE TABLE full_table_name */ + 376, /* (289) cmd ::= SHOW CREATE STABLE full_table_name */ + 376, /* (290) cmd ::= SHOW ENCRYPTIONS */ + 376, /* (291) cmd ::= SHOW QUERIES */ + 376, /* (292) cmd ::= SHOW SCORES */ + 376, /* (293) cmd ::= SHOW TOPICS */ + 376, /* (294) cmd ::= SHOW VARIABLES */ + 376, /* (295) cmd ::= SHOW CLUSTER VARIABLES */ + 376, /* (296) cmd ::= SHOW LOCAL VARIABLES */ + 376, /* (297) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + 376, /* (298) cmd ::= SHOW BNODES */ + 376, /* (299) cmd ::= SHOW SNODES */ + 376, /* (300) cmd ::= SHOW CLUSTER */ + 376, /* (301) cmd ::= SHOW TRANSACTIONS */ + 376, /* (302) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + 376, /* (303) cmd ::= SHOW CONSUMERS */ + 376, /* (304) cmd ::= SHOW SUBSCRIPTIONS */ + 376, /* (305) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + 376, /* (306) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + 376, /* (307) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + 376, /* (308) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + 376, /* (309) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + 376, /* (310) cmd ::= SHOW VNODES */ + 376, /* (311) cmd ::= SHOW db_name_cond_opt ALIVE */ + 376, /* (312) cmd ::= SHOW CLUSTER ALIVE */ + 376, /* (313) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ + 376, /* (314) cmd ::= SHOW CREATE VIEW full_table_name */ + 376, /* (315) cmd ::= SHOW COMPACTS */ + 376, /* (316) cmd ::= SHOW COMPACT NK_INTEGER */ + 443, /* (317) table_kind_db_name_cond_opt ::= */ + 443, /* (318) table_kind_db_name_cond_opt ::= table_kind */ + 443, /* (319) table_kind_db_name_cond_opt ::= db_name NK_DOT */ + 443, /* (320) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ + 448, /* (321) table_kind ::= NORMAL */ + 448, /* (322) table_kind ::= CHILD */ + 445, /* (323) db_name_cond_opt ::= */ + 445, /* (324) db_name_cond_opt ::= db_name NK_DOT */ + 444, /* (325) like_pattern_opt ::= */ + 444, /* (326) like_pattern_opt ::= LIKE NK_STRING */ + 446, /* (327) table_name_cond ::= table_name */ + 447, /* (328) from_db_opt ::= */ + 447, /* (329) from_db_opt ::= FROM db_name */ + 428, /* (330) tag_list_opt ::= */ + 428, /* (331) tag_list_opt ::= tag_item */ + 428, /* (332) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + 449, /* (333) tag_item ::= TBNAME */ + 449, /* (334) tag_item ::= QTAGS */ + 449, /* (335) tag_item ::= column_name */ + 449, /* (336) tag_item ::= column_name column_alias */ + 449, /* (337) tag_item ::= column_name AS column_alias */ + 442, /* (338) db_kind_opt ::= */ + 442, /* (339) db_kind_opt ::= USER */ + 442, /* (340) db_kind_opt ::= SYSTEM */ + 376, /* (341) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ + 376, /* (342) cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ + 376, /* (343) cmd ::= DROP TSMA exists_opt full_tsma_name */ + 376, /* (344) cmd ::= SHOW db_name_cond_opt TSMAS */ + 453, /* (345) full_tsma_name ::= tsma_name */ + 453, /* (346) full_tsma_name ::= db_name NK_DOT tsma_name */ + 452, /* (347) tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ + 376, /* (348) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + 376, /* (349) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ + 376, /* (350) cmd ::= DROP INDEX exists_opt full_index_name */ + 456, /* (351) full_index_name ::= index_name */ + 456, /* (352) full_index_name ::= db_name NK_DOT index_name */ + 455, /* (353) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + 455, /* (354) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ + 454, /* (355) func_list ::= func */ + 454, /* (356) func_list ::= func_list NK_COMMA func */ + 460, /* (357) func ::= sma_func_name NK_LP expression_list NK_RP */ + 461, /* (358) sma_func_name ::= function_name */ + 461, /* (359) sma_func_name ::= COUNT */ + 461, /* (360) sma_func_name ::= FIRST */ + 461, /* (361) sma_func_name ::= LAST */ + 461, /* (362) sma_func_name ::= LAST_ROW */ + 459, /* (363) sma_stream_opt ::= */ + 459, /* (364) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + 459, /* (365) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + 459, /* (366) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + 463, /* (367) with_meta ::= AS */ + 463, /* (368) with_meta ::= WITH META AS */ + 463, /* (369) with_meta ::= ONLY META AS */ + 376, /* (370) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + 376, /* (371) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + 376, /* (372) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + 376, /* (373) cmd ::= DROP TOPIC exists_opt topic_name */ + 376, /* (374) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + 376, /* (375) cmd ::= DESC full_table_name */ + 376, /* (376) cmd ::= DESCRIBE full_table_name */ + 376, /* (377) cmd ::= RESET QUERY CACHE */ + 376, /* (378) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + 376, /* (379) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 467, /* (380) analyze_opt ::= */ + 467, /* (381) analyze_opt ::= ANALYZE */ + 468, /* (382) explain_options ::= */ + 468, /* (383) explain_options ::= explain_options VERBOSE NK_BOOL */ + 468, /* (384) explain_options ::= explain_options RATIO NK_FLOAT */ + 376, /* (385) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + 376, /* (386) cmd ::= DROP FUNCTION exists_opt function_name */ + 471, /* (387) agg_func_opt ::= */ + 471, /* (388) agg_func_opt ::= AGGREGATE */ + 472, /* (389) bufsize_opt ::= */ + 472, /* (390) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 473, /* (391) language_opt ::= */ + 473, /* (392) language_opt ::= LANGUAGE NK_STRING */ + 470, /* (393) or_replace_opt ::= */ + 470, /* (394) or_replace_opt ::= OR REPLACE */ + 376, /* (395) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ + 376, /* (396) cmd ::= DROP VIEW exists_opt full_view_name */ + 474, /* (397) full_view_name ::= view_name */ + 474, /* (398) full_view_name ::= db_name NK_DOT view_name */ + 376, /* (399) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ + 376, /* (400) cmd ::= DROP STREAM exists_opt stream_name */ + 376, /* (401) cmd ::= PAUSE STREAM exists_opt stream_name */ + 376, /* (402) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 478, /* (403) col_list_opt ::= */ + 478, /* (404) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ + 482, /* (405) column_stream_def_list ::= column_stream_def */ + 482, /* (406) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ + 483, /* (407) column_stream_def ::= column_name stream_col_options */ + 484, /* (408) stream_col_options ::= */ + 484, /* (409) stream_col_options ::= stream_col_options PRIMARY KEY */ + 479, /* (410) tag_def_or_ref_opt ::= */ + 479, /* (411) tag_def_or_ref_opt ::= tags_def */ + 479, /* (412) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ + 477, /* (413) stream_options ::= */ + 477, /* (414) stream_options ::= stream_options TRIGGER AT_ONCE */ + 477, /* (415) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + 477, /* (416) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + 477, /* (417) stream_options ::= stream_options WATERMARK duration_literal */ + 477, /* (418) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + 477, /* (419) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + 477, /* (420) stream_options ::= stream_options DELETE_MARK duration_literal */ + 477, /* (421) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 480, /* (422) subtable_opt ::= */ + 480, /* (423) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 481, /* (424) ignore_opt ::= */ + 481, /* (425) ignore_opt ::= IGNORE UNTREATED */ + 376, /* (426) cmd ::= KILL CONNECTION NK_INTEGER */ + 376, /* (427) cmd ::= KILL QUERY NK_STRING */ + 376, /* (428) cmd ::= KILL TRANSACTION NK_INTEGER */ + 376, /* (429) cmd ::= KILL COMPACT NK_INTEGER */ + 376, /* (430) cmd ::= BALANCE VGROUP */ + 376, /* (431) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ + 376, /* (432) cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ + 376, /* (433) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + 376, /* (434) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + 376, /* (435) cmd ::= SPLIT VGROUP NK_INTEGER */ + 486, /* (436) on_vgroup_id ::= */ + 486, /* (437) on_vgroup_id ::= ON NK_INTEGER */ + 487, /* (438) dnode_list ::= DNODE NK_INTEGER */ + 487, /* (439) dnode_list ::= dnode_list DNODE NK_INTEGER */ + 376, /* (440) cmd ::= DELETE FROM full_table_name where_clause_opt */ + 376, /* (441) cmd ::= query_or_subquery */ + 376, /* (442) cmd ::= insert_query */ + 469, /* (443) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + 469, /* (444) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + 423, /* (445) tags_literal ::= NK_INTEGER */ + 423, /* (446) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + 423, /* (447) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ + 423, /* (448) tags_literal ::= NK_PLUS NK_INTEGER */ + 423, /* (449) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + 423, /* (450) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ + 423, /* (451) tags_literal ::= NK_MINUS NK_INTEGER */ + 423, /* (452) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ + 423, /* (453) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ + 423, /* (454) tags_literal ::= NK_FLOAT */ + 423, /* (455) tags_literal ::= NK_PLUS NK_FLOAT */ + 423, /* (456) tags_literal ::= NK_MINUS NK_FLOAT */ + 423, /* (457) tags_literal ::= NK_BIN */ + 423, /* (458) tags_literal ::= NK_BIN NK_PLUS duration_literal */ + 423, /* (459) tags_literal ::= NK_BIN NK_MINUS duration_literal */ + 423, /* (460) tags_literal ::= NK_PLUS NK_BIN */ + 423, /* (461) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ + 423, /* (462) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ + 423, /* (463) tags_literal ::= NK_MINUS NK_BIN */ + 423, /* (464) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ + 423, /* (465) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ + 423, /* (466) tags_literal ::= NK_HEX */ + 423, /* (467) tags_literal ::= NK_HEX NK_PLUS duration_literal */ + 423, /* (468) tags_literal ::= NK_HEX NK_MINUS duration_literal */ + 423, /* (469) tags_literal ::= NK_PLUS NK_HEX */ + 423, /* (470) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ + 423, /* (471) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ + 423, /* (472) tags_literal ::= NK_MINUS NK_HEX */ + 423, /* (473) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ + 423, /* (474) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ + 423, /* (475) tags_literal ::= NK_STRING */ + 423, /* (476) tags_literal ::= NK_STRING NK_PLUS duration_literal */ + 423, /* (477) tags_literal ::= NK_STRING NK_MINUS duration_literal */ + 423, /* (478) tags_literal ::= NK_BOOL */ + 423, /* (479) tags_literal ::= NULL */ + 423, /* (480) tags_literal ::= literal_func */ + 423, /* (481) tags_literal ::= literal_func NK_PLUS duration_literal */ + 423, /* (482) tags_literal ::= literal_func NK_MINUS duration_literal */ + 427, /* (483) tags_literal_list ::= tags_literal */ + 427, /* (484) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ + 379, /* (485) literal ::= NK_INTEGER */ + 379, /* (486) literal ::= NK_FLOAT */ + 379, /* (487) literal ::= NK_STRING */ + 379, /* (488) literal ::= NK_BOOL */ + 379, /* (489) literal ::= TIMESTAMP NK_STRING */ + 379, /* (490) literal ::= duration_literal */ + 379, /* (491) literal ::= NULL */ + 379, /* (492) literal ::= NK_QUESTION */ + 438, /* (493) duration_literal ::= NK_VARIABLE */ + 408, /* (494) signed ::= NK_INTEGER */ + 408, /* (495) signed ::= NK_PLUS NK_INTEGER */ + 408, /* (496) signed ::= NK_MINUS NK_INTEGER */ + 408, /* (497) signed ::= NK_FLOAT */ + 408, /* (498) signed ::= NK_PLUS NK_FLOAT */ + 408, /* (499) signed ::= NK_MINUS NK_FLOAT */ + 489, /* (500) signed_literal ::= signed */ + 489, /* (501) signed_literal ::= NK_STRING */ + 489, /* (502) signed_literal ::= NK_BOOL */ + 489, /* (503) signed_literal ::= TIMESTAMP NK_STRING */ + 489, /* (504) signed_literal ::= duration_literal */ + 489, /* (505) signed_literal ::= NULL */ + 489, /* (506) signed_literal ::= literal_func */ + 489, /* (507) signed_literal ::= NK_QUESTION */ + 490, /* (508) literal_list ::= signed_literal */ + 490, /* (509) literal_list ::= literal_list NK_COMMA signed_literal */ + 391, /* (510) db_name ::= NK_ID */ + 392, /* (511) table_name ::= NK_ID */ + 420, /* (512) column_name ::= NK_ID */ + 440, /* (513) function_name ::= NK_ID */ + 475, /* (514) view_name ::= NK_ID */ + 491, /* (515) table_alias ::= NK_ID */ + 450, /* (516) column_alias ::= NK_ID */ + 450, /* (517) column_alias ::= NK_ALIAS */ + 384, /* (518) user_name ::= NK_ID */ + 393, /* (519) topic_name ::= NK_ID */ + 476, /* (520) stream_name ::= NK_ID */ + 466, /* (521) cgroup_name ::= NK_ID */ + 457, /* (522) index_name ::= NK_ID */ + 451, /* (523) tsma_name ::= NK_ID */ + 492, /* (524) expr_or_subquery ::= expression */ + 485, /* (525) expression ::= literal */ + 485, /* (526) expression ::= pseudo_column */ + 485, /* (527) expression ::= column_reference */ + 485, /* (528) expression ::= function_expression */ + 485, /* (529) expression ::= case_when_expression */ + 485, /* (530) expression ::= NK_LP expression NK_RP */ + 485, /* (531) expression ::= NK_PLUS expr_or_subquery */ + 485, /* (532) expression ::= NK_MINUS expr_or_subquery */ + 485, /* (533) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + 485, /* (534) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + 485, /* (535) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + 485, /* (536) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + 485, /* (537) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + 485, /* (538) expression ::= column_reference NK_ARROW NK_STRING */ + 485, /* (539) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + 485, /* (540) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + 462, /* (541) expression_list ::= expr_or_subquery */ + 462, /* (542) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + 494, /* (543) column_reference ::= column_name */ + 494, /* (544) column_reference ::= table_name NK_DOT column_name */ + 494, /* (545) column_reference ::= NK_ALIAS */ + 494, /* (546) column_reference ::= table_name NK_DOT NK_ALIAS */ + 493, /* (547) pseudo_column ::= ROWTS */ + 493, /* (548) pseudo_column ::= TBNAME */ + 493, /* (549) pseudo_column ::= table_name NK_DOT TBNAME */ + 493, /* (550) pseudo_column ::= QSTART */ + 493, /* (551) pseudo_column ::= QEND */ + 493, /* (552) pseudo_column ::= QDURATION */ + 493, /* (553) pseudo_column ::= WSTART */ + 493, /* (554) pseudo_column ::= WEND */ + 493, /* (555) pseudo_column ::= WDURATION */ + 493, /* (556) pseudo_column ::= IROWTS */ + 493, /* (557) pseudo_column ::= ISFILLED */ + 493, /* (558) pseudo_column ::= QTAGS */ + 495, /* (559) function_expression ::= function_name NK_LP expression_list NK_RP */ + 495, /* (560) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + 495, /* (561) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + 495, /* (562) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ + 495, /* (563) function_expression ::= literal_func */ + 488, /* (564) literal_func ::= noarg_func NK_LP NK_RP */ + 488, /* (565) literal_func ::= NOW */ + 488, /* (566) literal_func ::= TODAY */ + 499, /* (567) noarg_func ::= NOW */ + 499, /* (568) noarg_func ::= TODAY */ + 499, /* (569) noarg_func ::= TIMEZONE */ + 499, /* (570) noarg_func ::= DATABASE */ + 499, /* (571) noarg_func ::= CLIENT_VERSION */ + 499, /* (572) noarg_func ::= SERVER_VERSION */ + 499, /* (573) noarg_func ::= SERVER_STATUS */ + 499, /* (574) noarg_func ::= CURRENT_USER */ + 499, /* (575) noarg_func ::= USER */ + 497, /* (576) star_func ::= COUNT */ + 497, /* (577) star_func ::= FIRST */ + 497, /* (578) star_func ::= LAST */ + 497, /* (579) star_func ::= LAST_ROW */ + 498, /* (580) star_func_para_list ::= NK_STAR */ + 498, /* (581) star_func_para_list ::= other_para_list */ + 500, /* (582) other_para_list ::= star_func_para */ + 500, /* (583) other_para_list ::= other_para_list NK_COMMA star_func_para */ + 501, /* (584) star_func_para ::= expr_or_subquery */ + 501, /* (585) star_func_para ::= table_name NK_DOT NK_STAR */ + 496, /* (586) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + 496, /* (587) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + 502, /* (588) when_then_list ::= when_then_expr */ + 502, /* (589) when_then_list ::= when_then_list when_then_expr */ + 505, /* (590) when_then_expr ::= WHEN common_expression THEN common_expression */ + 503, /* (591) case_when_else_opt ::= */ + 503, /* (592) case_when_else_opt ::= ELSE common_expression */ + 506, /* (593) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + 506, /* (594) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + 506, /* (595) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + 506, /* (596) predicate ::= expr_or_subquery IS NULL */ + 506, /* (597) predicate ::= expr_or_subquery IS NOT NULL */ + 506, /* (598) predicate ::= expr_or_subquery in_op in_predicate_value */ + 507, /* (599) compare_op ::= NK_LT */ + 507, /* (600) compare_op ::= NK_GT */ + 507, /* (601) compare_op ::= NK_LE */ + 507, /* (602) compare_op ::= NK_GE */ + 507, /* (603) compare_op ::= NK_NE */ + 507, /* (604) compare_op ::= NK_EQ */ + 507, /* (605) compare_op ::= LIKE */ + 507, /* (606) compare_op ::= NOT LIKE */ + 507, /* (607) compare_op ::= MATCH */ + 507, /* (608) compare_op ::= NMATCH */ + 507, /* (609) compare_op ::= CONTAINS */ + 508, /* (610) in_op ::= IN */ + 508, /* (611) in_op ::= NOT IN */ + 509, /* (612) in_predicate_value ::= NK_LP literal_list NK_RP */ + 510, /* (613) boolean_value_expression ::= boolean_primary */ + 510, /* (614) boolean_value_expression ::= NOT boolean_primary */ + 510, /* (615) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + 510, /* (616) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + 511, /* (617) boolean_primary ::= predicate */ + 511, /* (618) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + 504, /* (619) common_expression ::= expr_or_subquery */ + 504, /* (620) common_expression ::= boolean_value_expression */ + 512, /* (621) from_clause_opt ::= */ + 512, /* (622) from_clause_opt ::= FROM table_reference_list */ + 513, /* (623) table_reference_list ::= table_reference */ + 513, /* (624) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + 514, /* (625) table_reference ::= table_primary */ + 514, /* (626) table_reference ::= joined_table */ + 515, /* (627) table_primary ::= table_name alias_opt */ + 515, /* (628) table_primary ::= db_name NK_DOT table_name alias_opt */ + 515, /* (629) table_primary ::= subquery alias_opt */ + 515, /* (630) table_primary ::= parenthesized_joined_table */ + 517, /* (631) alias_opt ::= */ + 517, /* (632) alias_opt ::= table_alias */ + 517, /* (633) alias_opt ::= AS table_alias */ + 519, /* (634) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + 519, /* (635) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + 516, /* (636) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ + 520, /* (637) join_type ::= */ + 520, /* (638) join_type ::= INNER */ + 520, /* (639) join_type ::= LEFT */ + 520, /* (640) join_type ::= RIGHT */ + 520, /* (641) join_type ::= FULL */ + 521, /* (642) join_subtype ::= */ + 521, /* (643) join_subtype ::= OUTER */ + 521, /* (644) join_subtype ::= SEMI */ + 521, /* (645) join_subtype ::= ANTI */ + 521, /* (646) join_subtype ::= ASOF */ + 521, /* (647) join_subtype ::= WINDOW */ + 522, /* (648) join_on_clause_opt ::= */ + 522, /* (649) join_on_clause_opt ::= ON search_condition */ + 523, /* (650) window_offset_clause_opt ::= */ + 523, /* (651) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ + 525, /* (652) window_offset_literal ::= NK_VARIABLE */ + 525, /* (653) window_offset_literal ::= NK_MINUS NK_VARIABLE */ + 524, /* (654) jlimit_clause_opt ::= */ + 524, /* (655) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ + 526, /* (656) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + 527, /* (657) hint_list ::= */ + 527, /* (658) hint_list ::= NK_HINT */ + 529, /* (659) tag_mode_opt ::= */ + 529, /* (660) tag_mode_opt ::= TAGS */ + 528, /* (661) set_quantifier_opt ::= */ + 528, /* (662) set_quantifier_opt ::= DISTINCT */ + 528, /* (663) set_quantifier_opt ::= ALL */ + 530, /* (664) select_list ::= select_item */ + 530, /* (665) select_list ::= select_list NK_COMMA select_item */ + 538, /* (666) select_item ::= NK_STAR */ + 538, /* (667) select_item ::= common_expression */ + 538, /* (668) select_item ::= common_expression column_alias */ + 538, /* (669) select_item ::= common_expression AS column_alias */ + 538, /* (670) select_item ::= table_name NK_DOT NK_STAR */ + 465, /* (671) where_clause_opt ::= */ + 465, /* (672) where_clause_opt ::= WHERE search_condition */ + 531, /* (673) partition_by_clause_opt ::= */ + 531, /* (674) partition_by_clause_opt ::= PARTITION BY partition_list */ + 539, /* (675) partition_list ::= partition_item */ + 539, /* (676) partition_list ::= partition_list NK_COMMA partition_item */ + 540, /* (677) partition_item ::= expr_or_subquery */ + 540, /* (678) partition_item ::= expr_or_subquery column_alias */ + 540, /* (679) partition_item ::= expr_or_subquery AS column_alias */ + 535, /* (680) twindow_clause_opt ::= */ + 535, /* (681) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ + 535, /* (682) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + 535, /* (683) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + 535, /* (684) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + 535, /* (685) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + 535, /* (686) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ + 535, /* (687) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 458, /* (688) sliding_opt ::= */ + 458, /* (689) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ + 541, /* (690) interval_sliding_duration_literal ::= NK_VARIABLE */ + 541, /* (691) interval_sliding_duration_literal ::= NK_STRING */ + 541, /* (692) interval_sliding_duration_literal ::= NK_INTEGER */ + 534, /* (693) fill_opt ::= */ + 534, /* (694) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + 534, /* (695) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + 534, /* (696) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + 542, /* (697) fill_mode ::= NONE */ + 542, /* (698) fill_mode ::= PREV */ + 542, /* (699) fill_mode ::= NULL */ + 542, /* (700) fill_mode ::= NULL_F */ + 542, /* (701) fill_mode ::= LINEAR */ + 542, /* (702) fill_mode ::= NEXT */ + 536, /* (703) group_by_clause_opt ::= */ + 536, /* (704) group_by_clause_opt ::= GROUP BY group_by_list */ + 543, /* (705) group_by_list ::= expr_or_subquery */ + 543, /* (706) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 537, /* (707) having_clause_opt ::= */ + 537, /* (708) having_clause_opt ::= HAVING search_condition */ + 532, /* (709) range_opt ::= */ + 532, /* (710) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + 532, /* (711) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 533, /* (712) every_opt ::= */ + 533, /* (713) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + 544, /* (714) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + 545, /* (715) query_simple ::= query_specification */ + 545, /* (716) query_simple ::= union_query_expression */ + 549, /* (717) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + 549, /* (718) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + 550, /* (719) query_simple_or_subquery ::= query_simple */ + 550, /* (720) query_simple_or_subquery ::= subquery */ + 464, /* (721) query_or_subquery ::= query_expression */ + 464, /* (722) query_or_subquery ::= subquery */ + 546, /* (723) order_by_clause_opt ::= */ + 546, /* (724) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 547, /* (725) slimit_clause_opt ::= */ + 547, /* (726) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + 547, /* (727) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + 547, /* (728) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 548, /* (729) limit_clause_opt ::= */ + 548, /* (730) limit_clause_opt ::= LIMIT NK_INTEGER */ + 548, /* (731) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + 548, /* (732) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 518, /* (733) subquery ::= NK_LP query_expression NK_RP */ + 518, /* (734) subquery ::= NK_LP subquery NK_RP */ + 394, /* (735) search_condition ::= common_expression */ + 551, /* (736) sort_specification_list ::= sort_specification */ + 551, /* (737) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + 552, /* (738) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 553, /* (739) ordering_specification_opt ::= */ + 553, /* (740) ordering_specification_opt ::= ASC */ + 553, /* (741) ordering_specification_opt ::= DESC */ + 554, /* (742) null_ordering_opt ::= */ + 554, /* (743) null_ordering_opt ::= NULLS FIRST */ + 554, /* (744) null_ordering_opt ::= NULLS LAST */ + 422, /* (745) column_options ::= */ + 422, /* (746) column_options ::= column_options PRIMARY KEY */ + 422, /* (747) column_options ::= column_options ENCODE NK_STRING */ + 422, /* (748) column_options ::= column_options COMPRESS NK_STRING */ + 422, /* (749) column_options ::= column_options LEVEL NK_STRING */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number @@ -4976,558 +4919,560 @@ static const signed char yyRuleInfoNRhs[] = { -6, /* (193) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ -1, /* (194) multi_create_clause ::= create_subtable_clause */ -2, /* (195) multi_create_clause ::= multi_create_clause create_subtable_clause */ - -10, /* (196) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ - -1, /* (197) multi_drop_clause ::= drop_table_clause */ - -3, /* (198) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ - -2, /* (199) drop_table_clause ::= exists_opt full_table_name */ - 0, /* (200) specific_cols_opt ::= */ - -3, /* (201) specific_cols_opt ::= NK_LP col_name_list NK_RP */ - -1, /* (202) full_table_name ::= table_name */ - -3, /* (203) full_table_name ::= db_name NK_DOT table_name */ - -1, /* (204) tag_def_list ::= tag_def */ - -3, /* (205) tag_def_list ::= tag_def_list NK_COMMA tag_def */ - -2, /* (206) tag_def ::= column_name type_name */ - -1, /* (207) column_def_list ::= column_def */ - -3, /* (208) column_def_list ::= column_def_list NK_COMMA column_def */ - -3, /* (209) column_def ::= column_name type_name column_options */ - -1, /* (210) type_name ::= BOOL */ - -1, /* (211) type_name ::= TINYINT */ - -1, /* (212) type_name ::= SMALLINT */ - -1, /* (213) type_name ::= INT */ - -1, /* (214) type_name ::= INTEGER */ - -1, /* (215) type_name ::= BIGINT */ - -1, /* (216) type_name ::= FLOAT */ - -1, /* (217) type_name ::= DOUBLE */ - -4, /* (218) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - -1, /* (219) type_name ::= TIMESTAMP */ - -4, /* (220) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - -2, /* (221) type_name ::= TINYINT UNSIGNED */ - -2, /* (222) type_name ::= SMALLINT UNSIGNED */ - -2, /* (223) type_name ::= INT UNSIGNED */ - -2, /* (224) type_name ::= BIGINT UNSIGNED */ - -1, /* (225) type_name ::= JSON */ - -4, /* (226) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - -1, /* (227) type_name ::= MEDIUMBLOB */ - -1, /* (228) type_name ::= BLOB */ - -4, /* (229) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - -4, /* (230) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ - -1, /* (231) type_name ::= DECIMAL */ - -4, /* (232) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - -6, /* (233) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - -1, /* (234) type_name_default_len ::= BINARY */ - -1, /* (235) type_name_default_len ::= NCHAR */ - -1, /* (236) type_name_default_len ::= VARCHAR */ - -1, /* (237) type_name_default_len ::= VARBINARY */ - 0, /* (238) tags_def_opt ::= */ - -1, /* (239) tags_def_opt ::= tags_def */ - -4, /* (240) tags_def ::= TAGS NK_LP tag_def_list NK_RP */ - 0, /* (241) table_options ::= */ - -3, /* (242) table_options ::= table_options COMMENT NK_STRING */ - -3, /* (243) table_options ::= table_options MAX_DELAY duration_list */ - -3, /* (244) table_options ::= table_options WATERMARK duration_list */ - -5, /* (245) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - -3, /* (246) table_options ::= table_options TTL NK_INTEGER */ - -5, /* (247) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - -3, /* (248) table_options ::= table_options DELETE_MARK duration_list */ - -1, /* (249) alter_table_options ::= alter_table_option */ - -2, /* (250) alter_table_options ::= alter_table_options alter_table_option */ - -2, /* (251) alter_table_option ::= COMMENT NK_STRING */ - -2, /* (252) alter_table_option ::= TTL NK_INTEGER */ - -1, /* (253) duration_list ::= duration_literal */ - -3, /* (254) duration_list ::= duration_list NK_COMMA duration_literal */ - -1, /* (255) rollup_func_list ::= rollup_func_name */ - -3, /* (256) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - -1, /* (257) rollup_func_name ::= function_name */ - -1, /* (258) rollup_func_name ::= FIRST */ - -1, /* (259) rollup_func_name ::= LAST */ - -1, /* (260) col_name_list ::= col_name */ - -3, /* (261) col_name_list ::= col_name_list NK_COMMA col_name */ - -1, /* (262) col_name ::= column_name */ - -2, /* (263) cmd ::= SHOW DNODES */ - -2, /* (264) cmd ::= SHOW USERS */ - -3, /* (265) cmd ::= SHOW USER PRIVILEGES */ - -3, /* (266) cmd ::= SHOW db_kind_opt DATABASES */ - -4, /* (267) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ - -4, /* (268) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - -3, /* (269) cmd ::= SHOW db_name_cond_opt VGROUPS */ - -2, /* (270) cmd ::= SHOW MNODES */ - -2, /* (271) cmd ::= SHOW QNODES */ - -2, /* (272) cmd ::= SHOW ARBGROUPS */ - -2, /* (273) cmd ::= SHOW FUNCTIONS */ - -5, /* (274) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - -6, /* (275) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - -2, /* (276) cmd ::= SHOW STREAMS */ - -2, /* (277) cmd ::= SHOW ACCOUNTS */ - -2, /* (278) cmd ::= SHOW APPS */ - -2, /* (279) cmd ::= SHOW CONNECTIONS */ - -2, /* (280) cmd ::= SHOW LICENCES */ - -2, /* (281) cmd ::= SHOW GRANTS */ - -3, /* (282) cmd ::= SHOW GRANTS FULL */ - -3, /* (283) cmd ::= SHOW GRANTS LOGS */ - -3, /* (284) cmd ::= SHOW CLUSTER MACHINES */ - -4, /* (285) cmd ::= SHOW CREATE DATABASE db_name */ - -4, /* (286) cmd ::= SHOW CREATE TABLE full_table_name */ - -4, /* (287) cmd ::= SHOW CREATE STABLE full_table_name */ - -2, /* (288) cmd ::= SHOW ENCRYPTIONS */ - -2, /* (289) cmd ::= SHOW QUERIES */ - -2, /* (290) cmd ::= SHOW SCORES */ - -2, /* (291) cmd ::= SHOW TOPICS */ - -2, /* (292) cmd ::= SHOW VARIABLES */ - -3, /* (293) cmd ::= SHOW CLUSTER VARIABLES */ - -3, /* (294) cmd ::= SHOW LOCAL VARIABLES */ - -5, /* (295) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - -2, /* (296) cmd ::= SHOW BNODES */ - -2, /* (297) cmd ::= SHOW SNODES */ - -2, /* (298) cmd ::= SHOW CLUSTER */ - -2, /* (299) cmd ::= SHOW TRANSACTIONS */ - -4, /* (300) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - -2, /* (301) cmd ::= SHOW CONSUMERS */ - -2, /* (302) cmd ::= SHOW SUBSCRIPTIONS */ - -5, /* (303) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - -6, /* (304) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - -7, /* (305) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - -8, /* (306) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - -5, /* (307) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ - -2, /* (308) cmd ::= SHOW VNODES */ - -3, /* (309) cmd ::= SHOW db_name_cond_opt ALIVE */ - -3, /* (310) cmd ::= SHOW CLUSTER ALIVE */ - -4, /* (311) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ - -4, /* (312) cmd ::= SHOW CREATE VIEW full_table_name */ - -2, /* (313) cmd ::= SHOW COMPACTS */ - -3, /* (314) cmd ::= SHOW COMPACT NK_INTEGER */ - 0, /* (315) table_kind_db_name_cond_opt ::= */ - -1, /* (316) table_kind_db_name_cond_opt ::= table_kind */ - -2, /* (317) table_kind_db_name_cond_opt ::= db_name NK_DOT */ - -3, /* (318) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ - -1, /* (319) table_kind ::= NORMAL */ - -1, /* (320) table_kind ::= CHILD */ - 0, /* (321) db_name_cond_opt ::= */ - -2, /* (322) db_name_cond_opt ::= db_name NK_DOT */ - 0, /* (323) like_pattern_opt ::= */ - -2, /* (324) like_pattern_opt ::= LIKE NK_STRING */ - -1, /* (325) table_name_cond ::= table_name */ - 0, /* (326) from_db_opt ::= */ - -2, /* (327) from_db_opt ::= FROM db_name */ - 0, /* (328) tag_list_opt ::= */ - -1, /* (329) tag_list_opt ::= tag_item */ - -3, /* (330) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - -1, /* (331) tag_item ::= TBNAME */ - -1, /* (332) tag_item ::= QTAGS */ - -1, /* (333) tag_item ::= column_name */ - -2, /* (334) tag_item ::= column_name column_alias */ - -3, /* (335) tag_item ::= column_name AS column_alias */ - 0, /* (336) db_kind_opt ::= */ - -1, /* (337) db_kind_opt ::= USER */ - -1, /* (338) db_kind_opt ::= SYSTEM */ - -11, /* (339) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ - -11, /* (340) cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ - -4, /* (341) cmd ::= DROP TSMA exists_opt full_tsma_name */ - -3, /* (342) cmd ::= SHOW db_name_cond_opt TSMAS */ - -1, /* (343) full_tsma_name ::= tsma_name */ - -3, /* (344) full_tsma_name ::= db_name NK_DOT tsma_name */ - -4, /* (345) tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ - -8, /* (346) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ - -9, /* (347) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ - -4, /* (348) cmd ::= DROP INDEX exists_opt full_index_name */ - -1, /* (349) full_index_name ::= index_name */ - -3, /* (350) full_index_name ::= db_name NK_DOT index_name */ - -10, /* (351) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - -12, /* (352) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ - -1, /* (353) func_list ::= func */ - -3, /* (354) func_list ::= func_list NK_COMMA func */ - -4, /* (355) func ::= sma_func_name NK_LP expression_list NK_RP */ - -1, /* (356) sma_func_name ::= function_name */ - -1, /* (357) sma_func_name ::= COUNT */ - -1, /* (358) sma_func_name ::= FIRST */ - -1, /* (359) sma_func_name ::= LAST */ - -1, /* (360) sma_func_name ::= LAST_ROW */ - 0, /* (361) sma_stream_opt ::= */ - -3, /* (362) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - -3, /* (363) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - -3, /* (364) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - -1, /* (365) with_meta ::= AS */ - -3, /* (366) with_meta ::= WITH META AS */ - -3, /* (367) with_meta ::= ONLY META AS */ - -6, /* (368) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - -7, /* (369) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - -8, /* (370) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - -4, /* (371) cmd ::= DROP TOPIC exists_opt topic_name */ - -7, /* (372) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - -2, /* (373) cmd ::= DESC full_table_name */ - -2, /* (374) cmd ::= DESCRIBE full_table_name */ - -3, /* (375) cmd ::= RESET QUERY CACHE */ - -4, /* (376) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - -4, /* (377) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 0, /* (378) analyze_opt ::= */ - -1, /* (379) analyze_opt ::= ANALYZE */ - 0, /* (380) explain_options ::= */ - -3, /* (381) explain_options ::= explain_options VERBOSE NK_BOOL */ - -3, /* (382) explain_options ::= explain_options RATIO NK_FLOAT */ - -12, /* (383) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - -4, /* (384) cmd ::= DROP FUNCTION exists_opt function_name */ - 0, /* (385) agg_func_opt ::= */ - -1, /* (386) agg_func_opt ::= AGGREGATE */ - 0, /* (387) bufsize_opt ::= */ - -2, /* (388) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 0, /* (389) language_opt ::= */ - -2, /* (390) language_opt ::= LANGUAGE NK_STRING */ - 0, /* (391) or_replace_opt ::= */ - -2, /* (392) or_replace_opt ::= OR REPLACE */ - -6, /* (393) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ - -4, /* (394) cmd ::= DROP VIEW exists_opt full_view_name */ - -1, /* (395) full_view_name ::= view_name */ - -3, /* (396) full_view_name ::= db_name NK_DOT view_name */ - -12, /* (397) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ - -4, /* (398) cmd ::= DROP STREAM exists_opt stream_name */ - -4, /* (399) cmd ::= PAUSE STREAM exists_opt stream_name */ - -5, /* (400) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 0, /* (401) col_list_opt ::= */ - -3, /* (402) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ - -1, /* (403) column_stream_def_list ::= column_stream_def */ - -3, /* (404) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ - -2, /* (405) column_stream_def ::= column_name stream_col_options */ - 0, /* (406) stream_col_options ::= */ - -3, /* (407) stream_col_options ::= stream_col_options PRIMARY KEY */ - 0, /* (408) tag_def_or_ref_opt ::= */ - -1, /* (409) tag_def_or_ref_opt ::= tags_def */ - -4, /* (410) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ - 0, /* (411) stream_options ::= */ - -3, /* (412) stream_options ::= stream_options TRIGGER AT_ONCE */ - -3, /* (413) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - -4, /* (414) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - -3, /* (415) stream_options ::= stream_options WATERMARK duration_literal */ - -4, /* (416) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - -3, /* (417) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - -3, /* (418) stream_options ::= stream_options DELETE_MARK duration_literal */ - -4, /* (419) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 0, /* (420) subtable_opt ::= */ - -4, /* (421) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 0, /* (422) ignore_opt ::= */ - -2, /* (423) ignore_opt ::= IGNORE UNTREATED */ - -3, /* (424) cmd ::= KILL CONNECTION NK_INTEGER */ - -3, /* (425) cmd ::= KILL QUERY NK_STRING */ - -3, /* (426) cmd ::= KILL TRANSACTION NK_INTEGER */ - -3, /* (427) cmd ::= KILL COMPACT NK_INTEGER */ - -2, /* (428) cmd ::= BALANCE VGROUP */ - -4, /* (429) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ - -5, /* (430) cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ - -4, /* (431) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - -4, /* (432) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - -3, /* (433) cmd ::= SPLIT VGROUP NK_INTEGER */ - 0, /* (434) on_vgroup_id ::= */ - -2, /* (435) on_vgroup_id ::= ON NK_INTEGER */ - -2, /* (436) dnode_list ::= DNODE NK_INTEGER */ - -3, /* (437) dnode_list ::= dnode_list DNODE NK_INTEGER */ - -4, /* (438) cmd ::= DELETE FROM full_table_name where_clause_opt */ - -1, /* (439) cmd ::= query_or_subquery */ - -1, /* (440) cmd ::= insert_query */ - -7, /* (441) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - -4, /* (442) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - -1, /* (443) tags_literal ::= NK_INTEGER */ - -3, /* (444) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - -3, /* (445) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ - -2, /* (446) tags_literal ::= NK_PLUS NK_INTEGER */ - -4, /* (447) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - -4, /* (448) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ - -2, /* (449) tags_literal ::= NK_MINUS NK_INTEGER */ - -4, /* (450) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ - -4, /* (451) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ - -1, /* (452) tags_literal ::= NK_FLOAT */ - -2, /* (453) tags_literal ::= NK_PLUS NK_FLOAT */ - -2, /* (454) tags_literal ::= NK_MINUS NK_FLOAT */ - -1, /* (455) tags_literal ::= NK_BIN */ - -3, /* (456) tags_literal ::= NK_BIN NK_PLUS duration_literal */ - -3, /* (457) tags_literal ::= NK_BIN NK_MINUS duration_literal */ - -2, /* (458) tags_literal ::= NK_PLUS NK_BIN */ - -4, /* (459) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ - -4, /* (460) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ - -2, /* (461) tags_literal ::= NK_MINUS NK_BIN */ - -4, /* (462) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ - -4, /* (463) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ - -1, /* (464) tags_literal ::= NK_HEX */ - -3, /* (465) tags_literal ::= NK_HEX NK_PLUS duration_literal */ - -3, /* (466) tags_literal ::= NK_HEX NK_MINUS duration_literal */ - -2, /* (467) tags_literal ::= NK_PLUS NK_HEX */ - -4, /* (468) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ - -4, /* (469) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ - -2, /* (470) tags_literal ::= NK_MINUS NK_HEX */ - -4, /* (471) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ - -4, /* (472) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ - -1, /* (473) tags_literal ::= NK_STRING */ - -3, /* (474) tags_literal ::= NK_STRING NK_PLUS duration_literal */ - -3, /* (475) tags_literal ::= NK_STRING NK_MINUS duration_literal */ - -1, /* (476) tags_literal ::= NK_BOOL */ - -1, /* (477) tags_literal ::= NULL */ - -1, /* (478) tags_literal ::= literal_func */ - -3, /* (479) tags_literal ::= literal_func NK_PLUS duration_literal */ - -3, /* (480) tags_literal ::= literal_func NK_MINUS duration_literal */ - -1, /* (481) tags_literal_list ::= tags_literal */ - -3, /* (482) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ - -1, /* (483) literal ::= NK_INTEGER */ - -1, /* (484) literal ::= NK_FLOAT */ - -1, /* (485) literal ::= NK_STRING */ - -1, /* (486) literal ::= NK_BOOL */ - -2, /* (487) literal ::= TIMESTAMP NK_STRING */ - -1, /* (488) literal ::= duration_literal */ - -1, /* (489) literal ::= NULL */ - -1, /* (490) literal ::= NK_QUESTION */ - -1, /* (491) duration_literal ::= NK_VARIABLE */ - -1, /* (492) signed ::= NK_INTEGER */ - -2, /* (493) signed ::= NK_PLUS NK_INTEGER */ - -2, /* (494) signed ::= NK_MINUS NK_INTEGER */ - -1, /* (495) signed ::= NK_FLOAT */ - -2, /* (496) signed ::= NK_PLUS NK_FLOAT */ - -2, /* (497) signed ::= NK_MINUS NK_FLOAT */ - -1, /* (498) signed_literal ::= signed */ - -1, /* (499) signed_literal ::= NK_STRING */ - -1, /* (500) signed_literal ::= NK_BOOL */ - -2, /* (501) signed_literal ::= TIMESTAMP NK_STRING */ - -1, /* (502) signed_literal ::= duration_literal */ - -1, /* (503) signed_literal ::= NULL */ - -1, /* (504) signed_literal ::= literal_func */ - -1, /* (505) signed_literal ::= NK_QUESTION */ - -1, /* (506) literal_list ::= signed_literal */ - -3, /* (507) literal_list ::= literal_list NK_COMMA signed_literal */ - -1, /* (508) db_name ::= NK_ID */ - -1, /* (509) table_name ::= NK_ID */ - -1, /* (510) column_name ::= NK_ID */ - -1, /* (511) function_name ::= NK_ID */ - -1, /* (512) view_name ::= NK_ID */ - -1, /* (513) table_alias ::= NK_ID */ - -1, /* (514) column_alias ::= NK_ID */ - -1, /* (515) column_alias ::= NK_ALIAS */ - -1, /* (516) user_name ::= NK_ID */ - -1, /* (517) topic_name ::= NK_ID */ - -1, /* (518) stream_name ::= NK_ID */ - -1, /* (519) cgroup_name ::= NK_ID */ - -1, /* (520) index_name ::= NK_ID */ - -1, /* (521) tsma_name ::= NK_ID */ - -1, /* (522) expr_or_subquery ::= expression */ - -1, /* (523) expression ::= literal */ - -1, /* (524) expression ::= pseudo_column */ - -1, /* (525) expression ::= column_reference */ - -1, /* (526) expression ::= function_expression */ - -1, /* (527) expression ::= case_when_expression */ - -3, /* (528) expression ::= NK_LP expression NK_RP */ - -2, /* (529) expression ::= NK_PLUS expr_or_subquery */ - -2, /* (530) expression ::= NK_MINUS expr_or_subquery */ - -3, /* (531) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - -3, /* (532) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - -3, /* (533) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - -3, /* (534) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - -3, /* (535) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - -3, /* (536) expression ::= column_reference NK_ARROW NK_STRING */ - -3, /* (537) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - -3, /* (538) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - -1, /* (539) expression_list ::= expr_or_subquery */ - -3, /* (540) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - -1, /* (541) column_reference ::= column_name */ - -3, /* (542) column_reference ::= table_name NK_DOT column_name */ - -1, /* (543) column_reference ::= NK_ALIAS */ - -3, /* (544) column_reference ::= table_name NK_DOT NK_ALIAS */ - -1, /* (545) pseudo_column ::= ROWTS */ - -1, /* (546) pseudo_column ::= TBNAME */ - -3, /* (547) pseudo_column ::= table_name NK_DOT TBNAME */ - -1, /* (548) pseudo_column ::= QSTART */ - -1, /* (549) pseudo_column ::= QEND */ - -1, /* (550) pseudo_column ::= QDURATION */ - -1, /* (551) pseudo_column ::= WSTART */ - -1, /* (552) pseudo_column ::= WEND */ - -1, /* (553) pseudo_column ::= WDURATION */ - -1, /* (554) pseudo_column ::= IROWTS */ - -1, /* (555) pseudo_column ::= ISFILLED */ - -1, /* (556) pseudo_column ::= QTAGS */ - -4, /* (557) function_expression ::= function_name NK_LP expression_list NK_RP */ - -4, /* (558) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - -6, /* (559) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - -6, /* (560) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ - -1, /* (561) function_expression ::= literal_func */ - -3, /* (562) literal_func ::= noarg_func NK_LP NK_RP */ - -1, /* (563) literal_func ::= NOW */ - -1, /* (564) literal_func ::= TODAY */ - -1, /* (565) noarg_func ::= NOW */ - -1, /* (566) noarg_func ::= TODAY */ - -1, /* (567) noarg_func ::= TIMEZONE */ - -1, /* (568) noarg_func ::= DATABASE */ - -1, /* (569) noarg_func ::= CLIENT_VERSION */ - -1, /* (570) noarg_func ::= SERVER_VERSION */ - -1, /* (571) noarg_func ::= SERVER_STATUS */ - -1, /* (572) noarg_func ::= CURRENT_USER */ - -1, /* (573) noarg_func ::= USER */ - -1, /* (574) star_func ::= COUNT */ - -1, /* (575) star_func ::= FIRST */ - -1, /* (576) star_func ::= LAST */ - -1, /* (577) star_func ::= LAST_ROW */ - -1, /* (578) star_func_para_list ::= NK_STAR */ - -1, /* (579) star_func_para_list ::= other_para_list */ - -1, /* (580) other_para_list ::= star_func_para */ - -3, /* (581) other_para_list ::= other_para_list NK_COMMA star_func_para */ - -1, /* (582) star_func_para ::= expr_or_subquery */ - -3, /* (583) star_func_para ::= table_name NK_DOT NK_STAR */ - -4, /* (584) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - -5, /* (585) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - -1, /* (586) when_then_list ::= when_then_expr */ - -2, /* (587) when_then_list ::= when_then_list when_then_expr */ - -4, /* (588) when_then_expr ::= WHEN common_expression THEN common_expression */ - 0, /* (589) case_when_else_opt ::= */ - -2, /* (590) case_when_else_opt ::= ELSE common_expression */ - -3, /* (591) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - -5, /* (592) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - -6, /* (593) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - -3, /* (594) predicate ::= expr_or_subquery IS NULL */ - -4, /* (595) predicate ::= expr_or_subquery IS NOT NULL */ - -3, /* (596) predicate ::= expr_or_subquery in_op in_predicate_value */ - -1, /* (597) compare_op ::= NK_LT */ - -1, /* (598) compare_op ::= NK_GT */ - -1, /* (599) compare_op ::= NK_LE */ - -1, /* (600) compare_op ::= NK_GE */ - -1, /* (601) compare_op ::= NK_NE */ - -1, /* (602) compare_op ::= NK_EQ */ - -1, /* (603) compare_op ::= LIKE */ - -2, /* (604) compare_op ::= NOT LIKE */ - -1, /* (605) compare_op ::= MATCH */ - -1, /* (606) compare_op ::= NMATCH */ - -1, /* (607) compare_op ::= CONTAINS */ - -1, /* (608) in_op ::= IN */ - -2, /* (609) in_op ::= NOT IN */ - -3, /* (610) in_predicate_value ::= NK_LP literal_list NK_RP */ - -1, /* (611) boolean_value_expression ::= boolean_primary */ - -2, /* (612) boolean_value_expression ::= NOT boolean_primary */ - -3, /* (613) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - -3, /* (614) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - -1, /* (615) boolean_primary ::= predicate */ - -3, /* (616) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - -1, /* (617) common_expression ::= expr_or_subquery */ - -1, /* (618) common_expression ::= boolean_value_expression */ - 0, /* (619) from_clause_opt ::= */ - -2, /* (620) from_clause_opt ::= FROM table_reference_list */ - -1, /* (621) table_reference_list ::= table_reference */ - -3, /* (622) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - -1, /* (623) table_reference ::= table_primary */ - -1, /* (624) table_reference ::= joined_table */ - -2, /* (625) table_primary ::= table_name alias_opt */ - -4, /* (626) table_primary ::= db_name NK_DOT table_name alias_opt */ - -2, /* (627) table_primary ::= subquery alias_opt */ - -1, /* (628) table_primary ::= parenthesized_joined_table */ - 0, /* (629) alias_opt ::= */ - -1, /* (630) alias_opt ::= table_alias */ - -2, /* (631) alias_opt ::= AS table_alias */ - -3, /* (632) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - -3, /* (633) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - -8, /* (634) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ - 0, /* (635) join_type ::= */ - -1, /* (636) join_type ::= INNER */ - -1, /* (637) join_type ::= LEFT */ - -1, /* (638) join_type ::= RIGHT */ - -1, /* (639) join_type ::= FULL */ - 0, /* (640) join_subtype ::= */ - -1, /* (641) join_subtype ::= OUTER */ - -1, /* (642) join_subtype ::= SEMI */ - -1, /* (643) join_subtype ::= ANTI */ - -1, /* (644) join_subtype ::= ASOF */ - -1, /* (645) join_subtype ::= WINDOW */ - 0, /* (646) join_on_clause_opt ::= */ - -2, /* (647) join_on_clause_opt ::= ON search_condition */ - 0, /* (648) window_offset_clause_opt ::= */ - -6, /* (649) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ - -1, /* (650) window_offset_literal ::= NK_VARIABLE */ - -2, /* (651) window_offset_literal ::= NK_MINUS NK_VARIABLE */ - 0, /* (652) jlimit_clause_opt ::= */ - -2, /* (653) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ - -14, /* (654) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - 0, /* (655) hint_list ::= */ - -1, /* (656) hint_list ::= NK_HINT */ - 0, /* (657) tag_mode_opt ::= */ - -1, /* (658) tag_mode_opt ::= TAGS */ - 0, /* (659) set_quantifier_opt ::= */ - -1, /* (660) set_quantifier_opt ::= DISTINCT */ - -1, /* (661) set_quantifier_opt ::= ALL */ - -1, /* (662) select_list ::= select_item */ - -3, /* (663) select_list ::= select_list NK_COMMA select_item */ - -1, /* (664) select_item ::= NK_STAR */ - -1, /* (665) select_item ::= common_expression */ - -2, /* (666) select_item ::= common_expression column_alias */ - -3, /* (667) select_item ::= common_expression AS column_alias */ - -3, /* (668) select_item ::= table_name NK_DOT NK_STAR */ - 0, /* (669) where_clause_opt ::= */ - -2, /* (670) where_clause_opt ::= WHERE search_condition */ - 0, /* (671) partition_by_clause_opt ::= */ - -3, /* (672) partition_by_clause_opt ::= PARTITION BY partition_list */ - -1, /* (673) partition_list ::= partition_item */ - -3, /* (674) partition_list ::= partition_list NK_COMMA partition_item */ - -1, /* (675) partition_item ::= expr_or_subquery */ - -2, /* (676) partition_item ::= expr_or_subquery column_alias */ - -3, /* (677) partition_item ::= expr_or_subquery AS column_alias */ - 0, /* (678) twindow_clause_opt ::= */ - -6, /* (679) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ - -4, /* (680) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - -6, /* (681) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - -8, /* (682) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - -7, /* (683) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - -4, /* (684) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ - -6, /* (685) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 0, /* (686) sliding_opt ::= */ - -4, /* (687) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ - -1, /* (688) interval_sliding_duration_literal ::= NK_VARIABLE */ - -1, /* (689) interval_sliding_duration_literal ::= NK_STRING */ - -1, /* (690) interval_sliding_duration_literal ::= NK_INTEGER */ - 0, /* (691) fill_opt ::= */ - -4, /* (692) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - -6, /* (693) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - -6, /* (694) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - -1, /* (695) fill_mode ::= NONE */ - -1, /* (696) fill_mode ::= PREV */ - -1, /* (697) fill_mode ::= NULL */ - -1, /* (698) fill_mode ::= NULL_F */ - -1, /* (699) fill_mode ::= LINEAR */ - -1, /* (700) fill_mode ::= NEXT */ - 0, /* (701) group_by_clause_opt ::= */ - -3, /* (702) group_by_clause_opt ::= GROUP BY group_by_list */ - -1, /* (703) group_by_list ::= expr_or_subquery */ - -3, /* (704) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 0, /* (705) having_clause_opt ::= */ - -2, /* (706) having_clause_opt ::= HAVING search_condition */ - 0, /* (707) range_opt ::= */ - -6, /* (708) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - -4, /* (709) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 0, /* (710) every_opt ::= */ - -4, /* (711) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - -4, /* (712) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - -1, /* (713) query_simple ::= query_specification */ - -1, /* (714) query_simple ::= union_query_expression */ - -4, /* (715) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - -3, /* (716) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - -1, /* (717) query_simple_or_subquery ::= query_simple */ - -1, /* (718) query_simple_or_subquery ::= subquery */ - -1, /* (719) query_or_subquery ::= query_expression */ - -1, /* (720) query_or_subquery ::= subquery */ - 0, /* (721) order_by_clause_opt ::= */ - -3, /* (722) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 0, /* (723) slimit_clause_opt ::= */ - -2, /* (724) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - -4, /* (725) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - -4, /* (726) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 0, /* (727) limit_clause_opt ::= */ - -2, /* (728) limit_clause_opt ::= LIMIT NK_INTEGER */ - -4, /* (729) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - -4, /* (730) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - -3, /* (731) subquery ::= NK_LP query_expression NK_RP */ - -3, /* (732) subquery ::= NK_LP subquery NK_RP */ - -1, /* (733) search_condition ::= common_expression */ - -1, /* (734) sort_specification_list ::= sort_specification */ - -3, /* (735) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - -3, /* (736) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 0, /* (737) ordering_specification_opt ::= */ - -1, /* (738) ordering_specification_opt ::= ASC */ - -1, /* (739) ordering_specification_opt ::= DESC */ - 0, /* (740) null_ordering_opt ::= */ - -2, /* (741) null_ordering_opt ::= NULLS FIRST */ - -2, /* (742) null_ordering_opt ::= NULLS LAST */ - 0, /* (743) column_options ::= */ - -3, /* (744) column_options ::= column_options PRIMARY KEY */ - -3, /* (745) column_options ::= column_options ENCODE NK_STRING */ - -3, /* (746) column_options ::= column_options COMPRESS NK_STRING */ - -3, /* (747) column_options ::= column_options LEVEL NK_STRING */ + -1, /* (196) multi_create_clause ::= create_from_file_clause */ + -10, /* (197) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ + -7, /* (198) create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP NK_STRING */ + -1, /* (199) multi_drop_clause ::= drop_table_clause */ + -3, /* (200) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ + -2, /* (201) drop_table_clause ::= exists_opt full_table_name */ + 0, /* (202) specific_cols_opt ::= */ + -3, /* (203) specific_cols_opt ::= NK_LP col_name_list NK_RP */ + -1, /* (204) full_table_name ::= table_name */ + -3, /* (205) full_table_name ::= db_name NK_DOT table_name */ + -1, /* (206) tag_def_list ::= tag_def */ + -3, /* (207) tag_def_list ::= tag_def_list NK_COMMA tag_def */ + -2, /* (208) tag_def ::= column_name type_name */ + -1, /* (209) column_def_list ::= column_def */ + -3, /* (210) column_def_list ::= column_def_list NK_COMMA column_def */ + -3, /* (211) column_def ::= column_name type_name column_options */ + -1, /* (212) type_name ::= BOOL */ + -1, /* (213) type_name ::= TINYINT */ + -1, /* (214) type_name ::= SMALLINT */ + -1, /* (215) type_name ::= INT */ + -1, /* (216) type_name ::= INTEGER */ + -1, /* (217) type_name ::= BIGINT */ + -1, /* (218) type_name ::= FLOAT */ + -1, /* (219) type_name ::= DOUBLE */ + -4, /* (220) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + -1, /* (221) type_name ::= TIMESTAMP */ + -4, /* (222) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + -2, /* (223) type_name ::= TINYINT UNSIGNED */ + -2, /* (224) type_name ::= SMALLINT UNSIGNED */ + -2, /* (225) type_name ::= INT UNSIGNED */ + -2, /* (226) type_name ::= BIGINT UNSIGNED */ + -1, /* (227) type_name ::= JSON */ + -4, /* (228) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + -1, /* (229) type_name ::= MEDIUMBLOB */ + -1, /* (230) type_name ::= BLOB */ + -4, /* (231) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + -4, /* (232) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ + -1, /* (233) type_name ::= DECIMAL */ + -4, /* (234) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + -6, /* (235) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + -1, /* (236) type_name_default_len ::= BINARY */ + -1, /* (237) type_name_default_len ::= NCHAR */ + -1, /* (238) type_name_default_len ::= VARCHAR */ + -1, /* (239) type_name_default_len ::= VARBINARY */ + 0, /* (240) tags_def_opt ::= */ + -1, /* (241) tags_def_opt ::= tags_def */ + -4, /* (242) tags_def ::= TAGS NK_LP tag_def_list NK_RP */ + 0, /* (243) table_options ::= */ + -3, /* (244) table_options ::= table_options COMMENT NK_STRING */ + -3, /* (245) table_options ::= table_options MAX_DELAY duration_list */ + -3, /* (246) table_options ::= table_options WATERMARK duration_list */ + -5, /* (247) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + -3, /* (248) table_options ::= table_options TTL NK_INTEGER */ + -5, /* (249) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + -3, /* (250) table_options ::= table_options DELETE_MARK duration_list */ + -1, /* (251) alter_table_options ::= alter_table_option */ + -2, /* (252) alter_table_options ::= alter_table_options alter_table_option */ + -2, /* (253) alter_table_option ::= COMMENT NK_STRING */ + -2, /* (254) alter_table_option ::= TTL NK_INTEGER */ + -1, /* (255) duration_list ::= duration_literal */ + -3, /* (256) duration_list ::= duration_list NK_COMMA duration_literal */ + -1, /* (257) rollup_func_list ::= rollup_func_name */ + -3, /* (258) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + -1, /* (259) rollup_func_name ::= function_name */ + -1, /* (260) rollup_func_name ::= FIRST */ + -1, /* (261) rollup_func_name ::= LAST */ + -1, /* (262) col_name_list ::= col_name */ + -3, /* (263) col_name_list ::= col_name_list NK_COMMA col_name */ + -1, /* (264) col_name ::= column_name */ + -2, /* (265) cmd ::= SHOW DNODES */ + -2, /* (266) cmd ::= SHOW USERS */ + -3, /* (267) cmd ::= SHOW USER PRIVILEGES */ + -3, /* (268) cmd ::= SHOW db_kind_opt DATABASES */ + -4, /* (269) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + -4, /* (270) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + -3, /* (271) cmd ::= SHOW db_name_cond_opt VGROUPS */ + -2, /* (272) cmd ::= SHOW MNODES */ + -2, /* (273) cmd ::= SHOW QNODES */ + -2, /* (274) cmd ::= SHOW ARBGROUPS */ + -2, /* (275) cmd ::= SHOW FUNCTIONS */ + -5, /* (276) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + -6, /* (277) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + -2, /* (278) cmd ::= SHOW STREAMS */ + -2, /* (279) cmd ::= SHOW ACCOUNTS */ + -2, /* (280) cmd ::= SHOW APPS */ + -2, /* (281) cmd ::= SHOW CONNECTIONS */ + -2, /* (282) cmd ::= SHOW LICENCES */ + -2, /* (283) cmd ::= SHOW GRANTS */ + -3, /* (284) cmd ::= SHOW GRANTS FULL */ + -3, /* (285) cmd ::= SHOW GRANTS LOGS */ + -3, /* (286) cmd ::= SHOW CLUSTER MACHINES */ + -4, /* (287) cmd ::= SHOW CREATE DATABASE db_name */ + -4, /* (288) cmd ::= SHOW CREATE TABLE full_table_name */ + -4, /* (289) cmd ::= SHOW CREATE STABLE full_table_name */ + -2, /* (290) cmd ::= SHOW ENCRYPTIONS */ + -2, /* (291) cmd ::= SHOW QUERIES */ + -2, /* (292) cmd ::= SHOW SCORES */ + -2, /* (293) cmd ::= SHOW TOPICS */ + -2, /* (294) cmd ::= SHOW VARIABLES */ + -3, /* (295) cmd ::= SHOW CLUSTER VARIABLES */ + -3, /* (296) cmd ::= SHOW LOCAL VARIABLES */ + -5, /* (297) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + -2, /* (298) cmd ::= SHOW BNODES */ + -2, /* (299) cmd ::= SHOW SNODES */ + -2, /* (300) cmd ::= SHOW CLUSTER */ + -2, /* (301) cmd ::= SHOW TRANSACTIONS */ + -4, /* (302) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + -2, /* (303) cmd ::= SHOW CONSUMERS */ + -2, /* (304) cmd ::= SHOW SUBSCRIPTIONS */ + -5, /* (305) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + -6, /* (306) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + -7, /* (307) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + -8, /* (308) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + -5, /* (309) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + -2, /* (310) cmd ::= SHOW VNODES */ + -3, /* (311) cmd ::= SHOW db_name_cond_opt ALIVE */ + -3, /* (312) cmd ::= SHOW CLUSTER ALIVE */ + -4, /* (313) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ + -4, /* (314) cmd ::= SHOW CREATE VIEW full_table_name */ + -2, /* (315) cmd ::= SHOW COMPACTS */ + -3, /* (316) cmd ::= SHOW COMPACT NK_INTEGER */ + 0, /* (317) table_kind_db_name_cond_opt ::= */ + -1, /* (318) table_kind_db_name_cond_opt ::= table_kind */ + -2, /* (319) table_kind_db_name_cond_opt ::= db_name NK_DOT */ + -3, /* (320) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ + -1, /* (321) table_kind ::= NORMAL */ + -1, /* (322) table_kind ::= CHILD */ + 0, /* (323) db_name_cond_opt ::= */ + -2, /* (324) db_name_cond_opt ::= db_name NK_DOT */ + 0, /* (325) like_pattern_opt ::= */ + -2, /* (326) like_pattern_opt ::= LIKE NK_STRING */ + -1, /* (327) table_name_cond ::= table_name */ + 0, /* (328) from_db_opt ::= */ + -2, /* (329) from_db_opt ::= FROM db_name */ + 0, /* (330) tag_list_opt ::= */ + -1, /* (331) tag_list_opt ::= tag_item */ + -3, /* (332) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + -1, /* (333) tag_item ::= TBNAME */ + -1, /* (334) tag_item ::= QTAGS */ + -1, /* (335) tag_item ::= column_name */ + -2, /* (336) tag_item ::= column_name column_alias */ + -3, /* (337) tag_item ::= column_name AS column_alias */ + 0, /* (338) db_kind_opt ::= */ + -1, /* (339) db_kind_opt ::= USER */ + -1, /* (340) db_kind_opt ::= SYSTEM */ + -11, /* (341) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ + -11, /* (342) cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ + -4, /* (343) cmd ::= DROP TSMA exists_opt full_tsma_name */ + -3, /* (344) cmd ::= SHOW db_name_cond_opt TSMAS */ + -1, /* (345) full_tsma_name ::= tsma_name */ + -3, /* (346) full_tsma_name ::= db_name NK_DOT tsma_name */ + -4, /* (347) tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ + -8, /* (348) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + -9, /* (349) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ + -4, /* (350) cmd ::= DROP INDEX exists_opt full_index_name */ + -1, /* (351) full_index_name ::= index_name */ + -3, /* (352) full_index_name ::= db_name NK_DOT index_name */ + -10, /* (353) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + -12, /* (354) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ + -1, /* (355) func_list ::= func */ + -3, /* (356) func_list ::= func_list NK_COMMA func */ + -4, /* (357) func ::= sma_func_name NK_LP expression_list NK_RP */ + -1, /* (358) sma_func_name ::= function_name */ + -1, /* (359) sma_func_name ::= COUNT */ + -1, /* (360) sma_func_name ::= FIRST */ + -1, /* (361) sma_func_name ::= LAST */ + -1, /* (362) sma_func_name ::= LAST_ROW */ + 0, /* (363) sma_stream_opt ::= */ + -3, /* (364) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + -3, /* (365) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + -3, /* (366) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + -1, /* (367) with_meta ::= AS */ + -3, /* (368) with_meta ::= WITH META AS */ + -3, /* (369) with_meta ::= ONLY META AS */ + -6, /* (370) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + -7, /* (371) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + -8, /* (372) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + -4, /* (373) cmd ::= DROP TOPIC exists_opt topic_name */ + -7, /* (374) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + -2, /* (375) cmd ::= DESC full_table_name */ + -2, /* (376) cmd ::= DESCRIBE full_table_name */ + -3, /* (377) cmd ::= RESET QUERY CACHE */ + -4, /* (378) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + -4, /* (379) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 0, /* (380) analyze_opt ::= */ + -1, /* (381) analyze_opt ::= ANALYZE */ + 0, /* (382) explain_options ::= */ + -3, /* (383) explain_options ::= explain_options VERBOSE NK_BOOL */ + -3, /* (384) explain_options ::= explain_options RATIO NK_FLOAT */ + -12, /* (385) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + -4, /* (386) cmd ::= DROP FUNCTION exists_opt function_name */ + 0, /* (387) agg_func_opt ::= */ + -1, /* (388) agg_func_opt ::= AGGREGATE */ + 0, /* (389) bufsize_opt ::= */ + -2, /* (390) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 0, /* (391) language_opt ::= */ + -2, /* (392) language_opt ::= LANGUAGE NK_STRING */ + 0, /* (393) or_replace_opt ::= */ + -2, /* (394) or_replace_opt ::= OR REPLACE */ + -6, /* (395) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ + -4, /* (396) cmd ::= DROP VIEW exists_opt full_view_name */ + -1, /* (397) full_view_name ::= view_name */ + -3, /* (398) full_view_name ::= db_name NK_DOT view_name */ + -12, /* (399) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ + -4, /* (400) cmd ::= DROP STREAM exists_opt stream_name */ + -4, /* (401) cmd ::= PAUSE STREAM exists_opt stream_name */ + -5, /* (402) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 0, /* (403) col_list_opt ::= */ + -3, /* (404) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ + -1, /* (405) column_stream_def_list ::= column_stream_def */ + -3, /* (406) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ + -2, /* (407) column_stream_def ::= column_name stream_col_options */ + 0, /* (408) stream_col_options ::= */ + -3, /* (409) stream_col_options ::= stream_col_options PRIMARY KEY */ + 0, /* (410) tag_def_or_ref_opt ::= */ + -1, /* (411) tag_def_or_ref_opt ::= tags_def */ + -4, /* (412) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ + 0, /* (413) stream_options ::= */ + -3, /* (414) stream_options ::= stream_options TRIGGER AT_ONCE */ + -3, /* (415) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + -4, /* (416) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + -3, /* (417) stream_options ::= stream_options WATERMARK duration_literal */ + -4, /* (418) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + -3, /* (419) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + -3, /* (420) stream_options ::= stream_options DELETE_MARK duration_literal */ + -4, /* (421) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 0, /* (422) subtable_opt ::= */ + -4, /* (423) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 0, /* (424) ignore_opt ::= */ + -2, /* (425) ignore_opt ::= IGNORE UNTREATED */ + -3, /* (426) cmd ::= KILL CONNECTION NK_INTEGER */ + -3, /* (427) cmd ::= KILL QUERY NK_STRING */ + -3, /* (428) cmd ::= KILL TRANSACTION NK_INTEGER */ + -3, /* (429) cmd ::= KILL COMPACT NK_INTEGER */ + -2, /* (430) cmd ::= BALANCE VGROUP */ + -4, /* (431) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ + -5, /* (432) cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ + -4, /* (433) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + -4, /* (434) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + -3, /* (435) cmd ::= SPLIT VGROUP NK_INTEGER */ + 0, /* (436) on_vgroup_id ::= */ + -2, /* (437) on_vgroup_id ::= ON NK_INTEGER */ + -2, /* (438) dnode_list ::= DNODE NK_INTEGER */ + -3, /* (439) dnode_list ::= dnode_list DNODE NK_INTEGER */ + -4, /* (440) cmd ::= DELETE FROM full_table_name where_clause_opt */ + -1, /* (441) cmd ::= query_or_subquery */ + -1, /* (442) cmd ::= insert_query */ + -7, /* (443) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + -4, /* (444) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + -1, /* (445) tags_literal ::= NK_INTEGER */ + -3, /* (446) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + -3, /* (447) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ + -2, /* (448) tags_literal ::= NK_PLUS NK_INTEGER */ + -4, /* (449) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + -4, /* (450) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ + -2, /* (451) tags_literal ::= NK_MINUS NK_INTEGER */ + -4, /* (452) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ + -4, /* (453) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ + -1, /* (454) tags_literal ::= NK_FLOAT */ + -2, /* (455) tags_literal ::= NK_PLUS NK_FLOAT */ + -2, /* (456) tags_literal ::= NK_MINUS NK_FLOAT */ + -1, /* (457) tags_literal ::= NK_BIN */ + -3, /* (458) tags_literal ::= NK_BIN NK_PLUS duration_literal */ + -3, /* (459) tags_literal ::= NK_BIN NK_MINUS duration_literal */ + -2, /* (460) tags_literal ::= NK_PLUS NK_BIN */ + -4, /* (461) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ + -4, /* (462) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ + -2, /* (463) tags_literal ::= NK_MINUS NK_BIN */ + -4, /* (464) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ + -4, /* (465) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ + -1, /* (466) tags_literal ::= NK_HEX */ + -3, /* (467) tags_literal ::= NK_HEX NK_PLUS duration_literal */ + -3, /* (468) tags_literal ::= NK_HEX NK_MINUS duration_literal */ + -2, /* (469) tags_literal ::= NK_PLUS NK_HEX */ + -4, /* (470) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ + -4, /* (471) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ + -2, /* (472) tags_literal ::= NK_MINUS NK_HEX */ + -4, /* (473) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ + -4, /* (474) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ + -1, /* (475) tags_literal ::= NK_STRING */ + -3, /* (476) tags_literal ::= NK_STRING NK_PLUS duration_literal */ + -3, /* (477) tags_literal ::= NK_STRING NK_MINUS duration_literal */ + -1, /* (478) tags_literal ::= NK_BOOL */ + -1, /* (479) tags_literal ::= NULL */ + -1, /* (480) tags_literal ::= literal_func */ + -3, /* (481) tags_literal ::= literal_func NK_PLUS duration_literal */ + -3, /* (482) tags_literal ::= literal_func NK_MINUS duration_literal */ + -1, /* (483) tags_literal_list ::= tags_literal */ + -3, /* (484) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ + -1, /* (485) literal ::= NK_INTEGER */ + -1, /* (486) literal ::= NK_FLOAT */ + -1, /* (487) literal ::= NK_STRING */ + -1, /* (488) literal ::= NK_BOOL */ + -2, /* (489) literal ::= TIMESTAMP NK_STRING */ + -1, /* (490) literal ::= duration_literal */ + -1, /* (491) literal ::= NULL */ + -1, /* (492) literal ::= NK_QUESTION */ + -1, /* (493) duration_literal ::= NK_VARIABLE */ + -1, /* (494) signed ::= NK_INTEGER */ + -2, /* (495) signed ::= NK_PLUS NK_INTEGER */ + -2, /* (496) signed ::= NK_MINUS NK_INTEGER */ + -1, /* (497) signed ::= NK_FLOAT */ + -2, /* (498) signed ::= NK_PLUS NK_FLOAT */ + -2, /* (499) signed ::= NK_MINUS NK_FLOAT */ + -1, /* (500) signed_literal ::= signed */ + -1, /* (501) signed_literal ::= NK_STRING */ + -1, /* (502) signed_literal ::= NK_BOOL */ + -2, /* (503) signed_literal ::= TIMESTAMP NK_STRING */ + -1, /* (504) signed_literal ::= duration_literal */ + -1, /* (505) signed_literal ::= NULL */ + -1, /* (506) signed_literal ::= literal_func */ + -1, /* (507) signed_literal ::= NK_QUESTION */ + -1, /* (508) literal_list ::= signed_literal */ + -3, /* (509) literal_list ::= literal_list NK_COMMA signed_literal */ + -1, /* (510) db_name ::= NK_ID */ + -1, /* (511) table_name ::= NK_ID */ + -1, /* (512) column_name ::= NK_ID */ + -1, /* (513) function_name ::= NK_ID */ + -1, /* (514) view_name ::= NK_ID */ + -1, /* (515) table_alias ::= NK_ID */ + -1, /* (516) column_alias ::= NK_ID */ + -1, /* (517) column_alias ::= NK_ALIAS */ + -1, /* (518) user_name ::= NK_ID */ + -1, /* (519) topic_name ::= NK_ID */ + -1, /* (520) stream_name ::= NK_ID */ + -1, /* (521) cgroup_name ::= NK_ID */ + -1, /* (522) index_name ::= NK_ID */ + -1, /* (523) tsma_name ::= NK_ID */ + -1, /* (524) expr_or_subquery ::= expression */ + -1, /* (525) expression ::= literal */ + -1, /* (526) expression ::= pseudo_column */ + -1, /* (527) expression ::= column_reference */ + -1, /* (528) expression ::= function_expression */ + -1, /* (529) expression ::= case_when_expression */ + -3, /* (530) expression ::= NK_LP expression NK_RP */ + -2, /* (531) expression ::= NK_PLUS expr_or_subquery */ + -2, /* (532) expression ::= NK_MINUS expr_or_subquery */ + -3, /* (533) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + -3, /* (534) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + -3, /* (535) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + -3, /* (536) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + -3, /* (537) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + -3, /* (538) expression ::= column_reference NK_ARROW NK_STRING */ + -3, /* (539) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + -3, /* (540) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + -1, /* (541) expression_list ::= expr_or_subquery */ + -3, /* (542) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + -1, /* (543) column_reference ::= column_name */ + -3, /* (544) column_reference ::= table_name NK_DOT column_name */ + -1, /* (545) column_reference ::= NK_ALIAS */ + -3, /* (546) column_reference ::= table_name NK_DOT NK_ALIAS */ + -1, /* (547) pseudo_column ::= ROWTS */ + -1, /* (548) pseudo_column ::= TBNAME */ + -3, /* (549) pseudo_column ::= table_name NK_DOT TBNAME */ + -1, /* (550) pseudo_column ::= QSTART */ + -1, /* (551) pseudo_column ::= QEND */ + -1, /* (552) pseudo_column ::= QDURATION */ + -1, /* (553) pseudo_column ::= WSTART */ + -1, /* (554) pseudo_column ::= WEND */ + -1, /* (555) pseudo_column ::= WDURATION */ + -1, /* (556) pseudo_column ::= IROWTS */ + -1, /* (557) pseudo_column ::= ISFILLED */ + -1, /* (558) pseudo_column ::= QTAGS */ + -4, /* (559) function_expression ::= function_name NK_LP expression_list NK_RP */ + -4, /* (560) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + -6, /* (561) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + -6, /* (562) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ + -1, /* (563) function_expression ::= literal_func */ + -3, /* (564) literal_func ::= noarg_func NK_LP NK_RP */ + -1, /* (565) literal_func ::= NOW */ + -1, /* (566) literal_func ::= TODAY */ + -1, /* (567) noarg_func ::= NOW */ + -1, /* (568) noarg_func ::= TODAY */ + -1, /* (569) noarg_func ::= TIMEZONE */ + -1, /* (570) noarg_func ::= DATABASE */ + -1, /* (571) noarg_func ::= CLIENT_VERSION */ + -1, /* (572) noarg_func ::= SERVER_VERSION */ + -1, /* (573) noarg_func ::= SERVER_STATUS */ + -1, /* (574) noarg_func ::= CURRENT_USER */ + -1, /* (575) noarg_func ::= USER */ + -1, /* (576) star_func ::= COUNT */ + -1, /* (577) star_func ::= FIRST */ + -1, /* (578) star_func ::= LAST */ + -1, /* (579) star_func ::= LAST_ROW */ + -1, /* (580) star_func_para_list ::= NK_STAR */ + -1, /* (581) star_func_para_list ::= other_para_list */ + -1, /* (582) other_para_list ::= star_func_para */ + -3, /* (583) other_para_list ::= other_para_list NK_COMMA star_func_para */ + -1, /* (584) star_func_para ::= expr_or_subquery */ + -3, /* (585) star_func_para ::= table_name NK_DOT NK_STAR */ + -4, /* (586) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + -5, /* (587) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + -1, /* (588) when_then_list ::= when_then_expr */ + -2, /* (589) when_then_list ::= when_then_list when_then_expr */ + -4, /* (590) when_then_expr ::= WHEN common_expression THEN common_expression */ + 0, /* (591) case_when_else_opt ::= */ + -2, /* (592) case_when_else_opt ::= ELSE common_expression */ + -3, /* (593) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + -5, /* (594) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + -6, /* (595) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + -3, /* (596) predicate ::= expr_or_subquery IS NULL */ + -4, /* (597) predicate ::= expr_or_subquery IS NOT NULL */ + -3, /* (598) predicate ::= expr_or_subquery in_op in_predicate_value */ + -1, /* (599) compare_op ::= NK_LT */ + -1, /* (600) compare_op ::= NK_GT */ + -1, /* (601) compare_op ::= NK_LE */ + -1, /* (602) compare_op ::= NK_GE */ + -1, /* (603) compare_op ::= NK_NE */ + -1, /* (604) compare_op ::= NK_EQ */ + -1, /* (605) compare_op ::= LIKE */ + -2, /* (606) compare_op ::= NOT LIKE */ + -1, /* (607) compare_op ::= MATCH */ + -1, /* (608) compare_op ::= NMATCH */ + -1, /* (609) compare_op ::= CONTAINS */ + -1, /* (610) in_op ::= IN */ + -2, /* (611) in_op ::= NOT IN */ + -3, /* (612) in_predicate_value ::= NK_LP literal_list NK_RP */ + -1, /* (613) boolean_value_expression ::= boolean_primary */ + -2, /* (614) boolean_value_expression ::= NOT boolean_primary */ + -3, /* (615) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + -3, /* (616) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + -1, /* (617) boolean_primary ::= predicate */ + -3, /* (618) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + -1, /* (619) common_expression ::= expr_or_subquery */ + -1, /* (620) common_expression ::= boolean_value_expression */ + 0, /* (621) from_clause_opt ::= */ + -2, /* (622) from_clause_opt ::= FROM table_reference_list */ + -1, /* (623) table_reference_list ::= table_reference */ + -3, /* (624) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + -1, /* (625) table_reference ::= table_primary */ + -1, /* (626) table_reference ::= joined_table */ + -2, /* (627) table_primary ::= table_name alias_opt */ + -4, /* (628) table_primary ::= db_name NK_DOT table_name alias_opt */ + -2, /* (629) table_primary ::= subquery alias_opt */ + -1, /* (630) table_primary ::= parenthesized_joined_table */ + 0, /* (631) alias_opt ::= */ + -1, /* (632) alias_opt ::= table_alias */ + -2, /* (633) alias_opt ::= AS table_alias */ + -3, /* (634) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + -3, /* (635) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + -8, /* (636) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ + 0, /* (637) join_type ::= */ + -1, /* (638) join_type ::= INNER */ + -1, /* (639) join_type ::= LEFT */ + -1, /* (640) join_type ::= RIGHT */ + -1, /* (641) join_type ::= FULL */ + 0, /* (642) join_subtype ::= */ + -1, /* (643) join_subtype ::= OUTER */ + -1, /* (644) join_subtype ::= SEMI */ + -1, /* (645) join_subtype ::= ANTI */ + -1, /* (646) join_subtype ::= ASOF */ + -1, /* (647) join_subtype ::= WINDOW */ + 0, /* (648) join_on_clause_opt ::= */ + -2, /* (649) join_on_clause_opt ::= ON search_condition */ + 0, /* (650) window_offset_clause_opt ::= */ + -6, /* (651) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ + -1, /* (652) window_offset_literal ::= NK_VARIABLE */ + -2, /* (653) window_offset_literal ::= NK_MINUS NK_VARIABLE */ + 0, /* (654) jlimit_clause_opt ::= */ + -2, /* (655) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ + -14, /* (656) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + 0, /* (657) hint_list ::= */ + -1, /* (658) hint_list ::= NK_HINT */ + 0, /* (659) tag_mode_opt ::= */ + -1, /* (660) tag_mode_opt ::= TAGS */ + 0, /* (661) set_quantifier_opt ::= */ + -1, /* (662) set_quantifier_opt ::= DISTINCT */ + -1, /* (663) set_quantifier_opt ::= ALL */ + -1, /* (664) select_list ::= select_item */ + -3, /* (665) select_list ::= select_list NK_COMMA select_item */ + -1, /* (666) select_item ::= NK_STAR */ + -1, /* (667) select_item ::= common_expression */ + -2, /* (668) select_item ::= common_expression column_alias */ + -3, /* (669) select_item ::= common_expression AS column_alias */ + -3, /* (670) select_item ::= table_name NK_DOT NK_STAR */ + 0, /* (671) where_clause_opt ::= */ + -2, /* (672) where_clause_opt ::= WHERE search_condition */ + 0, /* (673) partition_by_clause_opt ::= */ + -3, /* (674) partition_by_clause_opt ::= PARTITION BY partition_list */ + -1, /* (675) partition_list ::= partition_item */ + -3, /* (676) partition_list ::= partition_list NK_COMMA partition_item */ + -1, /* (677) partition_item ::= expr_or_subquery */ + -2, /* (678) partition_item ::= expr_or_subquery column_alias */ + -3, /* (679) partition_item ::= expr_or_subquery AS column_alias */ + 0, /* (680) twindow_clause_opt ::= */ + -6, /* (681) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ + -4, /* (682) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + -6, /* (683) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + -8, /* (684) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + -7, /* (685) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + -4, /* (686) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ + -6, /* (687) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 0, /* (688) sliding_opt ::= */ + -4, /* (689) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ + -1, /* (690) interval_sliding_duration_literal ::= NK_VARIABLE */ + -1, /* (691) interval_sliding_duration_literal ::= NK_STRING */ + -1, /* (692) interval_sliding_duration_literal ::= NK_INTEGER */ + 0, /* (693) fill_opt ::= */ + -4, /* (694) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + -6, /* (695) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + -6, /* (696) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + -1, /* (697) fill_mode ::= NONE */ + -1, /* (698) fill_mode ::= PREV */ + -1, /* (699) fill_mode ::= NULL */ + -1, /* (700) fill_mode ::= NULL_F */ + -1, /* (701) fill_mode ::= LINEAR */ + -1, /* (702) fill_mode ::= NEXT */ + 0, /* (703) group_by_clause_opt ::= */ + -3, /* (704) group_by_clause_opt ::= GROUP BY group_by_list */ + -1, /* (705) group_by_list ::= expr_or_subquery */ + -3, /* (706) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 0, /* (707) having_clause_opt ::= */ + -2, /* (708) having_clause_opt ::= HAVING search_condition */ + 0, /* (709) range_opt ::= */ + -6, /* (710) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + -4, /* (711) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 0, /* (712) every_opt ::= */ + -4, /* (713) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + -4, /* (714) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + -1, /* (715) query_simple ::= query_specification */ + -1, /* (716) query_simple ::= union_query_expression */ + -4, /* (717) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + -3, /* (718) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + -1, /* (719) query_simple_or_subquery ::= query_simple */ + -1, /* (720) query_simple_or_subquery ::= subquery */ + -1, /* (721) query_or_subquery ::= query_expression */ + -1, /* (722) query_or_subquery ::= subquery */ + 0, /* (723) order_by_clause_opt ::= */ + -3, /* (724) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 0, /* (725) slimit_clause_opt ::= */ + -2, /* (726) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + -4, /* (727) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + -4, /* (728) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 0, /* (729) limit_clause_opt ::= */ + -2, /* (730) limit_clause_opt ::= LIMIT NK_INTEGER */ + -4, /* (731) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + -4, /* (732) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + -3, /* (733) subquery ::= NK_LP query_expression NK_RP */ + -3, /* (734) subquery ::= NK_LP subquery NK_RP */ + -1, /* (735) search_condition ::= common_expression */ + -1, /* (736) sort_specification_list ::= sort_specification */ + -3, /* (737) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + -3, /* (738) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 0, /* (739) ordering_specification_opt ::= */ + -1, /* (740) ordering_specification_opt ::= ASC */ + -1, /* (741) ordering_specification_opt ::= DESC */ + 0, /* (742) null_ordering_opt ::= */ + -2, /* (743) null_ordering_opt ::= NULLS FIRST */ + -2, /* (744) null_ordering_opt ::= NULLS LAST */ + 0, /* (745) column_options ::= */ + -3, /* (746) column_options ::= column_options PRIMARY KEY */ + -3, /* (747) column_options ::= column_options ENCODE NK_STRING */ + -3, /* (748) column_options ::= column_options COMPRESS NK_STRING */ + -3, /* (749) column_options ::= column_options LEVEL NK_STRING */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -5572,19 +5517,19 @@ static YYACTIONTYPE yy_reduce( case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ #line 50 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } -#line 5575 "sql.c" +#line 5520 "sql.c" yy_destructor(yypParser,377,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ #line 51 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } -#line 5581 "sql.c" +#line 5526 "sql.c" yy_destructor(yypParser,378,&yymsp[0].minor); break; case 2: /* account_options ::= */ #line 55 "sql.y" { } -#line 5587 "sql.c" +#line 5532 "sql.c" break; case 3: /* account_options ::= account_options PPS literal */ case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); @@ -5598,7 +5543,7 @@ static YYACTIONTYPE yy_reduce( { yy_destructor(yypParser,377,&yymsp[-2].minor); #line 56 "sql.y" { } -#line 5601 "sql.c" +#line 5546 "sql.c" yy_destructor(yypParser,379,&yymsp[0].minor); } break; @@ -5606,14 +5551,14 @@ static YYACTIONTYPE yy_reduce( { yy_destructor(yypParser,380,&yymsp[0].minor); #line 68 "sql.y" { } -#line 5609 "sql.c" +#line 5554 "sql.c" } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,378,&yymsp[-1].minor); #line 69 "sql.y" { } -#line 5616 "sql.c" +#line 5561 "sql.c" yy_destructor(yypParser,380,&yymsp[0].minor); } break; @@ -5629,3029 +5574,3036 @@ static YYACTIONTYPE yy_reduce( case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); #line 73 "sql.y" { } -#line 5632 "sql.c" +#line 5577 "sql.c" yy_destructor(yypParser,379,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ #line 86 "sql.y" -{ yylhsminor.yy748 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } -#line 5638 "sql.c" - yymsp[0].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } +#line 5583 "sql.c" + yymsp[0].minor.yy34 = yylhsminor.yy34; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ #line 87 "sql.y" -{ yylhsminor.yy748 = addNodeToList(pCxt, yymsp[-2].minor.yy748, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } -#line 5644 "sql.c" - yymsp[-2].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = addNodeToList(pCxt, yymsp[-2].minor.yy34, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } +#line 5589 "sql.c" + yymsp[-2].minor.yy34 = yylhsminor.yy34; break; case 26: /* white_list ::= HOST ip_range_list */ #line 91 "sql.y" -{ yymsp[-1].minor.yy748 = yymsp[0].minor.yy748; } -#line 5650 "sql.c" +{ yymsp[-1].minor.yy34 = yymsp[0].minor.yy34; } +#line 5595 "sql.c" break; case 27: /* white_list_opt ::= */ - case 200: /* specific_cols_opt ::= */ yytestcase(yyruleno==200); - case 238: /* tags_def_opt ::= */ yytestcase(yyruleno==238); - case 328: /* tag_list_opt ::= */ yytestcase(yyruleno==328); - case 401: /* col_list_opt ::= */ yytestcase(yyruleno==401); - case 408: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==408); - case 671: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==671); - case 701: /* group_by_clause_opt ::= */ yytestcase(yyruleno==701); - case 721: /* order_by_clause_opt ::= */ yytestcase(yyruleno==721); + case 202: /* specific_cols_opt ::= */ yytestcase(yyruleno==202); + case 240: /* tags_def_opt ::= */ yytestcase(yyruleno==240); + case 330: /* tag_list_opt ::= */ yytestcase(yyruleno==330); + case 403: /* col_list_opt ::= */ yytestcase(yyruleno==403); + case 410: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==410); + case 673: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==673); + case 703: /* group_by_clause_opt ::= */ yytestcase(yyruleno==703); + case 723: /* order_by_clause_opt ::= */ yytestcase(yyruleno==723); #line 95 "sql.y" -{ yymsp[1].minor.yy748 = NULL; } -#line 5663 "sql.c" +{ yymsp[1].minor.yy34 = NULL; } +#line 5608 "sql.c" break; case 28: /* white_list_opt ::= white_list */ - case 239: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==239); - case 409: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==409); - case 579: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==579); + case 241: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==241); + case 411: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==411); + case 581: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==581); #line 96 "sql.y" -{ yylhsminor.yy748 = yymsp[0].minor.yy748; } -#line 5671 "sql.c" - yymsp[0].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = yymsp[0].minor.yy34; } +#line 5616 "sql.c" + yymsp[0].minor.yy34 = yylhsminor.yy34; break; case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ #line 100 "sql.y" { - pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy649, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy663); - pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy748); + pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy479, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy323); + pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy34); } -#line 5680 "sql.c" +#line 5625 "sql.c" break; case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */ #line 104 "sql.y" -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy649, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } -#line 5685 "sql.c" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy479, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +#line 5630 "sql.c" break; case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ #line 105 "sql.y" -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy649, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } -#line 5690 "sql.c" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy479, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } +#line 5635 "sql.c" break; case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ #line 106 "sql.y" -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy649, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } -#line 5695 "sql.c" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy479, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } +#line 5640 "sql.c" break; case 33: /* cmd ::= ALTER USER user_name ADD white_list */ #line 107 "sql.y" -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy649, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy748); } -#line 5700 "sql.c" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy479, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy34); } +#line 5645 "sql.c" break; case 34: /* cmd ::= ALTER USER user_name DROP white_list */ #line 108 "sql.y" -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy649, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy748); } -#line 5705 "sql.c" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy479, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy34); } +#line 5650 "sql.c" break; case 35: /* cmd ::= DROP USER user_name */ #line 109 "sql.y" -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy649); } -#line 5710 "sql.c" +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy479); } +#line 5655 "sql.c" break; case 36: /* sysinfo_opt ::= */ #line 113 "sql.y" -{ yymsp[1].minor.yy663 = 1; } -#line 5715 "sql.c" +{ yymsp[1].minor.yy323 = 1; } +#line 5660 "sql.c" break; case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ #line 114 "sql.y" -{ yymsp[-1].minor.yy663 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } -#line 5720 "sql.c" +{ yymsp[-1].minor.yy323 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +#line 5665 "sql.c" break; case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ #line 117 "sql.y" -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy941, &yymsp[-3].minor.yy781, &yymsp[0].minor.yy649, yymsp[-2].minor.yy600); } -#line 5725 "sql.c" +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy579, &yymsp[-3].minor.yy687, &yymsp[0].minor.yy479, yymsp[-2].minor.yy452); } +#line 5670 "sql.c" break; case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ #line 118 "sql.y" -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy941, &yymsp[-3].minor.yy781, &yymsp[0].minor.yy649, yymsp[-2].minor.yy600); } -#line 5730 "sql.c" +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy579, &yymsp[-3].minor.yy687, &yymsp[0].minor.yy479, yymsp[-2].minor.yy452); } +#line 5675 "sql.c" break; case 40: /* privileges ::= ALL */ #line 122 "sql.y" -{ yymsp[0].minor.yy941 = PRIVILEGE_TYPE_ALL; } -#line 5735 "sql.c" +{ yymsp[0].minor.yy579 = PRIVILEGE_TYPE_ALL; } +#line 5680 "sql.c" break; case 41: /* privileges ::= priv_type_list */ case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43); #line 123 "sql.y" -{ yylhsminor.yy941 = yymsp[0].minor.yy941; } -#line 5741 "sql.c" - yymsp[0].minor.yy941 = yylhsminor.yy941; +{ yylhsminor.yy579 = yymsp[0].minor.yy579; } +#line 5686 "sql.c" + yymsp[0].minor.yy579 = yylhsminor.yy579; break; case 42: /* privileges ::= SUBSCRIBE */ #line 124 "sql.y" -{ yymsp[0].minor.yy941 = PRIVILEGE_TYPE_SUBSCRIBE; } -#line 5747 "sql.c" +{ yymsp[0].minor.yy579 = PRIVILEGE_TYPE_SUBSCRIBE; } +#line 5692 "sql.c" break; case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ #line 129 "sql.y" -{ yylhsminor.yy941 = yymsp[-2].minor.yy941 | yymsp[0].minor.yy941; } -#line 5752 "sql.c" - yymsp[-2].minor.yy941 = yylhsminor.yy941; +{ yylhsminor.yy579 = yymsp[-2].minor.yy579 | yymsp[0].minor.yy579; } +#line 5697 "sql.c" + yymsp[-2].minor.yy579 = yylhsminor.yy579; break; case 45: /* priv_type ::= READ */ #line 133 "sql.y" -{ yymsp[0].minor.yy941 = PRIVILEGE_TYPE_READ; } -#line 5758 "sql.c" +{ yymsp[0].minor.yy579 = PRIVILEGE_TYPE_READ; } +#line 5703 "sql.c" break; case 46: /* priv_type ::= WRITE */ #line 134 "sql.y" -{ yymsp[0].minor.yy941 = PRIVILEGE_TYPE_WRITE; } -#line 5763 "sql.c" +{ yymsp[0].minor.yy579 = PRIVILEGE_TYPE_WRITE; } +#line 5708 "sql.c" break; case 47: /* priv_type ::= ALTER */ #line 135 "sql.y" -{ yymsp[0].minor.yy941 = PRIVILEGE_TYPE_ALTER; } -#line 5768 "sql.c" +{ yymsp[0].minor.yy579 = PRIVILEGE_TYPE_ALTER; } +#line 5713 "sql.c" break; case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ #line 139 "sql.y" -{ yylhsminor.yy781.first = yymsp[-2].minor.yy0; yylhsminor.yy781.second = yymsp[0].minor.yy0; } -#line 5773 "sql.c" - yymsp[-2].minor.yy781 = yylhsminor.yy781; +{ yylhsminor.yy687.first = yymsp[-2].minor.yy0; yylhsminor.yy687.second = yymsp[0].minor.yy0; } +#line 5718 "sql.c" + yymsp[-2].minor.yy687 = yylhsminor.yy687; break; case 49: /* priv_level ::= db_name NK_DOT NK_STAR */ #line 140 "sql.y" -{ yylhsminor.yy781.first = yymsp[-2].minor.yy649; yylhsminor.yy781.second = yymsp[0].minor.yy0; } -#line 5779 "sql.c" - yymsp[-2].minor.yy781 = yylhsminor.yy781; +{ yylhsminor.yy687.first = yymsp[-2].minor.yy479; yylhsminor.yy687.second = yymsp[0].minor.yy0; } +#line 5724 "sql.c" + yymsp[-2].minor.yy687 = yylhsminor.yy687; break; case 50: /* priv_level ::= db_name NK_DOT table_name */ #line 141 "sql.y" -{ yylhsminor.yy781.first = yymsp[-2].minor.yy649; yylhsminor.yy781.second = yymsp[0].minor.yy649; } -#line 5785 "sql.c" - yymsp[-2].minor.yy781 = yylhsminor.yy781; +{ yylhsminor.yy687.first = yymsp[-2].minor.yy479; yylhsminor.yy687.second = yymsp[0].minor.yy479; } +#line 5730 "sql.c" + yymsp[-2].minor.yy687 = yylhsminor.yy687; break; case 51: /* priv_level ::= topic_name */ #line 142 "sql.y" -{ yylhsminor.yy781.first = yymsp[0].minor.yy649; yylhsminor.yy781.second = nil_token; } -#line 5791 "sql.c" - yymsp[0].minor.yy781 = yylhsminor.yy781; +{ yylhsminor.yy687.first = yymsp[0].minor.yy479; yylhsminor.yy687.second = nil_token; } +#line 5736 "sql.c" + yymsp[0].minor.yy687 = yylhsminor.yy687; break; case 52: /* with_opt ::= */ case 168: /* start_opt ::= */ yytestcase(yyruleno==168); case 172: /* end_opt ::= */ yytestcase(yyruleno==172); - case 323: /* like_pattern_opt ::= */ yytestcase(yyruleno==323); - case 420: /* subtable_opt ::= */ yytestcase(yyruleno==420); - case 589: /* case_when_else_opt ::= */ yytestcase(yyruleno==589); - case 619: /* from_clause_opt ::= */ yytestcase(yyruleno==619); - case 646: /* join_on_clause_opt ::= */ yytestcase(yyruleno==646); - case 648: /* window_offset_clause_opt ::= */ yytestcase(yyruleno==648); - case 652: /* jlimit_clause_opt ::= */ yytestcase(yyruleno==652); - case 669: /* where_clause_opt ::= */ yytestcase(yyruleno==669); - case 678: /* twindow_clause_opt ::= */ yytestcase(yyruleno==678); - case 686: /* sliding_opt ::= */ yytestcase(yyruleno==686); - case 691: /* fill_opt ::= */ yytestcase(yyruleno==691); - case 705: /* having_clause_opt ::= */ yytestcase(yyruleno==705); - case 707: /* range_opt ::= */ yytestcase(yyruleno==707); - case 710: /* every_opt ::= */ yytestcase(yyruleno==710); - case 723: /* slimit_clause_opt ::= */ yytestcase(yyruleno==723); - case 727: /* limit_clause_opt ::= */ yytestcase(yyruleno==727); + case 325: /* like_pattern_opt ::= */ yytestcase(yyruleno==325); + case 422: /* subtable_opt ::= */ yytestcase(yyruleno==422); + case 591: /* case_when_else_opt ::= */ yytestcase(yyruleno==591); + case 621: /* from_clause_opt ::= */ yytestcase(yyruleno==621); + case 648: /* join_on_clause_opt ::= */ yytestcase(yyruleno==648); + case 650: /* window_offset_clause_opt ::= */ yytestcase(yyruleno==650); + case 654: /* jlimit_clause_opt ::= */ yytestcase(yyruleno==654); + case 671: /* where_clause_opt ::= */ yytestcase(yyruleno==671); + case 680: /* twindow_clause_opt ::= */ yytestcase(yyruleno==680); + case 688: /* sliding_opt ::= */ yytestcase(yyruleno==688); + case 693: /* fill_opt ::= */ yytestcase(yyruleno==693); + case 707: /* having_clause_opt ::= */ yytestcase(yyruleno==707); + case 709: /* range_opt ::= */ yytestcase(yyruleno==709); + case 712: /* every_opt ::= */ yytestcase(yyruleno==712); + case 725: /* slimit_clause_opt ::= */ yytestcase(yyruleno==725); + case 729: /* limit_clause_opt ::= */ yytestcase(yyruleno==729); #line 144 "sql.y" -{ yymsp[1].minor.yy600 = NULL; } -#line 5815 "sql.c" +{ yymsp[1].minor.yy452 = NULL; } +#line 5760 "sql.c" break; case 53: /* with_opt ::= WITH search_condition */ - case 620: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==620); - case 647: /* join_on_clause_opt ::= ON search_condition */ yytestcase(yyruleno==647); - case 670: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==670); - case 706: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==706); + case 622: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==622); + case 649: /* join_on_clause_opt ::= ON search_condition */ yytestcase(yyruleno==649); + case 672: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==672); + case 708: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==708); #line 145 "sql.y" -{ yymsp[-1].minor.yy600 = yymsp[0].minor.yy600; } -#line 5824 "sql.c" +{ yymsp[-1].minor.yy452 = yymsp[0].minor.yy452; } +#line 5769 "sql.c" break; case 54: /* cmd ::= CREATE ENCRYPT_KEY NK_STRING */ #line 148 "sql.y" { pCxt->pRootNode = createEncryptKeyStmt(pCxt, &yymsp[0].minor.yy0); } -#line 5829 "sql.c" +#line 5774 "sql.c" break; case 55: /* cmd ::= CREATE DNODE dnode_endpoint */ #line 151 "sql.y" -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy649, NULL); } -#line 5834 "sql.c" +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy479, NULL); } +#line 5779 "sql.c" break; case 56: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ #line 152 "sql.y" -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy0); } -#line 5839 "sql.c" +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy0); } +#line 5784 "sql.c" break; case 57: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ #line 153 "sql.y" -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy705, false); } -#line 5844 "sql.c" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy437, false); } +#line 5789 "sql.c" break; case 58: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ #line 154 "sql.y" -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy649, yymsp[0].minor.yy705, false); } -#line 5849 "sql.c" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy479, yymsp[0].minor.yy437, false); } +#line 5794 "sql.c" break; case 59: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ #line 155 "sql.y" -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy705); } -#line 5854 "sql.c" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy437); } +#line 5799 "sql.c" break; case 60: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ #line 156 "sql.y" -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy649, false, yymsp[0].minor.yy705); } -#line 5859 "sql.c" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy479, false, yymsp[0].minor.yy437); } +#line 5804 "sql.c" break; case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ #line 157 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } -#line 5864 "sql.c" +#line 5809 "sql.c" break; case 62: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ #line 158 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 5869 "sql.c" +#line 5814 "sql.c" break; case 63: /* cmd ::= ALTER ALL DNODES NK_STRING */ #line 159 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } -#line 5874 "sql.c" +#line 5819 "sql.c" break; case 64: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ #line 160 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 5879 "sql.c" +#line 5824 "sql.c" break; case 65: /* cmd ::= RESTORE DNODE NK_INTEGER */ #line 161 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } -#line 5884 "sql.c" +#line 5829 "sql.c" break; case 66: /* dnode_endpoint ::= NK_STRING */ case 67: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==67); case 68: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==68); - case 357: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==357); - case 358: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==358); - case 359: /* sma_func_name ::= LAST */ yytestcase(yyruleno==359); - case 360: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==360); - case 508: /* db_name ::= NK_ID */ yytestcase(yyruleno==508); - case 509: /* table_name ::= NK_ID */ yytestcase(yyruleno==509); - case 510: /* column_name ::= NK_ID */ yytestcase(yyruleno==510); - case 511: /* function_name ::= NK_ID */ yytestcase(yyruleno==511); - case 512: /* view_name ::= NK_ID */ yytestcase(yyruleno==512); - case 513: /* table_alias ::= NK_ID */ yytestcase(yyruleno==513); - case 514: /* column_alias ::= NK_ID */ yytestcase(yyruleno==514); - case 515: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==515); - case 516: /* user_name ::= NK_ID */ yytestcase(yyruleno==516); - case 517: /* topic_name ::= NK_ID */ yytestcase(yyruleno==517); - case 518: /* stream_name ::= NK_ID */ yytestcase(yyruleno==518); - case 519: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==519); - case 520: /* index_name ::= NK_ID */ yytestcase(yyruleno==520); - case 521: /* tsma_name ::= NK_ID */ yytestcase(yyruleno==521); - case 565: /* noarg_func ::= NOW */ yytestcase(yyruleno==565); - case 566: /* noarg_func ::= TODAY */ yytestcase(yyruleno==566); - case 567: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==567); - case 568: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==568); - case 569: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==569); - case 570: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==570); - case 571: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==571); - case 572: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==572); - case 573: /* noarg_func ::= USER */ yytestcase(yyruleno==573); - case 574: /* star_func ::= COUNT */ yytestcase(yyruleno==574); - case 575: /* star_func ::= FIRST */ yytestcase(yyruleno==575); - case 576: /* star_func ::= LAST */ yytestcase(yyruleno==576); - case 577: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==577); + case 359: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==359); + case 360: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==360); + case 361: /* sma_func_name ::= LAST */ yytestcase(yyruleno==361); + case 362: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==362); + case 510: /* db_name ::= NK_ID */ yytestcase(yyruleno==510); + case 511: /* table_name ::= NK_ID */ yytestcase(yyruleno==511); + case 512: /* column_name ::= NK_ID */ yytestcase(yyruleno==512); + case 513: /* function_name ::= NK_ID */ yytestcase(yyruleno==513); + case 514: /* view_name ::= NK_ID */ yytestcase(yyruleno==514); + case 515: /* table_alias ::= NK_ID */ yytestcase(yyruleno==515); + case 516: /* column_alias ::= NK_ID */ yytestcase(yyruleno==516); + case 517: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==517); + case 518: /* user_name ::= NK_ID */ yytestcase(yyruleno==518); + case 519: /* topic_name ::= NK_ID */ yytestcase(yyruleno==519); + case 520: /* stream_name ::= NK_ID */ yytestcase(yyruleno==520); + case 521: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==521); + case 522: /* index_name ::= NK_ID */ yytestcase(yyruleno==522); + case 523: /* tsma_name ::= NK_ID */ yytestcase(yyruleno==523); + case 567: /* noarg_func ::= NOW */ yytestcase(yyruleno==567); + case 568: /* noarg_func ::= TODAY */ yytestcase(yyruleno==568); + case 569: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==569); + case 570: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==570); + case 571: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==571); + case 572: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==572); + case 573: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==573); + case 574: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==574); + case 575: /* noarg_func ::= USER */ yytestcase(yyruleno==575); + case 576: /* star_func ::= COUNT */ yytestcase(yyruleno==576); + case 577: /* star_func ::= FIRST */ yytestcase(yyruleno==577); + case 578: /* star_func ::= LAST */ yytestcase(yyruleno==578); + case 579: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==579); #line 165 "sql.y" -{ yylhsminor.yy649 = yymsp[0].minor.yy0; } -#line 5922 "sql.c" - yymsp[0].minor.yy649 = yylhsminor.yy649; +{ yylhsminor.yy479 = yymsp[0].minor.yy0; } +#line 5867 "sql.c" + yymsp[0].minor.yy479 = yylhsminor.yy479; break; case 69: /* force_opt ::= */ case 96: /* not_exists_opt ::= */ yytestcase(yyruleno==96); case 98: /* exists_opt ::= */ yytestcase(yyruleno==98); - case 378: /* analyze_opt ::= */ yytestcase(yyruleno==378); - case 385: /* agg_func_opt ::= */ yytestcase(yyruleno==385); - case 391: /* or_replace_opt ::= */ yytestcase(yyruleno==391); - case 422: /* ignore_opt ::= */ yytestcase(yyruleno==422); - case 657: /* tag_mode_opt ::= */ yytestcase(yyruleno==657); - case 659: /* set_quantifier_opt ::= */ yytestcase(yyruleno==659); + case 380: /* analyze_opt ::= */ yytestcase(yyruleno==380); + case 387: /* agg_func_opt ::= */ yytestcase(yyruleno==387); + case 393: /* or_replace_opt ::= */ yytestcase(yyruleno==393); + case 424: /* ignore_opt ::= */ yytestcase(yyruleno==424); + case 659: /* tag_mode_opt ::= */ yytestcase(yyruleno==659); + case 661: /* set_quantifier_opt ::= */ yytestcase(yyruleno==661); #line 171 "sql.y" -{ yymsp[1].minor.yy705 = false; } -#line 5936 "sql.c" +{ yymsp[1].minor.yy437 = false; } +#line 5881 "sql.c" break; case 70: /* force_opt ::= FORCE */ case 71: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==71); - case 379: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==379); - case 386: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==386); - case 658: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==658); - case 660: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==660); + case 381: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==381); + case 388: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==388); + case 660: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==660); + case 662: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==662); #line 172 "sql.y" -{ yymsp[0].minor.yy705 = true; } -#line 5946 "sql.c" +{ yymsp[0].minor.yy437 = true; } +#line 5891 "sql.c" break; case 72: /* cmd ::= ALTER CLUSTER NK_STRING */ #line 179 "sql.y" { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 5951 "sql.c" +#line 5896 "sql.c" break; case 73: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ #line 180 "sql.y" { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 5956 "sql.c" +#line 5901 "sql.c" break; case 74: /* cmd ::= ALTER LOCAL NK_STRING */ #line 183 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 5961 "sql.c" +#line 5906 "sql.c" break; case 75: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ #line 184 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 5966 "sql.c" +#line 5911 "sql.c" break; case 76: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ #line 187 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } -#line 5971 "sql.c" +#line 5916 "sql.c" break; case 77: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ #line 188 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } -#line 5976 "sql.c" +#line 5921 "sql.c" break; case 78: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ #line 189 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } -#line 5981 "sql.c" +#line 5926 "sql.c" break; case 79: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ #line 192 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } -#line 5986 "sql.c" +#line 5931 "sql.c" break; case 80: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ #line 193 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } -#line 5991 "sql.c" +#line 5936 "sql.c" break; case 81: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ #line 196 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } -#line 5996 "sql.c" +#line 5941 "sql.c" break; case 82: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ #line 197 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } -#line 6001 "sql.c" +#line 5946 "sql.c" break; case 83: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ #line 200 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } -#line 6006 "sql.c" +#line 5951 "sql.c" break; case 84: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ #line 201 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } -#line 6011 "sql.c" +#line 5956 "sql.c" break; case 85: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ #line 202 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } -#line 6016 "sql.c" +#line 5961 "sql.c" break; case 86: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ #line 205 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } -#line 6021 "sql.c" +#line 5966 "sql.c" break; case 87: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ #line 208 "sql.y" -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy705, &yymsp[-1].minor.yy649, yymsp[0].minor.yy600); } -#line 6026 "sql.c" +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy437, &yymsp[-1].minor.yy479, yymsp[0].minor.yy452); } +#line 5971 "sql.c" break; case 88: /* cmd ::= DROP DATABASE exists_opt db_name */ #line 209 "sql.y" -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy705, &yymsp[0].minor.yy649); } -#line 6031 "sql.c" +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy479); } +#line 5976 "sql.c" break; case 89: /* cmd ::= USE db_name */ #line 210 "sql.y" -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy649); } -#line 6036 "sql.c" +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy479); } +#line 5981 "sql.c" break; case 90: /* cmd ::= ALTER DATABASE db_name alter_db_options */ #line 211 "sql.y" -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy649, yymsp[0].minor.yy600); } -#line 6041 "sql.c" +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy479, yymsp[0].minor.yy452); } +#line 5986 "sql.c" break; case 91: /* cmd ::= FLUSH DATABASE db_name */ #line 212 "sql.y" -{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy649); } -#line 6046 "sql.c" +{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy479); } +#line 5991 "sql.c" break; case 92: /* cmd ::= TRIM DATABASE db_name speed_opt */ #line 213 "sql.y" -{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy649, yymsp[0].minor.yy756); } -#line 6051 "sql.c" +{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy479, yymsp[0].minor.yy100); } +#line 5996 "sql.c" break; case 93: /* cmd ::= S3MIGRATE DATABASE db_name */ #line 214 "sql.y" -{ pCxt->pRootNode = createS3MigrateDatabaseStmt(pCxt, &yymsp[0].minor.yy649); } -#line 6056 "sql.c" +{ pCxt->pRootNode = createS3MigrateDatabaseStmt(pCxt, &yymsp[0].minor.yy479); } +#line 6001 "sql.c" break; case 94: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ #line 215 "sql.y" -{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy649, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } -#line 6061 "sql.c" +{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy479, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } +#line 6006 "sql.c" break; case 95: /* not_exists_opt ::= IF NOT EXISTS */ #line 219 "sql.y" -{ yymsp[-2].minor.yy705 = true; } -#line 6066 "sql.c" +{ yymsp[-2].minor.yy437 = true; } +#line 6011 "sql.c" break; case 97: /* exists_opt ::= IF EXISTS */ - case 392: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==392); - case 423: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==423); + case 394: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==394); + case 425: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==425); #line 224 "sql.y" -{ yymsp[-1].minor.yy705 = true; } -#line 6073 "sql.c" +{ yymsp[-1].minor.yy437 = true; } +#line 6018 "sql.c" break; case 99: /* db_options ::= */ #line 227 "sql.y" -{ yymsp[1].minor.yy600 = createDefaultDatabaseOptions(pCxt); } -#line 6078 "sql.c" +{ yymsp[1].minor.yy452 = createDefaultDatabaseOptions(pCxt); } +#line 6023 "sql.c" break; case 100: /* db_options ::= db_options BUFFER NK_INTEGER */ #line 228 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } -#line 6083 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } +#line 6028 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 101: /* db_options ::= db_options CACHEMODEL NK_STRING */ #line 229 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } -#line 6089 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } +#line 6034 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 102: /* db_options ::= db_options CACHESIZE NK_INTEGER */ #line 230 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } -#line 6095 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } +#line 6040 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 103: /* db_options ::= db_options COMP NK_INTEGER */ #line 231 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_COMP, &yymsp[0].minor.yy0); } -#line 6101 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_COMP, &yymsp[0].minor.yy0); } +#line 6046 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 104: /* db_options ::= db_options DURATION NK_INTEGER */ case 105: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==105); #line 232 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } -#line 6108 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } +#line 6053 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 106: /* db_options ::= db_options MAXROWS NK_INTEGER */ #line 234 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } -#line 6114 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } +#line 6059 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 107: /* db_options ::= db_options MINROWS NK_INTEGER */ #line 235 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } -#line 6120 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } +#line 6065 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 108: /* db_options ::= db_options KEEP integer_list */ case 109: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==109); #line 236 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_KEEP, yymsp[0].minor.yy748); } -#line 6127 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_KEEP, yymsp[0].minor.yy34); } +#line 6072 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 110: /* db_options ::= db_options PAGES NK_INTEGER */ #line 238 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } -#line 6133 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } +#line 6078 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 111: /* db_options ::= db_options PAGESIZE NK_INTEGER */ #line 239 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } -#line 6139 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } +#line 6084 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 112: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ #line 240 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } -#line 6145 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } +#line 6090 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 113: /* db_options ::= db_options PRECISION NK_STRING */ #line 241 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } -#line 6151 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } +#line 6096 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 114: /* db_options ::= db_options REPLICA NK_INTEGER */ #line 242 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } -#line 6157 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } +#line 6102 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 115: /* db_options ::= db_options VGROUPS NK_INTEGER */ #line 244 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } -#line 6163 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } +#line 6108 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 116: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ #line 245 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } -#line 6169 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } +#line 6114 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 117: /* db_options ::= db_options RETENTIONS retention_list */ #line 246 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_RETENTIONS, yymsp[0].minor.yy748); } -#line 6175 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_RETENTIONS, yymsp[0].minor.yy34); } +#line 6120 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 118: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ #line 247 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } -#line 6181 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } +#line 6126 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 119: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ #line 248 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL, &yymsp[0].minor.yy0); } -#line 6187 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL, &yymsp[0].minor.yy0); } +#line 6132 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 120: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ #line 249 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } -#line 6193 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } +#line 6138 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 121: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ #line 250 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } -#line 6199 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } +#line 6144 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 122: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ #line 251 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-3].minor.yy600, DB_OPTION_WAL_RETENTION_PERIOD, &t); + yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-3].minor.yy452, DB_OPTION_WAL_RETENTION_PERIOD, &t); } -#line 6209 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; +#line 6154 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 123: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ #line 256 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } -#line 6215 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } +#line 6160 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 124: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ #line 257 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-3].minor.yy600, DB_OPTION_WAL_RETENTION_SIZE, &t); + yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-3].minor.yy452, DB_OPTION_WAL_RETENTION_SIZE, &t); } -#line 6225 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; +#line 6170 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 125: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ #line 262 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } -#line 6231 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } +#line 6176 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 126: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ #line 263 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } -#line 6237 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } +#line 6182 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 127: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ #line 264 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } -#line 6243 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } +#line 6188 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 128: /* db_options ::= db_options TABLE_PREFIX signed */ #line 265 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy600); } -#line 6249 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy452); } +#line 6194 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 129: /* db_options ::= db_options TABLE_SUFFIX signed */ #line 266 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy600); } -#line 6255 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy452); } +#line 6200 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 130: /* db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */ #line 267 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_S3_CHUNKSIZE, &yymsp[0].minor.yy0); } -#line 6261 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_S3_CHUNKSIZE, &yymsp[0].minor.yy0); } +#line 6206 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 131: /* db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */ case 132: /* db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==132); #line 268 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_S3_KEEPLOCAL, &yymsp[0].minor.yy0); } -#line 6268 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_S3_KEEPLOCAL, &yymsp[0].minor.yy0); } +#line 6213 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 133: /* db_options ::= db_options S3_COMPACT NK_INTEGER */ #line 270 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_S3_COMPACT, &yymsp[0].minor.yy0); } -#line 6274 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_S3_COMPACT, &yymsp[0].minor.yy0); } +#line 6219 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 134: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ #line 271 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } -#line 6280 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } +#line 6225 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 135: /* db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */ #line 272 "sql.y" -{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_ENCRYPT_ALGORITHM, &yymsp[0].minor.yy0); } -#line 6286 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_ENCRYPT_ALGORITHM, &yymsp[0].minor.yy0); } +#line 6231 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 136: /* alter_db_options ::= alter_db_option */ #line 274 "sql.y" -{ yylhsminor.yy600 = createAlterDatabaseOptions(pCxt); yylhsminor.yy600 = setAlterDatabaseOption(pCxt, yylhsminor.yy600, &yymsp[0].minor.yy145); } -#line 6292 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterDatabaseOptions(pCxt); yylhsminor.yy452 = setAlterDatabaseOption(pCxt, yylhsminor.yy452, &yymsp[0].minor.yy455); } +#line 6237 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 137: /* alter_db_options ::= alter_db_options alter_db_option */ #line 275 "sql.y" -{ yylhsminor.yy600 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy600, &yymsp[0].minor.yy145); } -#line 6298 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy452, &yymsp[0].minor.yy455); } +#line 6243 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 138: /* alter_db_option ::= BUFFER NK_INTEGER */ #line 279 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6304 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6249 "sql.c" break; case 139: /* alter_db_option ::= CACHEMODEL NK_STRING */ #line 280 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6309 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6254 "sql.c" break; case 140: /* alter_db_option ::= CACHESIZE NK_INTEGER */ #line 281 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6314 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6259 "sql.c" break; case 141: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ #line 282 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6319 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6264 "sql.c" break; case 142: /* alter_db_option ::= KEEP integer_list */ case 143: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==143); #line 283 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_KEEP; yymsp[-1].minor.yy145.pList = yymsp[0].minor.yy748; } -#line 6325 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_KEEP; yymsp[-1].minor.yy455.pList = yymsp[0].minor.yy34; } +#line 6270 "sql.c" break; case 144: /* alter_db_option ::= PAGES NK_INTEGER */ #line 285 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_PAGES; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6330 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_PAGES; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6275 "sql.c" break; case 145: /* alter_db_option ::= REPLICA NK_INTEGER */ #line 286 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6335 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6280 "sql.c" break; case 146: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ #line 288 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_WAL; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6340 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_WAL; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6285 "sql.c" break; case 147: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ #line 289 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6345 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6290 "sql.c" break; case 148: /* alter_db_option ::= MINROWS NK_INTEGER */ #line 290 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6350 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6295 "sql.c" break; case 149: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ #line 291 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6355 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6300 "sql.c" break; case 150: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ #line 292 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.yy145.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy145.val = t; + yymsp[-2].minor.yy455.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy455.val = t; } -#line 6364 "sql.c" +#line 6309 "sql.c" break; case 151: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ #line 297 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6369 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6314 "sql.c" break; case 152: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ #line 298 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.yy145.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy145.val = t; + yymsp[-2].minor.yy455.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy455.val = t; } -#line 6378 "sql.c" +#line 6323 "sql.c" break; case 153: /* alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */ case 154: /* alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==154); #line 303 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_S3_KEEPLOCAL; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6384 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_S3_KEEPLOCAL; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6329 "sql.c" break; case 155: /* alter_db_option ::= S3_COMPACT NK_INTEGER */ #line 305 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_S3_COMPACT, yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6389 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_S3_COMPACT, yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6334 "sql.c" break; case 156: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ #line 306 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6394 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6339 "sql.c" break; case 157: /* alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */ #line 307 "sql.y" -{ yymsp[-1].minor.yy145.type = DB_OPTION_ENCRYPT_ALGORITHM; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6399 "sql.c" +{ yymsp[-1].minor.yy455.type = DB_OPTION_ENCRYPT_ALGORITHM; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6344 "sql.c" break; case 158: /* integer_list ::= NK_INTEGER */ #line 311 "sql.y" -{ yylhsminor.yy748 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 6404 "sql.c" - yymsp[0].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 6349 "sql.c" + yymsp[0].minor.yy34 = yylhsminor.yy34; break; case 159: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 437: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==437); + case 439: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==439); #line 312 "sql.y" -{ yylhsminor.yy748 = addNodeToList(pCxt, yymsp[-2].minor.yy748, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 6411 "sql.c" - yymsp[-2].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = addNodeToList(pCxt, yymsp[-2].minor.yy34, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 6356 "sql.c" + yymsp[-2].minor.yy34 = yylhsminor.yy34; break; case 160: /* variable_list ::= NK_VARIABLE */ #line 316 "sql.y" -{ yylhsminor.yy748 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 6417 "sql.c" - yymsp[0].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 6362 "sql.c" + yymsp[0].minor.yy34 = yylhsminor.yy34; break; case 161: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ #line 317 "sql.y" -{ yylhsminor.yy748 = addNodeToList(pCxt, yymsp[-2].minor.yy748, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 6423 "sql.c" - yymsp[-2].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = addNodeToList(pCxt, yymsp[-2].minor.yy34, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 6368 "sql.c" + yymsp[-2].minor.yy34 = yylhsminor.yy34; break; case 162: /* retention_list ::= retention */ case 194: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==194); - case 197: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==197); - case 204: /* tag_def_list ::= tag_def */ yytestcase(yyruleno==204); - case 207: /* column_def_list ::= column_def */ yytestcase(yyruleno==207); - case 255: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==255); - case 260: /* col_name_list ::= col_name */ yytestcase(yyruleno==260); - case 329: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==329); - case 353: /* func_list ::= func */ yytestcase(yyruleno==353); - case 403: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==403); - case 481: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==481); - case 506: /* literal_list ::= signed_literal */ yytestcase(yyruleno==506); - case 580: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==580); - case 586: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==586); - case 662: /* select_list ::= select_item */ yytestcase(yyruleno==662); - case 673: /* partition_list ::= partition_item */ yytestcase(yyruleno==673); - case 734: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==734); + case 196: /* multi_create_clause ::= create_from_file_clause */ yytestcase(yyruleno==196); + case 199: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==199); + case 206: /* tag_def_list ::= tag_def */ yytestcase(yyruleno==206); + case 209: /* column_def_list ::= column_def */ yytestcase(yyruleno==209); + case 257: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==257); + case 262: /* col_name_list ::= col_name */ yytestcase(yyruleno==262); + case 331: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==331); + case 355: /* func_list ::= func */ yytestcase(yyruleno==355); + case 405: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==405); + case 483: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==483); + case 508: /* literal_list ::= signed_literal */ yytestcase(yyruleno==508); + case 582: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==582); + case 588: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==588); + case 664: /* select_list ::= select_item */ yytestcase(yyruleno==664); + case 675: /* partition_list ::= partition_item */ yytestcase(yyruleno==675); + case 736: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==736); #line 321 "sql.y" -{ yylhsminor.yy748 = createNodeList(pCxt, yymsp[0].minor.yy600); } -#line 6445 "sql.c" - yymsp[0].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = createNodeList(pCxt, yymsp[0].minor.yy452); } +#line 6391 "sql.c" + yymsp[0].minor.yy34 = yylhsminor.yy34; break; case 163: /* retention_list ::= retention_list NK_COMMA retention */ - case 198: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==198); - case 205: /* tag_def_list ::= tag_def_list NK_COMMA tag_def */ yytestcase(yyruleno==205); - case 208: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==208); - case 256: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==256); - case 261: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==261); - case 330: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==330); - case 354: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==354); - case 404: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==404); - case 482: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==482); - case 507: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==507); - case 581: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==581); - case 663: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==663); - case 674: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==674); - case 735: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==735); + case 200: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==200); + case 207: /* tag_def_list ::= tag_def_list NK_COMMA tag_def */ yytestcase(yyruleno==207); + case 210: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==210); + case 258: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==258); + case 263: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==263); + case 332: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==332); + case 356: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==356); + case 406: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==406); + case 484: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==484); + case 509: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==509); + case 583: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==583); + case 665: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==665); + case 676: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==676); + case 737: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==737); #line 322 "sql.y" -{ yylhsminor.yy748 = addNodeToList(pCxt, yymsp[-2].minor.yy748, yymsp[0].minor.yy600); } -#line 6465 "sql.c" - yymsp[-2].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = addNodeToList(pCxt, yymsp[-2].minor.yy34, yymsp[0].minor.yy452); } +#line 6411 "sql.c" + yymsp[-2].minor.yy34 = yylhsminor.yy34; break; case 164: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ case 165: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==165); #line 324 "sql.y" -{ yylhsminor.yy600 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 6472 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 6418 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 166: /* speed_opt ::= */ - case 387: /* bufsize_opt ::= */ yytestcase(yyruleno==387); + case 389: /* bufsize_opt ::= */ yytestcase(yyruleno==389); #line 329 "sql.y" -{ yymsp[1].minor.yy756 = 0; } -#line 6479 "sql.c" +{ yymsp[1].minor.yy100 = 0; } +#line 6425 "sql.c" break; case 167: /* speed_opt ::= BWLIMIT NK_INTEGER */ - case 388: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==388); + case 390: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==390); #line 330 "sql.y" -{ yymsp[-1].minor.yy756 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } -#line 6485 "sql.c" +{ yymsp[-1].minor.yy100 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } +#line 6431 "sql.c" break; case 169: /* start_opt ::= START WITH NK_INTEGER */ case 173: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==173); #line 333 "sql.y" -{ yymsp[-2].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } -#line 6491 "sql.c" +{ yymsp[-2].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +#line 6437 "sql.c" break; case 170: /* start_opt ::= START WITH NK_STRING */ case 174: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==174); #line 334 "sql.y" -{ yymsp[-2].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } -#line 6497 "sql.c" +{ yymsp[-2].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 6443 "sql.c" break; case 171: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 175: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==175); #line 335 "sql.y" -{ yymsp[-3].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } -#line 6503 "sql.c" +{ yymsp[-3].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 6449 "sql.c" break; case 176: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 178: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==178); #line 344 "sql.y" -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy705, yymsp[-5].minor.yy600, yymsp[-3].minor.yy748, yymsp[-1].minor.yy748, yymsp[0].minor.yy600); } -#line 6509 "sql.c" +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy437, yymsp[-5].minor.yy452, yymsp[-3].minor.yy34, yymsp[-1].minor.yy34, yymsp[0].minor.yy452); } +#line 6455 "sql.c" break; case 177: /* cmd ::= CREATE TABLE multi_create_clause */ #line 345 "sql.y" -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy748); } -#line 6514 "sql.c" +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy34); } +#line 6460 "sql.c" break; case 179: /* cmd ::= DROP TABLE multi_drop_clause */ #line 348 "sql.y" -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy748); } -#line 6519 "sql.c" +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy34); } +#line 6465 "sql.c" break; case 180: /* cmd ::= DROP STABLE exists_opt full_table_name */ #line 349 "sql.y" -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy705, yymsp[0].minor.yy600); } -#line 6524 "sql.c" +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy437, yymsp[0].minor.yy452); } +#line 6470 "sql.c" break; case 181: /* cmd ::= ALTER TABLE alter_table_clause */ - case 439: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==439); - case 440: /* cmd ::= insert_query */ yytestcase(yyruleno==440); + case 441: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==441); + case 442: /* cmd ::= insert_query */ yytestcase(yyruleno==442); #line 351 "sql.y" -{ pCxt->pRootNode = yymsp[0].minor.yy600; } -#line 6531 "sql.c" +{ pCxt->pRootNode = yymsp[0].minor.yy452; } +#line 6477 "sql.c" break; case 182: /* cmd ::= ALTER STABLE alter_table_clause */ #line 352 "sql.y" -{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy600); } -#line 6536 "sql.c" +{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy452); } +#line 6482 "sql.c" break; case 183: /* alter_table_clause ::= full_table_name alter_table_options */ #line 354 "sql.y" -{ yylhsminor.yy600 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } -#line 6541 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } +#line 6487 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 184: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name column_options */ #line 356 "sql.y" -{ yylhsminor.yy600 = createAlterTableAddModifyColOptions2(pCxt, yymsp[-5].minor.yy600, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-2].minor.yy649, yymsp[-1].minor.yy400, yymsp[0].minor.yy600); } -#line 6547 "sql.c" - yymsp[-5].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableAddModifyColOptions2(pCxt, yymsp[-5].minor.yy452, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-2].minor.yy479, yymsp[-1].minor.yy874, yymsp[0].minor.yy452); } +#line 6493 "sql.c" + yymsp[-5].minor.yy452 = yylhsminor.yy452; break; case 185: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ #line 357 "sql.y" -{ yylhsminor.yy600 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy600, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy649); } -#line 6553 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy479); } +#line 6499 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 186: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ #line 359 "sql.y" -{ yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy649, yymsp[0].minor.yy400); } -#line 6559 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy479, yymsp[0].minor.yy874); } +#line 6505 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 187: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */ #line 361 "sql.y" -{ yylhsminor.yy600 = createAlterTableAddModifyColOptions(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_COLUMN_COMPRESS, &yymsp[-1].minor.yy649, yymsp[0].minor.yy600); } -#line 6565 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableAddModifyColOptions(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_COLUMN_COMPRESS, &yymsp[-1].minor.yy479, yymsp[0].minor.yy452); } +#line 6511 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 188: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ #line 363 "sql.y" -{ yylhsminor.yy600 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy649, &yymsp[0].minor.yy649); } -#line 6571 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy479, &yymsp[0].minor.yy479); } +#line 6517 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 189: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ #line 365 "sql.y" -{ yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy649, yymsp[0].minor.yy400); } -#line 6577 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy479, yymsp[0].minor.yy874); } +#line 6523 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 190: /* alter_table_clause ::= full_table_name DROP TAG column_name */ #line 366 "sql.y" -{ yylhsminor.yy600 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy600, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy649); } -#line 6583 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy479); } +#line 6529 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 191: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ #line 368 "sql.y" -{ yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy649, yymsp[0].minor.yy400); } -#line 6589 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy479, yymsp[0].minor.yy874); } +#line 6535 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 192: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ #line 370 "sql.y" -{ yylhsminor.yy600 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy649, &yymsp[0].minor.yy649); } -#line 6595 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy479, &yymsp[0].minor.yy479); } +#line 6541 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 193: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ #line 372 "sql.y" -{ yylhsminor.yy600 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy600, &yymsp[-2].minor.yy649, yymsp[0].minor.yy600); } -#line 6601 "sql.c" - yymsp[-5].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy452, &yymsp[-2].minor.yy479, yymsp[0].minor.yy452); } +#line 6547 "sql.c" + yymsp[-5].minor.yy452 = yylhsminor.yy452; break; case 195: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 587: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==587); + case 589: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==589); #line 377 "sql.y" -{ yylhsminor.yy748 = addNodeToList(pCxt, yymsp[-1].minor.yy748, yymsp[0].minor.yy600); } -#line 6608 "sql.c" - yymsp[-1].minor.yy748 = yylhsminor.yy748; +{ yylhsminor.yy34 = addNodeToList(pCxt, yymsp[-1].minor.yy34, yymsp[0].minor.yy452); } +#line 6554 "sql.c" + yymsp[-1].minor.yy34 = yylhsminor.yy34; break; - case 196: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ -#line 381 "sql.y" -{ yylhsminor.yy600 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy705, yymsp[-8].minor.yy600, yymsp[-6].minor.yy600, yymsp[-5].minor.yy748, yymsp[-2].minor.yy748, yymsp[0].minor.yy600); } -#line 6614 "sql.c" - yymsp[-9].minor.yy600 = yylhsminor.yy600; + case 197: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ +#line 382 "sql.y" +{ yylhsminor.yy452 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy437, yymsp[-8].minor.yy452, yymsp[-6].minor.yy452, yymsp[-5].minor.yy34, yymsp[-2].minor.yy34, yymsp[0].minor.yy452); } +#line 6560 "sql.c" + yymsp[-9].minor.yy452 = yylhsminor.yy452; break; - case 199: /* drop_table_clause ::= exists_opt full_table_name */ -#line 388 "sql.y" -{ yylhsminor.yy600 = createDropTableClause(pCxt, yymsp[-1].minor.yy705, yymsp[0].minor.yy600); } -#line 6620 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; + case 198: /* create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP NK_STRING */ +#line 385 "sql.y" +{ yylhsminor.yy452 = createCreateSubTableFromFileClause(pCxt, yymsp[-6].minor.yy437, yymsp[-4].minor.yy452, yymsp[-2].minor.yy34, &yymsp[0].minor.yy0); } +#line 6566 "sql.c" + yymsp[-6].minor.yy452 = yylhsminor.yy452; break; - case 201: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ - case 402: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==402); -#line 393 "sql.y" -{ yymsp[-2].minor.yy748 = yymsp[-1].minor.yy748; } -#line 6627 "sql.c" + case 201: /* drop_table_clause ::= exists_opt full_table_name */ +#line 392 "sql.y" +{ yylhsminor.yy452 = createDropTableClause(pCxt, yymsp[-1].minor.yy437, yymsp[0].minor.yy452); } +#line 6572 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 202: /* full_table_name ::= table_name */ - case 343: /* full_tsma_name ::= tsma_name */ yytestcase(yyruleno==343); -#line 395 "sql.y" -{ yylhsminor.yy600 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy649, NULL); } -#line 6633 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 203: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ + case 404: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==404); +#line 397 "sql.y" +{ yymsp[-2].minor.yy34 = yymsp[-1].minor.yy34; } +#line 6579 "sql.c" break; - case 203: /* full_table_name ::= db_name NK_DOT table_name */ - case 344: /* full_tsma_name ::= db_name NK_DOT tsma_name */ yytestcase(yyruleno==344); -#line 396 "sql.y" -{ yylhsminor.yy600 = createRealTableNode(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy649, NULL); } -#line 6640 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 204: /* full_table_name ::= table_name */ + case 345: /* full_tsma_name ::= tsma_name */ yytestcase(yyruleno==345); +#line 399 "sql.y" +{ yylhsminor.yy452 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy479, NULL); } +#line 6585 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 206: /* tag_def ::= column_name type_name */ -#line 402 "sql.y" -{ yylhsminor.yy600 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy649, yymsp[0].minor.yy400, NULL); } -#line 6646 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; + case 205: /* full_table_name ::= db_name NK_DOT table_name */ + case 346: /* full_tsma_name ::= db_name NK_DOT tsma_name */ yytestcase(yyruleno==346); +#line 400 "sql.y" +{ yylhsminor.yy452 = createRealTableNode(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy479, NULL); } +#line 6592 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 209: /* column_def ::= column_name type_name column_options */ -#line 410 "sql.y" -{ yylhsminor.yy600 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy649, yymsp[-1].minor.yy400, yymsp[0].minor.yy600); } -#line 6652 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 208: /* tag_def ::= column_name type_name */ +#line 406 "sql.y" +{ yylhsminor.yy452 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy479, yymsp[0].minor.yy874, NULL); } +#line 6598 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 210: /* type_name ::= BOOL */ + case 211: /* column_def ::= column_name type_name column_options */ #line 414 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BOOL); } -#line 6658 "sql.c" +{ yylhsminor.yy452 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy479, yymsp[-1].minor.yy874, yymsp[0].minor.yy452); } +#line 6604 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 211: /* type_name ::= TINYINT */ -#line 415 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TINYINT); } -#line 6663 "sql.c" + case 212: /* type_name ::= BOOL */ +#line 418 "sql.y" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_BOOL); } +#line 6610 "sql.c" break; - case 212: /* type_name ::= SMALLINT */ -#line 416 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_SMALLINT); } -#line 6668 "sql.c" - break; - case 213: /* type_name ::= INT */ - case 214: /* type_name ::= INTEGER */ yytestcase(yyruleno==214); -#line 417 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_INT); } -#line 6674 "sql.c" - break; - case 215: /* type_name ::= BIGINT */ + case 213: /* type_name ::= TINYINT */ #line 419 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BIGINT); } -#line 6679 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_TINYINT); } +#line 6615 "sql.c" break; - case 216: /* type_name ::= FLOAT */ + case 214: /* type_name ::= SMALLINT */ #line 420 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_FLOAT); } -#line 6684 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +#line 6620 "sql.c" break; - case 217: /* type_name ::= DOUBLE */ + case 215: /* type_name ::= INT */ + case 216: /* type_name ::= INTEGER */ yytestcase(yyruleno==216); #line 421 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DOUBLE); } -#line 6689 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_INT); } +#line 6626 "sql.c" break; - case 218: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -#line 422 "sql.y" -{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } -#line 6694 "sql.c" - break; - case 219: /* type_name ::= TIMESTAMP */ + case 217: /* type_name ::= BIGINT */ #line 423 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } -#line 6699 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_BIGINT); } +#line 6631 "sql.c" break; - case 220: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + case 218: /* type_name ::= FLOAT */ #line 424 "sql.y" -{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } -#line 6704 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_FLOAT); } +#line 6636 "sql.c" break; - case 221: /* type_name ::= TINYINT UNSIGNED */ + case 219: /* type_name ::= DOUBLE */ #line 425 "sql.y" -{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UTINYINT); } -#line 6709 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +#line 6641 "sql.c" break; - case 222: /* type_name ::= SMALLINT UNSIGNED */ + case 220: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ #line 426 "sql.y" -{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_USMALLINT); } -#line 6714 "sql.c" +{ yymsp[-3].minor.yy874 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +#line 6646 "sql.c" break; - case 223: /* type_name ::= INT UNSIGNED */ + case 221: /* type_name ::= TIMESTAMP */ #line 427 "sql.y" -{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UINT); } -#line 6719 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +#line 6651 "sql.c" break; - case 224: /* type_name ::= BIGINT UNSIGNED */ + case 222: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ #line 428 "sql.y" -{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UBIGINT); } -#line 6724 "sql.c" +{ yymsp[-3].minor.yy874 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +#line 6656 "sql.c" break; - case 225: /* type_name ::= JSON */ + case 223: /* type_name ::= TINYINT UNSIGNED */ #line 429 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_JSON); } -#line 6729 "sql.c" +{ yymsp[-1].minor.yy874 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +#line 6661 "sql.c" break; - case 226: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + case 224: /* type_name ::= SMALLINT UNSIGNED */ #line 430 "sql.y" -{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } -#line 6734 "sql.c" +{ yymsp[-1].minor.yy874 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +#line 6666 "sql.c" break; - case 227: /* type_name ::= MEDIUMBLOB */ + case 225: /* type_name ::= INT UNSIGNED */ #line 431 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } -#line 6739 "sql.c" +{ yymsp[-1].minor.yy874 = createDataType(TSDB_DATA_TYPE_UINT); } +#line 6671 "sql.c" break; - case 228: /* type_name ::= BLOB */ + case 226: /* type_name ::= BIGINT UNSIGNED */ #line 432 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BLOB); } -#line 6744 "sql.c" +{ yymsp[-1].minor.yy874 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +#line 6676 "sql.c" break; - case 229: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + case 227: /* type_name ::= JSON */ #line 433 "sql.y" -{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } -#line 6749 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_JSON); } +#line 6681 "sql.c" break; - case 230: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ + case 228: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ #line 434 "sql.y" -{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } -#line 6754 "sql.c" +{ yymsp[-3].minor.yy874 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +#line 6686 "sql.c" break; - case 231: /* type_name ::= DECIMAL */ + case 229: /* type_name ::= MEDIUMBLOB */ #line 435 "sql.y" -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); } -#line 6759 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +#line 6691 "sql.c" break; - case 232: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + case 230: /* type_name ::= BLOB */ #line 436 "sql.y" -{ yymsp[-3].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); } -#line 6764 "sql.c" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_BLOB); } +#line 6696 "sql.c" break; - case 233: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + case 231: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ #line 437 "sql.y" -{ yymsp[-5].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); } -#line 6769 "sql.c" +{ yymsp[-3].minor.yy874 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +#line 6701 "sql.c" break; - case 234: /* type_name_default_len ::= BINARY */ + case 232: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ +#line 438 "sql.y" +{ yymsp[-3].minor.yy874 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } +#line 6706 "sql.c" + break; + case 233: /* type_name ::= DECIMAL */ +#line 439 "sql.y" +{ yymsp[0].minor.yy874 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 6711 "sql.c" + break; + case 234: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +#line 440 "sql.y" +{ yymsp[-3].minor.yy874 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 6716 "sql.c" + break; + case 235: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ #line 441 "sql.y" -{ yymsp[0].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); } -#line 6774 "sql.c" +{ yymsp[-5].minor.yy874 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 6721 "sql.c" break; - case 235: /* type_name_default_len ::= NCHAR */ -#line 442 "sql.y" -{ yymsp[0].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); } -#line 6779 "sql.c" + case 236: /* type_name_default_len ::= BINARY */ +#line 445 "sql.y" +{ yymsp[0].minor.yy874 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); } +#line 6726 "sql.c" break; - case 236: /* type_name_default_len ::= VARCHAR */ -#line 443 "sql.y" -{ yymsp[0].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); } -#line 6784 "sql.c" + case 237: /* type_name_default_len ::= NCHAR */ +#line 446 "sql.y" +{ yymsp[0].minor.yy874 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); } +#line 6731 "sql.c" break; - case 237: /* type_name_default_len ::= VARBINARY */ -#line 444 "sql.y" -{ yymsp[0].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); } -#line 6789 "sql.c" + case 238: /* type_name_default_len ::= VARCHAR */ +#line 447 "sql.y" +{ yymsp[0].minor.yy874 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); } +#line 6736 "sql.c" break; - case 240: /* tags_def ::= TAGS NK_LP tag_def_list NK_RP */ - case 410: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==410); -#line 453 "sql.y" -{ yymsp[-3].minor.yy748 = yymsp[-1].minor.yy748; } -#line 6795 "sql.c" + case 239: /* type_name_default_len ::= VARBINARY */ +#line 448 "sql.y" +{ yymsp[0].minor.yy874 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); } +#line 6741 "sql.c" break; - case 241: /* table_options ::= */ -#line 455 "sql.y" -{ yymsp[1].minor.yy600 = createDefaultTableOptions(pCxt); } -#line 6800 "sql.c" - break; - case 242: /* table_options ::= table_options COMMENT NK_STRING */ -#line 456 "sql.y" -{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } -#line 6805 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 243: /* table_options ::= table_options MAX_DELAY duration_list */ + case 242: /* tags_def ::= TAGS NK_LP tag_def_list NK_RP */ + case 412: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==412); #line 457 "sql.y" -{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy748); } -#line 6811 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yymsp[-3].minor.yy34 = yymsp[-1].minor.yy34; } +#line 6747 "sql.c" break; - case 244: /* table_options ::= table_options WATERMARK duration_list */ -#line 458 "sql.y" -{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy748); } -#line 6817 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 245: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + case 243: /* table_options ::= */ #line 459 "sql.y" -{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-4].minor.yy600, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy748); } -#line 6823 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; +{ yymsp[1].minor.yy452 = createDefaultTableOptions(pCxt); } +#line 6752 "sql.c" break; - case 246: /* table_options ::= table_options TTL NK_INTEGER */ + case 244: /* table_options ::= table_options COMMENT NK_STRING */ #line 460 "sql.y" -{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } -#line 6829 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } +#line 6757 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 247: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + case 245: /* table_options ::= table_options MAX_DELAY duration_list */ #line 461 "sql.y" -{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-4].minor.yy600, TABLE_OPTION_SMA, yymsp[-1].minor.yy748); } -#line 6835 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy34); } +#line 6763 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 248: /* table_options ::= table_options DELETE_MARK duration_list */ + case 246: /* table_options ::= table_options WATERMARK duration_list */ #line 462 "sql.y" -{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy748); } -#line 6841 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy34); } +#line 6769 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 249: /* alter_table_options ::= alter_table_option */ + case 247: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ +#line 463 "sql.y" +{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-4].minor.yy452, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy34); } +#line 6775 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; + break; + case 248: /* table_options ::= table_options TTL NK_INTEGER */ #line 464 "sql.y" -{ yylhsminor.yy600 = createAlterTableOptions(pCxt); yylhsminor.yy600 = setTableOption(pCxt, yylhsminor.yy600, yymsp[0].minor.yy145.type, &yymsp[0].minor.yy145.val); } -#line 6847 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } +#line 6781 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 250: /* alter_table_options ::= alter_table_options alter_table_option */ + case 249: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ #line 465 "sql.y" -{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy145.type, &yymsp[0].minor.yy145.val); } -#line 6853 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-4].minor.yy452, TABLE_OPTION_SMA, yymsp[-1].minor.yy34); } +#line 6787 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; break; - case 251: /* alter_table_option ::= COMMENT NK_STRING */ + case 250: /* table_options ::= table_options DELETE_MARK duration_list */ +#line 466 "sql.y" +{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy34); } +#line 6793 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 251: /* alter_table_options ::= alter_table_option */ +#line 468 "sql.y" +{ yylhsminor.yy452 = createAlterTableOptions(pCxt); yylhsminor.yy452 = setTableOption(pCxt, yylhsminor.yy452, yymsp[0].minor.yy455.type, &yymsp[0].minor.yy455.val); } +#line 6799 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 252: /* alter_table_options ::= alter_table_options alter_table_option */ #line 469 "sql.y" -{ yymsp[-1].minor.yy145.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6859 "sql.c" +{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy455.type, &yymsp[0].minor.yy455.val); } +#line 6805 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 252: /* alter_table_option ::= TTL NK_INTEGER */ -#line 470 "sql.y" -{ yymsp[-1].minor.yy145.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } -#line 6864 "sql.c" + case 253: /* alter_table_option ::= COMMENT NK_STRING */ +#line 473 "sql.y" +{ yymsp[-1].minor.yy455.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6811 "sql.c" break; - case 253: /* duration_list ::= duration_literal */ - case 539: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==539); + case 254: /* alter_table_option ::= TTL NK_INTEGER */ #line 474 "sql.y" -{ yylhsminor.yy748 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } -#line 6870 "sql.c" - yymsp[0].minor.yy748 = yylhsminor.yy748; +{ yymsp[-1].minor.yy455.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } +#line 6816 "sql.c" break; - case 254: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 540: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==540); -#line 475 "sql.y" -{ yylhsminor.yy748 = addNodeToList(pCxt, yymsp[-2].minor.yy748, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } -#line 6877 "sql.c" - yymsp[-2].minor.yy748 = yylhsminor.yy748; + case 255: /* duration_list ::= duration_literal */ + case 541: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==541); +#line 478 "sql.y" +{ yylhsminor.yy34 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } +#line 6822 "sql.c" + yymsp[0].minor.yy34 = yylhsminor.yy34; break; - case 257: /* rollup_func_name ::= function_name */ -#line 482 "sql.y" -{ yylhsminor.yy600 = createFunctionNode(pCxt, &yymsp[0].minor.yy649, NULL); } -#line 6883 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 256: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 542: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==542); +#line 479 "sql.y" +{ yylhsminor.yy34 = addNodeToList(pCxt, yymsp[-2].minor.yy34, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } +#line 6829 "sql.c" + yymsp[-2].minor.yy34 = yylhsminor.yy34; break; - case 258: /* rollup_func_name ::= FIRST */ - case 259: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==259); - case 332: /* tag_item ::= QTAGS */ yytestcase(yyruleno==332); -#line 483 "sql.y" -{ yylhsminor.yy600 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 6891 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 259: /* rollup_func_name ::= function_name */ +#line 486 "sql.y" +{ yylhsminor.yy452 = createFunctionNode(pCxt, &yymsp[0].minor.yy479, NULL); } +#line 6835 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 262: /* col_name ::= column_name */ - case 333: /* tag_item ::= column_name */ yytestcase(yyruleno==333); -#line 491 "sql.y" -{ yylhsminor.yy600 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy649); } -#line 6898 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 260: /* rollup_func_name ::= FIRST */ + case 261: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==261); + case 334: /* tag_item ::= QTAGS */ yytestcase(yyruleno==334); +#line 487 "sql.y" +{ yylhsminor.yy452 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } +#line 6843 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 263: /* cmd ::= SHOW DNODES */ -#line 494 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } -#line 6904 "sql.c" - break; - case 264: /* cmd ::= SHOW USERS */ + case 264: /* col_name ::= column_name */ + case 335: /* tag_item ::= column_name */ yytestcase(yyruleno==335); #line 495 "sql.y" +{ yylhsminor.yy452 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy479); } +#line 6850 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 265: /* cmd ::= SHOW DNODES */ +#line 498 "sql.y" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } +#line 6856 "sql.c" + break; + case 266: /* cmd ::= SHOW USERS */ +#line 499 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } -#line 6909 "sql.c" +#line 6861 "sql.c" break; - case 265: /* cmd ::= SHOW USER PRIVILEGES */ -#line 496 "sql.y" + case 267: /* cmd ::= SHOW USER PRIVILEGES */ +#line 500 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } -#line 6914 "sql.c" +#line 6866 "sql.c" break; - case 266: /* cmd ::= SHOW db_kind_opt DATABASES */ -#line 497 "sql.y" -{ - pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); - setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy245); - } -#line 6922 "sql.c" - break; - case 267: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + case 268: /* cmd ::= SHOW db_kind_opt DATABASES */ #line 501 "sql.y" { - pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy125, yymsp[0].minor.yy600, OP_TYPE_LIKE); + pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); + setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy39); } -#line 6929 "sql.c" +#line 6874 "sql.c" break; - case 268: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -#line 504 "sql.y" -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, OP_TYPE_LIKE); } -#line 6934 "sql.c" - break; - case 269: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ + case 269: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ #line 505 "sql.y" -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy600, NULL, OP_TYPE_LIKE); } -#line 6939 "sql.c" +{ + pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy397, yymsp[0].minor.yy452, OP_TYPE_LIKE); + } +#line 6881 "sql.c" break; - case 270: /* cmd ::= SHOW MNODES */ -#line 506 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } -#line 6944 "sql.c" - break; - case 271: /* cmd ::= SHOW QNODES */ + case 270: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ #line 508 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } -#line 6949 "sql.c" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, OP_TYPE_LIKE); } +#line 6886 "sql.c" break; - case 272: /* cmd ::= SHOW ARBGROUPS */ + case 271: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ #line 509 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); } -#line 6954 "sql.c" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy452, NULL, OP_TYPE_LIKE); } +#line 6891 "sql.c" break; - case 273: /* cmd ::= SHOW FUNCTIONS */ + case 272: /* cmd ::= SHOW MNODES */ #line 510 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } -#line 6959 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } +#line 6896 "sql.c" break; - case 274: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -#line 511 "sql.y" -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy600, yymsp[-1].minor.yy600, OP_TYPE_EQUAL); } -#line 6964 "sql.c" - break; - case 275: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + case 273: /* cmd ::= SHOW QNODES */ #line 512 "sql.y" -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy649), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy649), OP_TYPE_EQUAL); } -#line 6969 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } +#line 6901 "sql.c" break; - case 276: /* cmd ::= SHOW STREAMS */ + case 274: /* cmd ::= SHOW ARBGROUPS */ #line 513 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } -#line 6974 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); } +#line 6906 "sql.c" break; - case 277: /* cmd ::= SHOW ACCOUNTS */ + case 275: /* cmd ::= SHOW FUNCTIONS */ #line 514 "sql.y" -{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } -#line 6979 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } +#line 6911 "sql.c" break; - case 278: /* cmd ::= SHOW APPS */ + case 276: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ #line 515 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } -#line 6984 "sql.c" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy452, yymsp[-1].minor.yy452, OP_TYPE_EQUAL); } +#line 6916 "sql.c" break; - case 279: /* cmd ::= SHOW CONNECTIONS */ + case 277: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ #line 516 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } -#line 6989 "sql.c" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy479), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy479), OP_TYPE_EQUAL); } +#line 6921 "sql.c" break; - case 280: /* cmd ::= SHOW LICENCES */ - case 281: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==281); + case 278: /* cmd ::= SHOW STREAMS */ #line 517 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } -#line 6995 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } +#line 6926 "sql.c" break; - case 282: /* cmd ::= SHOW GRANTS FULL */ + case 279: /* cmd ::= SHOW ACCOUNTS */ +#line 518 "sql.y" +{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } +#line 6931 "sql.c" + break; + case 280: /* cmd ::= SHOW APPS */ #line 519 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); } -#line 7000 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } +#line 6936 "sql.c" break; - case 283: /* cmd ::= SHOW GRANTS LOGS */ + case 281: /* cmd ::= SHOW CONNECTIONS */ #line 520 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); } -#line 7005 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } +#line 6941 "sql.c" break; - case 284: /* cmd ::= SHOW CLUSTER MACHINES */ + case 282: /* cmd ::= SHOW LICENCES */ + case 283: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==283); #line 521 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); } -#line 7010 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } +#line 6947 "sql.c" break; - case 285: /* cmd ::= SHOW CREATE DATABASE db_name */ -#line 522 "sql.y" -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy649); } -#line 7015 "sql.c" - break; - case 286: /* cmd ::= SHOW CREATE TABLE full_table_name */ + case 284: /* cmd ::= SHOW GRANTS FULL */ #line 523 "sql.y" -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy600); } -#line 7020 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); } +#line 6952 "sql.c" break; - case 287: /* cmd ::= SHOW CREATE STABLE full_table_name */ + case 285: /* cmd ::= SHOW GRANTS LOGS */ #line 524 "sql.y" -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, -yymsp[0].minor.yy600); } -#line 7026 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); } +#line 6957 "sql.c" break; - case 288: /* cmd ::= SHOW ENCRYPTIONS */ + case 286: /* cmd ::= SHOW CLUSTER MACHINES */ +#line 525 "sql.y" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); } +#line 6962 "sql.c" + break; + case 287: /* cmd ::= SHOW CREATE DATABASE db_name */ #line 526 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ENCRYPTIONS_STMT); } -#line 7031 "sql.c" +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy479); } +#line 6967 "sql.c" break; - case 289: /* cmd ::= SHOW QUERIES */ + case 288: /* cmd ::= SHOW CREATE TABLE full_table_name */ #line 527 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } -#line 7036 "sql.c" +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy452); } +#line 6972 "sql.c" break; - case 290: /* cmd ::= SHOW SCORES */ + case 289: /* cmd ::= SHOW CREATE STABLE full_table_name */ #line 528 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } -#line 7041 "sql.c" +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, +yymsp[0].minor.yy452); } +#line 6978 "sql.c" break; - case 291: /* cmd ::= SHOW TOPICS */ -#line 529 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } -#line 7046 "sql.c" - break; - case 292: /* cmd ::= SHOW VARIABLES */ - case 293: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==293); + case 290: /* cmd ::= SHOW ENCRYPTIONS */ #line 530 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } -#line 7052 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ENCRYPTIONS_STMT); } +#line 6983 "sql.c" break; - case 294: /* cmd ::= SHOW LOCAL VARIABLES */ + case 291: /* cmd ::= SHOW QUERIES */ +#line 531 "sql.y" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } +#line 6988 "sql.c" + break; + case 292: /* cmd ::= SHOW SCORES */ #line 532 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } -#line 7057 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } +#line 6993 "sql.c" break; - case 295: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + case 293: /* cmd ::= SHOW TOPICS */ #line 533 "sql.y" -{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy600); } -#line 7062 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } +#line 6998 "sql.c" break; - case 296: /* cmd ::= SHOW BNODES */ + case 294: /* cmd ::= SHOW VARIABLES */ + case 295: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==295); #line 534 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } -#line 7067 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } +#line 7004 "sql.c" break; - case 297: /* cmd ::= SHOW SNODES */ -#line 535 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } -#line 7072 "sql.c" - break; - case 298: /* cmd ::= SHOW CLUSTER */ + case 296: /* cmd ::= SHOW LOCAL VARIABLES */ #line 536 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } -#line 7077 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } +#line 7009 "sql.c" break; - case 299: /* cmd ::= SHOW TRANSACTIONS */ + case 297: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ #line 537 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } -#line 7082 "sql.c" +{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy452); } +#line 7014 "sql.c" break; - case 300: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + case 298: /* cmd ::= SHOW BNODES */ #line 538 "sql.y" -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy600); } -#line 7087 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } +#line 7019 "sql.c" break; - case 301: /* cmd ::= SHOW CONSUMERS */ + case 299: /* cmd ::= SHOW SNODES */ #line 539 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } -#line 7092 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } +#line 7024 "sql.c" break; - case 302: /* cmd ::= SHOW SUBSCRIPTIONS */ + case 300: /* cmd ::= SHOW CLUSTER */ #line 540 "sql.y" -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } -#line 7097 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } +#line 7029 "sql.c" break; - case 303: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + case 301: /* cmd ::= SHOW TRANSACTIONS */ #line 541 "sql.y" -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy600, yymsp[-1].minor.yy600, OP_TYPE_EQUAL); } -#line 7102 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } +#line 7034 "sql.c" break; - case 304: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + case 302: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ #line 542 "sql.y" -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy649), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy649), OP_TYPE_EQUAL); } -#line 7107 "sql.c" +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy452); } +#line 7039 "sql.c" break; - case 305: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + case 303: /* cmd ::= SHOW CONSUMERS */ #line 543 "sql.y" -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy600, yymsp[-3].minor.yy748); } -#line 7112 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } +#line 7044 "sql.c" break; - case 306: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + case 304: /* cmd ::= SHOW SUBSCRIPTIONS */ #line 544 "sql.y" -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy649), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy649), yymsp[-4].minor.yy748); } -#line 7117 "sql.c" +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } +#line 7049 "sql.c" break; - case 307: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + case 305: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ #line 545 "sql.y" -{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } -#line 7122 "sql.c" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy452, yymsp[-1].minor.yy452, OP_TYPE_EQUAL); } +#line 7054 "sql.c" break; - case 308: /* cmd ::= SHOW VNODES */ + case 306: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ #line 546 "sql.y" -{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } -#line 7127 "sql.c" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy479), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy479), OP_TYPE_EQUAL); } +#line 7059 "sql.c" break; - case 309: /* cmd ::= SHOW db_name_cond_opt ALIVE */ + case 307: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ +#line 547 "sql.y" +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy452, yymsp[-3].minor.yy34); } +#line 7064 "sql.c" + break; + case 308: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ #line 548 "sql.y" -{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy600, QUERY_NODE_SHOW_DB_ALIVE_STMT); } -#line 7132 "sql.c" +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy479), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy479), yymsp[-4].minor.yy34); } +#line 7069 "sql.c" break; - case 310: /* cmd ::= SHOW CLUSTER ALIVE */ + case 309: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ #line 549 "sql.y" +{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } +#line 7074 "sql.c" + break; + case 310: /* cmd ::= SHOW VNODES */ +#line 550 "sql.y" +{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } +#line 7079 "sql.c" + break; + case 311: /* cmd ::= SHOW db_name_cond_opt ALIVE */ +#line 552 "sql.y" +{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy452, QUERY_NODE_SHOW_DB_ALIVE_STMT); } +#line 7084 "sql.c" + break; + case 312: /* cmd ::= SHOW CLUSTER ALIVE */ +#line 553 "sql.y" { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } +#line 7089 "sql.c" + break; + case 313: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ +#line 554 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, OP_TYPE_LIKE); } +#line 7094 "sql.c" + break; + case 314: /* cmd ::= SHOW CREATE VIEW full_table_name */ +#line 555 "sql.y" +{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy452); } +#line 7099 "sql.c" + break; + case 315: /* cmd ::= SHOW COMPACTS */ +#line 556 "sql.y" +{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); } +#line 7104 "sql.c" + break; + case 316: /* cmd ::= SHOW COMPACT NK_INTEGER */ +#line 557 "sql.y" +{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 7109 "sql.c" + break; + case 317: /* table_kind_db_name_cond_opt ::= */ +#line 561 "sql.y" +{ yymsp[1].minor.yy397.kind = SHOW_KIND_ALL; yymsp[1].minor.yy397.dbName = nil_token; } +#line 7114 "sql.c" + break; + case 318: /* table_kind_db_name_cond_opt ::= table_kind */ +#line 562 "sql.y" +{ yylhsminor.yy397.kind = yymsp[0].minor.yy39; yylhsminor.yy397.dbName = nil_token; } +#line 7119 "sql.c" + yymsp[0].minor.yy397 = yylhsminor.yy397; + break; + case 319: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ +#line 563 "sql.y" +{ yylhsminor.yy397.kind = SHOW_KIND_ALL; yylhsminor.yy397.dbName = yymsp[-1].minor.yy479; } +#line 7125 "sql.c" + yymsp[-1].minor.yy397 = yylhsminor.yy397; + break; + case 320: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ +#line 564 "sql.y" +{ yylhsminor.yy397.kind = yymsp[-2].minor.yy39; yylhsminor.yy397.dbName = yymsp[-1].minor.yy479; } +#line 7131 "sql.c" + yymsp[-2].minor.yy397 = yylhsminor.yy397; + break; + case 321: /* table_kind ::= NORMAL */ +#line 568 "sql.y" +{ yymsp[0].minor.yy39 = SHOW_KIND_TABLES_NORMAL; } #line 7137 "sql.c" break; - case 311: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ -#line 550 "sql.y" -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, OP_TYPE_LIKE); } + case 322: /* table_kind ::= CHILD */ +#line 569 "sql.y" +{ yymsp[0].minor.yy39 = SHOW_KIND_TABLES_CHILD; } #line 7142 "sql.c" break; - case 312: /* cmd ::= SHOW CREATE VIEW full_table_name */ -#line 551 "sql.y" -{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy600); } -#line 7147 "sql.c" - break; - case 313: /* cmd ::= SHOW COMPACTS */ -#line 552 "sql.y" -{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); } -#line 7152 "sql.c" - break; - case 314: /* cmd ::= SHOW COMPACT NK_INTEGER */ -#line 553 "sql.y" -{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 7157 "sql.c" - break; - case 315: /* table_kind_db_name_cond_opt ::= */ -#line 557 "sql.y" -{ yymsp[1].minor.yy125.kind = SHOW_KIND_ALL; yymsp[1].minor.yy125.dbName = nil_token; } -#line 7162 "sql.c" - break; - case 316: /* table_kind_db_name_cond_opt ::= table_kind */ -#line 558 "sql.y" -{ yylhsminor.yy125.kind = yymsp[0].minor.yy245; yylhsminor.yy125.dbName = nil_token; } -#line 7167 "sql.c" - yymsp[0].minor.yy125 = yylhsminor.yy125; - break; - case 317: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ -#line 559 "sql.y" -{ yylhsminor.yy125.kind = SHOW_KIND_ALL; yylhsminor.yy125.dbName = yymsp[-1].minor.yy649; } -#line 7173 "sql.c" - yymsp[-1].minor.yy125 = yylhsminor.yy125; - break; - case 318: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ -#line 560 "sql.y" -{ yylhsminor.yy125.kind = yymsp[-2].minor.yy245; yylhsminor.yy125.dbName = yymsp[-1].minor.yy649; } -#line 7179 "sql.c" - yymsp[-2].minor.yy125 = yylhsminor.yy125; - break; - case 319: /* table_kind ::= NORMAL */ -#line 564 "sql.y" -{ yymsp[0].minor.yy245 = SHOW_KIND_TABLES_NORMAL; } -#line 7185 "sql.c" - break; - case 320: /* table_kind ::= CHILD */ -#line 565 "sql.y" -{ yymsp[0].minor.yy245 = SHOW_KIND_TABLES_CHILD; } -#line 7190 "sql.c" - break; - case 321: /* db_name_cond_opt ::= */ - case 326: /* from_db_opt ::= */ yytestcase(yyruleno==326); -#line 567 "sql.y" -{ yymsp[1].minor.yy600 = createDefaultDatabaseCondValue(pCxt); } -#line 7196 "sql.c" - break; - case 322: /* db_name_cond_opt ::= db_name NK_DOT */ -#line 568 "sql.y" -{ yylhsminor.yy600 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy649); } -#line 7201 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; - break; - case 324: /* like_pattern_opt ::= LIKE NK_STRING */ + case 323: /* db_name_cond_opt ::= */ + case 328: /* from_db_opt ::= */ yytestcase(yyruleno==328); #line 571 "sql.y" -{ yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } -#line 7207 "sql.c" +{ yymsp[1].minor.yy452 = createDefaultDatabaseCondValue(pCxt); } +#line 7148 "sql.c" break; - case 325: /* table_name_cond ::= table_name */ -#line 573 "sql.y" -{ yylhsminor.yy600 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy649); } -#line 7212 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 324: /* db_name_cond_opt ::= db_name NK_DOT */ +#line 572 "sql.y" +{ yylhsminor.yy452 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy479); } +#line 7153 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 327: /* from_db_opt ::= FROM db_name */ -#line 576 "sql.y" -{ yymsp[-1].minor.yy600 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy649); } + case 326: /* like_pattern_opt ::= LIKE NK_STRING */ +#line 575 "sql.y" +{ yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +#line 7159 "sql.c" + break; + case 327: /* table_name_cond ::= table_name */ +#line 577 "sql.y" +{ yylhsminor.yy452 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy479); } +#line 7164 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 329: /* from_db_opt ::= FROM db_name */ +#line 580 "sql.y" +{ yymsp[-1].minor.yy452 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy479); } +#line 7170 "sql.c" + break; + case 333: /* tag_item ::= TBNAME */ +#line 588 "sql.y" +{ yylhsminor.yy452 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } +#line 7175 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 336: /* tag_item ::= column_name column_alias */ +#line 591 "sql.y" +{ yylhsminor.yy452 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy479), &yymsp[0].minor.yy479); } +#line 7181 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; + break; + case 337: /* tag_item ::= column_name AS column_alias */ +#line 592 "sql.y" +{ yylhsminor.yy452 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy479), &yymsp[0].minor.yy479); } +#line 7187 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 338: /* db_kind_opt ::= */ +#line 596 "sql.y" +{ yymsp[1].minor.yy39 = SHOW_KIND_ALL; } +#line 7193 "sql.c" + break; + case 339: /* db_kind_opt ::= USER */ +#line 597 "sql.y" +{ yymsp[0].minor.yy39 = SHOW_KIND_DATABASES_USER; } +#line 7198 "sql.c" + break; + case 340: /* db_kind_opt ::= SYSTEM */ +#line 598 "sql.y" +{ yymsp[0].minor.yy39 = SHOW_KIND_DATABASES_SYSTEM; } +#line 7203 "sql.c" + break; + case 341: /* cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ +#line 604 "sql.y" +{ pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-8].minor.yy437, &yymsp[-7].minor.yy479, yymsp[-4].minor.yy452, yymsp[-5].minor.yy452, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } +#line 7208 "sql.c" + break; + case 342: /* cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ +#line 606 "sql.y" +{ pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-7].minor.yy437, &yymsp[-6].minor.yy479, NULL, yymsp[-4].minor.yy452, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } +#line 7213 "sql.c" + break; + case 343: /* cmd ::= DROP TSMA exists_opt full_tsma_name */ +#line 607 "sql.y" +{ pCxt->pRootNode = createDropTSMAStmt(pCxt, yymsp[-1].minor.yy437, yymsp[0].minor.yy452); } #line 7218 "sql.c" break; - case 331: /* tag_item ::= TBNAME */ -#line 584 "sql.y" -{ yylhsminor.yy600 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } + case 344: /* cmd ::= SHOW db_name_cond_opt TSMAS */ +#line 608 "sql.y" +{ pCxt->pRootNode = createShowTSMASStmt(pCxt, yymsp[-1].minor.yy452); } #line 7223 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; break; - case 334: /* tag_item ::= column_name column_alias */ -#line 587 "sql.y" -{ yylhsminor.yy600 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy649), &yymsp[0].minor.yy649); } -#line 7229 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; - break; - case 335: /* tag_item ::= column_name AS column_alias */ -#line 588 "sql.y" -{ yylhsminor.yy600 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy649), &yymsp[0].minor.yy649); } -#line 7235 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 336: /* db_kind_opt ::= */ -#line 592 "sql.y" -{ yymsp[1].minor.yy245 = SHOW_KIND_ALL; } -#line 7241 "sql.c" - break; - case 337: /* db_kind_opt ::= USER */ -#line 593 "sql.y" -{ yymsp[0].minor.yy245 = SHOW_KIND_DATABASES_USER; } -#line 7246 "sql.c" - break; - case 338: /* db_kind_opt ::= SYSTEM */ -#line 594 "sql.y" -{ yymsp[0].minor.yy245 = SHOW_KIND_DATABASES_SYSTEM; } -#line 7251 "sql.c" - break; - case 339: /* cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ -#line 600 "sql.y" -{ pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-8].minor.yy705, &yymsp[-7].minor.yy649, yymsp[-4].minor.yy600, yymsp[-5].minor.yy600, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } -#line 7256 "sql.c" - break; - case 340: /* cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ -#line 602 "sql.y" -{ pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-7].minor.yy705, &yymsp[-6].minor.yy649, NULL, yymsp[-4].minor.yy600, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } -#line 7261 "sql.c" - break; - case 341: /* cmd ::= DROP TSMA exists_opt full_tsma_name */ -#line 603 "sql.y" -{ pCxt->pRootNode = createDropTSMAStmt(pCxt, yymsp[-1].minor.yy705, yymsp[0].minor.yy600); } -#line 7266 "sql.c" - break; - case 342: /* cmd ::= SHOW db_name_cond_opt TSMAS */ -#line 604 "sql.y" -{ pCxt->pRootNode = createShowTSMASStmt(pCxt, yymsp[-1].minor.yy600); } -#line 7271 "sql.c" - break; - case 345: /* tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ -#line 611 "sql.y" -{ yymsp[-3].minor.yy600 = createTSMAOptions(pCxt, yymsp[-1].minor.yy748); } -#line 7276 "sql.c" - break; - case 346: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + case 347: /* tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ #line 615 "sql.y" -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy705, yymsp[-3].minor.yy600, yymsp[-1].minor.yy600, NULL, yymsp[0].minor.yy600); } -#line 7281 "sql.c" +{ yymsp[-3].minor.yy452 = createTSMAOptions(pCxt, yymsp[-1].minor.yy34); } +#line 7228 "sql.c" break; - case 347: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ -#line 617 "sql.y" -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy705, yymsp[-5].minor.yy600, yymsp[-3].minor.yy600, yymsp[-1].minor.yy748, NULL); } -#line 7286 "sql.c" + case 348: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ +#line 619 "sql.y" +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy437, yymsp[-3].minor.yy452, yymsp[-1].minor.yy452, NULL, yymsp[0].minor.yy452); } +#line 7233 "sql.c" break; - case 348: /* cmd ::= DROP INDEX exists_opt full_index_name */ -#line 618 "sql.y" -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy705, yymsp[0].minor.yy600); } -#line 7291 "sql.c" - break; - case 349: /* full_index_name ::= index_name */ -#line 620 "sql.y" -{ yylhsminor.yy600 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy649); } -#line 7296 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 350: /* full_index_name ::= db_name NK_DOT index_name */ + case 349: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ #line 621 "sql.y" -{ yylhsminor.yy600 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy649); } -#line 7302 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy437, yymsp[-5].minor.yy452, yymsp[-3].minor.yy452, yymsp[-1].minor.yy34, NULL); } +#line 7238 "sql.c" break; - case 351: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + case 350: /* cmd ::= DROP INDEX exists_opt full_index_name */ +#line 622 "sql.y" +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy437, yymsp[0].minor.yy452); } +#line 7243 "sql.c" + break; + case 351: /* full_index_name ::= index_name */ #line 624 "sql.y" -{ yymsp[-9].minor.yy600 = createIndexOption(pCxt, yymsp[-7].minor.yy748, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), NULL, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } -#line 7308 "sql.c" +{ yylhsminor.yy452 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy479); } +#line 7248 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 352: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ -#line 627 "sql.y" -{ yymsp[-11].minor.yy600 = createIndexOption(pCxt, yymsp[-9].minor.yy748, releaseRawExprNode(pCxt, yymsp[-5].minor.yy600), releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } -#line 7313 "sql.c" + case 352: /* full_index_name ::= db_name NK_DOT index_name */ +#line 625 "sql.y" +{ yylhsminor.yy452 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy479); } +#line 7254 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 355: /* func ::= sma_func_name NK_LP expression_list NK_RP */ -#line 634 "sql.y" -{ yylhsminor.yy600 = createFunctionNode(pCxt, &yymsp[-3].minor.yy649, yymsp[-1].minor.yy748); } -#line 7318 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; + case 353: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ +#line 628 "sql.y" +{ yymsp[-9].minor.yy452 = createIndexOption(pCxt, yymsp[-7].minor.yy34, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), NULL, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } +#line 7260 "sql.c" break; - case 356: /* sma_func_name ::= function_name */ - case 630: /* alias_opt ::= table_alias */ yytestcase(yyruleno==630); + case 354: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ +#line 631 "sql.y" +{ yymsp[-11].minor.yy452 = createIndexOption(pCxt, yymsp[-9].minor.yy34, releaseRawExprNode(pCxt, yymsp[-5].minor.yy452), releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } +#line 7265 "sql.c" + break; + case 357: /* func ::= sma_func_name NK_LP expression_list NK_RP */ #line 638 "sql.y" -{ yylhsminor.yy649 = yymsp[0].minor.yy649; } -#line 7325 "sql.c" - yymsp[0].minor.yy649 = yylhsminor.yy649; +{ yylhsminor.yy452 = createFunctionNode(pCxt, &yymsp[-3].minor.yy479, yymsp[-1].minor.yy34); } +#line 7270 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; - case 361: /* sma_stream_opt ::= */ - case 411: /* stream_options ::= */ yytestcase(yyruleno==411); -#line 644 "sql.y" -{ yymsp[1].minor.yy600 = createStreamOptions(pCxt); } + case 358: /* sma_func_name ::= function_name */ + case 632: /* alias_opt ::= table_alias */ yytestcase(yyruleno==632); +#line 642 "sql.y" +{ yylhsminor.yy479 = yymsp[0].minor.yy479; } +#line 7277 "sql.c" + yymsp[0].minor.yy479 = yylhsminor.yy479; + break; + case 363: /* sma_stream_opt ::= */ + case 413: /* stream_options ::= */ yytestcase(yyruleno==413); +#line 648 "sql.y" +{ yymsp[1].minor.yy452 = createStreamOptions(pCxt); } +#line 7284 "sql.c" + break; + case 364: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ +#line 649 "sql.y" +{ ((SStreamOptions*)yymsp[-2].minor.yy452)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = yymsp[-2].minor.yy452; } +#line 7289 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 365: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ +#line 650 "sql.y" +{ ((SStreamOptions*)yymsp[-2].minor.yy452)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = yymsp[-2].minor.yy452; } +#line 7295 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 366: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ +#line 651 "sql.y" +{ ((SStreamOptions*)yymsp[-2].minor.yy452)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = yymsp[-2].minor.yy452; } +#line 7301 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 367: /* with_meta ::= AS */ +#line 656 "sql.y" +{ yymsp[0].minor.yy100 = 0; } +#line 7307 "sql.c" + break; + case 368: /* with_meta ::= WITH META AS */ +#line 657 "sql.y" +{ yymsp[-2].minor.yy100 = 1; } +#line 7312 "sql.c" + break; + case 369: /* with_meta ::= ONLY META AS */ +#line 658 "sql.y" +{ yymsp[-2].minor.yy100 = 2; } +#line 7317 "sql.c" + break; + case 370: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ +#line 660 "sql.y" +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy437, &yymsp[-2].minor.yy479, yymsp[0].minor.yy452); } +#line 7322 "sql.c" + break; + case 371: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ +#line 662 "sql.y" +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy437, &yymsp[-3].minor.yy479, &yymsp[0].minor.yy479, yymsp[-2].minor.yy100); } +#line 7327 "sql.c" + break; + case 372: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ +#line 664 "sql.y" +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy437, &yymsp[-4].minor.yy479, yymsp[-1].minor.yy452, yymsp[-3].minor.yy100, yymsp[0].minor.yy452); } #line 7332 "sql.c" break; - case 362: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -#line 645 "sql.y" -{ ((SStreamOptions*)yymsp[-2].minor.yy600)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-2].minor.yy600; } -#line 7337 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 363: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -#line 646 "sql.y" -{ ((SStreamOptions*)yymsp[-2].minor.yy600)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-2].minor.yy600; } -#line 7343 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 364: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -#line 647 "sql.y" -{ ((SStreamOptions*)yymsp[-2].minor.yy600)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-2].minor.yy600; } -#line 7349 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 365: /* with_meta ::= AS */ -#line 652 "sql.y" -{ yymsp[0].minor.yy756 = 0; } -#line 7355 "sql.c" - break; - case 366: /* with_meta ::= WITH META AS */ -#line 653 "sql.y" -{ yymsp[-2].minor.yy756 = 1; } -#line 7360 "sql.c" - break; - case 367: /* with_meta ::= ONLY META AS */ -#line 654 "sql.y" -{ yymsp[-2].minor.yy756 = 2; } -#line 7365 "sql.c" - break; - case 368: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -#line 656 "sql.y" -{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy705, &yymsp[-2].minor.yy649, yymsp[0].minor.yy600); } -#line 7370 "sql.c" - break; - case 369: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -#line 658 "sql.y" -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy705, &yymsp[-3].minor.yy649, &yymsp[0].minor.yy649, yymsp[-2].minor.yy756); } -#line 7375 "sql.c" - break; - case 370: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -#line 660 "sql.y" -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy705, &yymsp[-4].minor.yy649, yymsp[-1].minor.yy600, yymsp[-3].minor.yy756, yymsp[0].minor.yy600); } -#line 7380 "sql.c" - break; - case 371: /* cmd ::= DROP TOPIC exists_opt topic_name */ -#line 662 "sql.y" -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy705, &yymsp[0].minor.yy649); } -#line 7385 "sql.c" - break; - case 372: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -#line 663 "sql.y" -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy705, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy649); } -#line 7390 "sql.c" - break; - case 373: /* cmd ::= DESC full_table_name */ - case 374: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==374); + case 373: /* cmd ::= DROP TOPIC exists_opt topic_name */ #line 666 "sql.y" -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy600); } -#line 7396 "sql.c" +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy479); } +#line 7337 "sql.c" break; - case 375: /* cmd ::= RESET QUERY CACHE */ + case 374: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ +#line 667 "sql.y" +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy437, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy479); } +#line 7342 "sql.c" + break; + case 375: /* cmd ::= DESC full_table_name */ + case 376: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==376); #line 670 "sql.y" +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy452); } +#line 7348 "sql.c" + break; + case 377: /* cmd ::= RESET QUERY CACHE */ +#line 674 "sql.y" { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } -#line 7401 "sql.c" +#line 7353 "sql.c" break; - case 376: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - case 377: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==377); -#line 673 "sql.y" -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy705, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } -#line 7407 "sql.c" + case 378: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + case 379: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==379); +#line 677 "sql.y" +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy437, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } +#line 7359 "sql.c" break; - case 380: /* explain_options ::= */ -#line 681 "sql.y" -{ yymsp[1].minor.yy600 = createDefaultExplainOptions(pCxt); } -#line 7412 "sql.c" + case 382: /* explain_options ::= */ +#line 685 "sql.y" +{ yymsp[1].minor.yy452 = createDefaultExplainOptions(pCxt); } +#line 7364 "sql.c" break; - case 381: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -#line 682 "sql.y" -{ yylhsminor.yy600 = setExplainVerbose(pCxt, yymsp[-2].minor.yy600, &yymsp[0].minor.yy0); } -#line 7417 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 383: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +#line 686 "sql.y" +{ yylhsminor.yy452 = setExplainVerbose(pCxt, yymsp[-2].minor.yy452, &yymsp[0].minor.yy0); } +#line 7369 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 382: /* explain_options ::= explain_options RATIO NK_FLOAT */ -#line 683 "sql.y" -{ yylhsminor.yy600 = setExplainRatio(pCxt, yymsp[-2].minor.yy600, &yymsp[0].minor.yy0); } -#line 7423 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 384: /* explain_options ::= explain_options RATIO NK_FLOAT */ +#line 687 "sql.y" +{ yylhsminor.yy452 = setExplainRatio(pCxt, yymsp[-2].minor.yy452, &yymsp[0].minor.yy0); } +#line 7375 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 383: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ -#line 688 "sql.y" -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy705, yymsp[-9].minor.yy705, &yymsp[-6].minor.yy649, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy400, yymsp[-1].minor.yy756, &yymsp[0].minor.yy649, yymsp[-10].minor.yy705); } -#line 7429 "sql.c" + case 385: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ +#line 692 "sql.y" +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy437, yymsp[-9].minor.yy437, &yymsp[-6].minor.yy479, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy874, yymsp[-1].minor.yy100, &yymsp[0].minor.yy479, yymsp[-10].minor.yy437); } +#line 7381 "sql.c" break; - case 384: /* cmd ::= DROP FUNCTION exists_opt function_name */ -#line 689 "sql.y" -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy705, &yymsp[0].minor.yy649); } -#line 7434 "sql.c" + case 386: /* cmd ::= DROP FUNCTION exists_opt function_name */ +#line 693 "sql.y" +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy479); } +#line 7386 "sql.c" break; - case 389: /* language_opt ::= */ - case 434: /* on_vgroup_id ::= */ yytestcase(yyruleno==434); -#line 703 "sql.y" -{ yymsp[1].minor.yy649 = nil_token; } + case 391: /* language_opt ::= */ + case 436: /* on_vgroup_id ::= */ yytestcase(yyruleno==436); +#line 707 "sql.y" +{ yymsp[1].minor.yy479 = nil_token; } +#line 7392 "sql.c" + break; + case 392: /* language_opt ::= LANGUAGE NK_STRING */ + case 437: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==437); +#line 708 "sql.y" +{ yymsp[-1].minor.yy479 = yymsp[0].minor.yy0; } +#line 7398 "sql.c" + break; + case 395: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ +#line 717 "sql.y" +{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy437, yymsp[-2].minor.yy452, &yymsp[-1].minor.yy0, yymsp[0].minor.yy452); } +#line 7403 "sql.c" + break; + case 396: /* cmd ::= DROP VIEW exists_opt full_view_name */ +#line 718 "sql.y" +{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy437, yymsp[0].minor.yy452); } +#line 7408 "sql.c" + break; + case 397: /* full_view_name ::= view_name */ +#line 720 "sql.y" +{ yylhsminor.yy452 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy479); } +#line 7413 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 398: /* full_view_name ::= db_name NK_DOT view_name */ +#line 721 "sql.y" +{ yylhsminor.yy452 = createViewNode(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy479); } +#line 7419 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 399: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ +#line 726 "sql.y" +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy437, &yymsp[-8].minor.yy479, yymsp[-5].minor.yy452, yymsp[-7].minor.yy452, yymsp[-3].minor.yy34, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, yymsp[-4].minor.yy34); } +#line 7425 "sql.c" + break; + case 400: /* cmd ::= DROP STREAM exists_opt stream_name */ +#line 727 "sql.y" +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy479); } +#line 7430 "sql.c" + break; + case 401: /* cmd ::= PAUSE STREAM exists_opt stream_name */ +#line 728 "sql.y" +{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy479); } +#line 7435 "sql.c" + break; + case 402: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ +#line 729 "sql.y" +{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy437, yymsp[-1].minor.yy437, &yymsp[0].minor.yy479); } #line 7440 "sql.c" break; - case 390: /* language_opt ::= LANGUAGE NK_STRING */ - case 435: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==435); -#line 704 "sql.y" -{ yymsp[-1].minor.yy649 = yymsp[0].minor.yy0; } -#line 7446 "sql.c" + case 407: /* column_stream_def ::= column_name stream_col_options */ +#line 742 "sql.y" +{ yylhsminor.yy452 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy479, createDataType(TSDB_DATA_TYPE_NULL), yymsp[0].minor.yy452); } +#line 7445 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 393: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ -#line 713 "sql.y" -{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy705, yymsp[-2].minor.yy600, &yymsp[-1].minor.yy0, yymsp[0].minor.yy600); } -#line 7451 "sql.c" + case 408: /* stream_col_options ::= */ + case 745: /* column_options ::= */ yytestcase(yyruleno==745); +#line 743 "sql.y" +{ yymsp[1].minor.yy452 = createDefaultColumnOptions(pCxt); } +#line 7452 "sql.c" break; - case 394: /* cmd ::= DROP VIEW exists_opt full_view_name */ -#line 714 "sql.y" -{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy705, yymsp[0].minor.yy600); } -#line 7456 "sql.c" + case 409: /* stream_col_options ::= stream_col_options PRIMARY KEY */ + case 746: /* column_options ::= column_options PRIMARY KEY */ yytestcase(yyruleno==746); +#line 744 "sql.y" +{ yylhsminor.yy452 = setColumnOptions(pCxt, yymsp[-2].minor.yy452, COLUMN_OPTION_PRIMARYKEY, NULL); } +#line 7458 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 395: /* full_view_name ::= view_name */ -#line 716 "sql.y" -{ yylhsminor.yy600 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy649); } -#line 7461 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 396: /* full_view_name ::= db_name NK_DOT view_name */ -#line 717 "sql.y" -{ yylhsminor.yy600 = createViewNode(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy649); } -#line 7467 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 397: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ -#line 722 "sql.y" -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy705, &yymsp[-8].minor.yy649, yymsp[-5].minor.yy600, yymsp[-7].minor.yy600, yymsp[-3].minor.yy748, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, yymsp[-4].minor.yy748); } -#line 7473 "sql.c" - break; - case 398: /* cmd ::= DROP STREAM exists_opt stream_name */ -#line 723 "sql.y" -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy705, &yymsp[0].minor.yy649); } -#line 7478 "sql.c" - break; - case 399: /* cmd ::= PAUSE STREAM exists_opt stream_name */ -#line 724 "sql.y" -{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy705, &yymsp[0].minor.yy649); } -#line 7483 "sql.c" - break; - case 400: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ -#line 725 "sql.y" -{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy705, yymsp[-1].minor.yy705, &yymsp[0].minor.yy649); } -#line 7488 "sql.c" - break; - case 405: /* column_stream_def ::= column_name stream_col_options */ -#line 738 "sql.y" -{ yylhsminor.yy600 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy649, createDataType(TSDB_DATA_TYPE_NULL), yymsp[0].minor.yy600); } -#line 7493 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; - break; - case 406: /* stream_col_options ::= */ - case 743: /* column_options ::= */ yytestcase(yyruleno==743); -#line 739 "sql.y" -{ yymsp[1].minor.yy600 = createDefaultColumnOptions(pCxt); } -#line 7500 "sql.c" - break; - case 407: /* stream_col_options ::= stream_col_options PRIMARY KEY */ - case 744: /* column_options ::= column_options PRIMARY KEY */ yytestcase(yyruleno==744); -#line 740 "sql.y" -{ yylhsminor.yy600 = setColumnOptions(pCxt, yymsp[-2].minor.yy600, COLUMN_OPTION_PRIMARYKEY, NULL); } -#line 7506 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 412: /* stream_options ::= stream_options TRIGGER AT_ONCE */ - case 413: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==413); -#line 750 "sql.y" -{ yylhsminor.yy600 = setStreamOptions(pCxt, yymsp[-2].minor.yy600, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } -#line 7513 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 414: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -#line 752 "sql.y" -{ yylhsminor.yy600 = setStreamOptions(pCxt, yymsp[-3].minor.yy600, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } -#line 7519 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; - break; - case 415: /* stream_options ::= stream_options WATERMARK duration_literal */ -#line 753 "sql.y" -{ yylhsminor.yy600 = setStreamOptions(pCxt, yymsp[-2].minor.yy600, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } -#line 7525 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 416: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + case 414: /* stream_options ::= stream_options TRIGGER AT_ONCE */ + case 415: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==415); #line 754 "sql.y" -{ yylhsminor.yy600 = setStreamOptions(pCxt, yymsp[-3].minor.yy600, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } -#line 7531 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-2].minor.yy452, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } +#line 7465 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 417: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -#line 755 "sql.y" -{ yylhsminor.yy600 = setStreamOptions(pCxt, yymsp[-2].minor.yy600, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } -#line 7537 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 418: /* stream_options ::= stream_options DELETE_MARK duration_literal */ + case 416: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ #line 756 "sql.y" -{ yylhsminor.yy600 = setStreamOptions(pCxt, yymsp[-2].minor.yy600, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } -#line 7543 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-3].minor.yy452, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } +#line 7471 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; - case 419: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + case 417: /* stream_options ::= stream_options WATERMARK duration_literal */ #line 757 "sql.y" -{ yylhsminor.yy600 = setStreamOptions(pCxt, yymsp[-3].minor.yy600, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } -#line 7549 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-2].minor.yy452, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } +#line 7477 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 421: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - case 687: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==687); - case 711: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==711); + case 418: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ +#line 758 "sql.y" +{ yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-3].minor.yy452, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } +#line 7483 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; + break; + case 419: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ +#line 759 "sql.y" +{ yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-2].minor.yy452, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } +#line 7489 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 420: /* stream_options ::= stream_options DELETE_MARK duration_literal */ #line 760 "sql.y" -{ yymsp[-3].minor.yy600 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy600); } -#line 7557 "sql.c" +{ yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-2].minor.yy452, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } +#line 7495 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 424: /* cmd ::= KILL CONNECTION NK_INTEGER */ -#line 768 "sql.y" + case 421: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ +#line 761 "sql.y" +{ yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-3].minor.yy452, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } +#line 7501 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; + break; + case 423: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + case 689: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==689); + case 713: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==713); +#line 764 "sql.y" +{ yymsp[-3].minor.yy452 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy452); } +#line 7509 "sql.c" + break; + case 426: /* cmd ::= KILL CONNECTION NK_INTEGER */ +#line 772 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } -#line 7562 "sql.c" +#line 7514 "sql.c" break; - case 425: /* cmd ::= KILL QUERY NK_STRING */ -#line 769 "sql.y" + case 427: /* cmd ::= KILL QUERY NK_STRING */ +#line 773 "sql.y" { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } -#line 7567 "sql.c" +#line 7519 "sql.c" break; - case 426: /* cmd ::= KILL TRANSACTION NK_INTEGER */ -#line 770 "sql.y" -{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } -#line 7572 "sql.c" - break; - case 427: /* cmd ::= KILL COMPACT NK_INTEGER */ -#line 771 "sql.y" -{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); } -#line 7577 "sql.c" - break; - case 428: /* cmd ::= BALANCE VGROUP */ + case 428: /* cmd ::= KILL TRANSACTION NK_INTEGER */ #line 774 "sql.y" -{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } -#line 7582 "sql.c" +{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } +#line 7524 "sql.c" break; - case 429: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ + case 429: /* cmd ::= KILL COMPACT NK_INTEGER */ #line 775 "sql.y" -{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy649); } -#line 7587 "sql.c" +{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); } +#line 7529 "sql.c" break; - case 430: /* cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ -#line 776 "sql.y" -{ pCxt->pRootNode = createBalanceVgroupLeaderDBNameStmt(pCxt, &yymsp[0].minor.yy649); } -#line 7592 "sql.c" - break; - case 431: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -#line 777 "sql.y" -{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 7597 "sql.c" - break; - case 432: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + case 430: /* cmd ::= BALANCE VGROUP */ #line 778 "sql.y" -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy748); } -#line 7602 "sql.c" +{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } +#line 7534 "sql.c" break; - case 433: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 431: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ #line 779 "sql.y" +{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy479); } +#line 7539 "sql.c" + break; + case 432: /* cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ +#line 780 "sql.y" +{ pCxt->pRootNode = createBalanceVgroupLeaderDBNameStmt(pCxt, &yymsp[0].minor.yy479); } +#line 7544 "sql.c" + break; + case 433: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ +#line 781 "sql.y" +{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 7549 "sql.c" + break; + case 434: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +#line 782 "sql.y" +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy34); } +#line 7554 "sql.c" + break; + case 435: /* cmd ::= SPLIT VGROUP NK_INTEGER */ +#line 783 "sql.y" { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } -#line 7607 "sql.c" +#line 7559 "sql.c" break; - case 436: /* dnode_list ::= DNODE NK_INTEGER */ -#line 788 "sql.y" -{ yymsp[-1].minor.yy748 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 7612 "sql.c" + case 438: /* dnode_list ::= DNODE NK_INTEGER */ +#line 792 "sql.y" +{ yymsp[-1].minor.yy34 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 7564 "sql.c" break; - case 438: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -#line 795 "sql.y" -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } -#line 7617 "sql.c" + case 440: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ +#line 799 "sql.y" +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } +#line 7569 "sql.c" break; - case 441: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -#line 804 "sql.y" -{ yymsp[-6].minor.yy600 = createInsertStmt(pCxt, yymsp[-4].minor.yy600, yymsp[-2].minor.yy748, yymsp[0].minor.yy600); } -#line 7622 "sql.c" - break; - case 442: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ -#line 805 "sql.y" -{ yymsp[-3].minor.yy600 = createInsertStmt(pCxt, yymsp[-1].minor.yy600, NULL, yymsp[0].minor.yy600); } -#line 7627 "sql.c" - break; - case 443: /* tags_literal ::= NK_INTEGER */ - case 455: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==455); - case 464: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==464); + case 443: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ #line 808 "sql.y" -{ yylhsminor.yy600 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } -#line 7634 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; +{ yymsp[-6].minor.yy452 = createInsertStmt(pCxt, yymsp[-4].minor.yy452, yymsp[-2].minor.yy34, yymsp[0].minor.yy452); } +#line 7574 "sql.c" break; - case 444: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - case 445: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==445); - case 456: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==456); - case 457: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==457); - case 465: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==465); - case 466: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==466); - case 474: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==474); - case 475: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==475); + case 444: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ #line 809 "sql.y" +{ yymsp[-3].minor.yy452 = createInsertStmt(pCxt, yymsp[-1].minor.yy452, NULL, yymsp[0].minor.yy452); } +#line 7579 "sql.c" + break; + case 445: /* tags_literal ::= NK_INTEGER */ + case 457: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==457); + case 466: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==466); +#line 812 "sql.y" +{ yylhsminor.yy452 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } +#line 7586 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 446: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + case 447: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==447); + case 458: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==458); + case 459: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==459); + case 467: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==467); + case 468: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==468); + case 476: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==476); + case 477: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==477); +#line 813 "sql.y" { SToken l = yymsp[-2].minor.yy0; - SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - l.n = (r.z + r.n) - l.z; - yylhsminor.yy600 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy600); + SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + l.n = (r.z + r.n) - l.z; + yylhsminor.yy452 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy452); } -#line 7652 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7604 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 446: /* tags_literal ::= NK_PLUS NK_INTEGER */ - case 449: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==449); - case 458: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==458); - case 461: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==461); - case 467: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==467); - case 470: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==470); -#line 821 "sql.y" + case 448: /* tags_literal ::= NK_PLUS NK_INTEGER */ + case 451: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==451); + case 460: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==460); + case 463: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==463); + case 469: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==469); + case 472: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==472); +#line 825 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy600 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL); + yylhsminor.yy452 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL); } -#line 7667 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; +#line 7619 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 447: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - case 448: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==448); - case 450: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==450); - case 451: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==451); - case 459: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==459); - case 460: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==460); - case 462: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==462); - case 463: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==463); - case 468: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==468); - case 469: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==469); - case 471: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==471); - case 472: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==472); -#line 826 "sql.y" + case 449: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + case 450: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==450); + case 452: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==452); + case 453: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==453); + case 461: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==461); + case 462: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==462); + case 464: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==464); + case 465: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==465); + case 470: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==470); + case 471: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==471); + case 473: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==473); + case 474: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==474); +#line 830 "sql.y" { SToken l = yymsp[-3].minor.yy0; - SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - l.n = (r.z + r.n) - l.z; - yylhsminor.yy600 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy600); + SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + l.n = (r.z + r.n) - l.z; + yylhsminor.yy452 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy452); } -#line 7689 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; +#line 7641 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; - case 452: /* tags_literal ::= NK_FLOAT */ -#line 855 "sql.y" -{ yylhsminor.yy600 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } -#line 7695 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 454: /* tags_literal ::= NK_FLOAT */ +#line 859 "sql.y" +{ yylhsminor.yy452 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } +#line 7647 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 453: /* tags_literal ::= NK_PLUS NK_FLOAT */ - case 454: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==454); -#line 856 "sql.y" + case 455: /* tags_literal ::= NK_PLUS NK_FLOAT */ + case 456: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==456); +#line 860 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy600 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL); + yylhsminor.yy452 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL); } -#line 7706 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; +#line 7658 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 473: /* tags_literal ::= NK_STRING */ -#line 962 "sql.y" -{ yylhsminor.yy600 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } -#line 7712 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 475: /* tags_literal ::= NK_STRING */ +#line 966 "sql.y" +{ yylhsminor.yy452 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } +#line 7664 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 476: /* tags_literal ::= NK_BOOL */ -#line 975 "sql.y" -{ yylhsminor.yy600 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } -#line 7718 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 477: /* tags_literal ::= NULL */ -#line 976 "sql.y" -{ yylhsminor.yy600 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } -#line 7724 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 478: /* tags_literal ::= literal_func */ -#line 978 "sql.y" -{ yylhsminor.yy600 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy600); } -#line 7730 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 479: /* tags_literal ::= literal_func NK_PLUS duration_literal */ - case 480: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==480); + case 478: /* tags_literal ::= NK_BOOL */ #line 979 "sql.y" +{ yylhsminor.yy452 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } +#line 7670 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 479: /* tags_literal ::= NULL */ +#line 980 "sql.y" +{ yylhsminor.yy452 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } +#line 7676 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 480: /* tags_literal ::= literal_func */ +#line 982 "sql.y" +{ yylhsminor.yy452 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy452); } +#line 7682 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 481: /* tags_literal ::= literal_func NK_PLUS duration_literal */ + case 482: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==482); +#line 983 "sql.y" { - SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); + SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); l.n = (r.z + r.n) - l.z; - yylhsminor.yy600 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy600, yymsp[0].minor.yy600); + yylhsminor.yy452 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy452, yymsp[0].minor.yy452); } -#line 7742 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7694 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 483: /* literal ::= NK_INTEGER */ -#line 998 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } -#line 7748 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 484: /* literal ::= NK_FLOAT */ -#line 999 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } -#line 7754 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 485: /* literal ::= NK_STRING */ -#line 1000 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } -#line 7760 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 486: /* literal ::= NK_BOOL */ -#line 1001 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } -#line 7766 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 487: /* literal ::= TIMESTAMP NK_STRING */ + case 485: /* literal ::= NK_INTEGER */ #line 1002 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } -#line 7772 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } +#line 7700 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 488: /* literal ::= duration_literal */ - case 498: /* signed_literal ::= signed */ yytestcase(yyruleno==498); - case 522: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==522); - case 523: /* expression ::= literal */ yytestcase(yyruleno==523); - case 525: /* expression ::= column_reference */ yytestcase(yyruleno==525); - case 526: /* expression ::= function_expression */ yytestcase(yyruleno==526); - case 527: /* expression ::= case_when_expression */ yytestcase(yyruleno==527); - case 561: /* function_expression ::= literal_func */ yytestcase(yyruleno==561); - case 611: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==611); - case 615: /* boolean_primary ::= predicate */ yytestcase(yyruleno==615); - case 617: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==617); - case 618: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==618); - case 621: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==621); - case 623: /* table_reference ::= table_primary */ yytestcase(yyruleno==623); - case 624: /* table_reference ::= joined_table */ yytestcase(yyruleno==624); - case 628: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==628); - case 713: /* query_simple ::= query_specification */ yytestcase(yyruleno==713); - case 714: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==714); - case 717: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==717); - case 719: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==719); + case 486: /* literal ::= NK_FLOAT */ #line 1003 "sql.y" -{ yylhsminor.yy600 = yymsp[0].minor.yy600; } -#line 7797 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } +#line 7706 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 489: /* literal ::= NULL */ + case 487: /* literal ::= NK_STRING */ #line 1004 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } -#line 7803 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } +#line 7712 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 490: /* literal ::= NK_QUESTION */ + case 488: /* literal ::= NK_BOOL */ #line 1005 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 7809 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } +#line 7718 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 491: /* duration_literal ::= NK_VARIABLE */ - case 688: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==688); - case 689: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==689); - case 690: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==690); + case 489: /* literal ::= TIMESTAMP NK_STRING */ +#line 1006 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } +#line 7724 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; + break; + case 490: /* literal ::= duration_literal */ + case 500: /* signed_literal ::= signed */ yytestcase(yyruleno==500); + case 524: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==524); + case 525: /* expression ::= literal */ yytestcase(yyruleno==525); + case 527: /* expression ::= column_reference */ yytestcase(yyruleno==527); + case 528: /* expression ::= function_expression */ yytestcase(yyruleno==528); + case 529: /* expression ::= case_when_expression */ yytestcase(yyruleno==529); + case 563: /* function_expression ::= literal_func */ yytestcase(yyruleno==563); + case 613: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==613); + case 617: /* boolean_primary ::= predicate */ yytestcase(yyruleno==617); + case 619: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==619); + case 620: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==620); + case 623: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==623); + case 625: /* table_reference ::= table_primary */ yytestcase(yyruleno==625); + case 626: /* table_reference ::= joined_table */ yytestcase(yyruleno==626); + case 630: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==630); + case 715: /* query_simple ::= query_specification */ yytestcase(yyruleno==715); + case 716: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==716); + case 719: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==719); + case 721: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==721); #line 1007 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 7818 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = yymsp[0].minor.yy452; } +#line 7749 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 492: /* signed ::= NK_INTEGER */ + case 491: /* literal ::= NULL */ +#line 1008 "sql.y" +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } +#line 7755 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 492: /* literal ::= NK_QUESTION */ #line 1009 "sql.y" -{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } -#line 7824 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 7761 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 493: /* signed ::= NK_PLUS NK_INTEGER */ -#line 1010 "sql.y" -{ yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } + case 493: /* duration_literal ::= NK_VARIABLE */ + case 690: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==690); + case 691: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==691); + case 692: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==692); +#line 1011 "sql.y" +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 7770 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 494: /* signed ::= NK_INTEGER */ +#line 1013 "sql.y" +{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } +#line 7776 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 495: /* signed ::= NK_PLUS NK_INTEGER */ +#line 1014 "sql.y" +{ yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } +#line 7782 "sql.c" + break; + case 496: /* signed ::= NK_MINUS NK_INTEGER */ +#line 1015 "sql.y" +{ + SToken t = yymsp[-1].minor.yy0; + t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; + yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + } +#line 7791 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; + break; + case 497: /* signed ::= NK_FLOAT */ +#line 1020 "sql.y" +{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +#line 7797 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 498: /* signed ::= NK_PLUS NK_FLOAT */ +#line 1021 "sql.y" +{ yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +#line 7803 "sql.c" + break; + case 499: /* signed ::= NK_MINUS NK_FLOAT */ +#line 1022 "sql.y" +{ + SToken t = yymsp[-1].minor.yy0; + t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; + yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + } +#line 7812 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; + break; + case 501: /* signed_literal ::= NK_STRING */ +#line 1029 "sql.y" +{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +#line 7818 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 502: /* signed_literal ::= NK_BOOL */ +#line 1030 "sql.y" +{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } +#line 7824 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 503: /* signed_literal ::= TIMESTAMP NK_STRING */ +#line 1031 "sql.y" +{ yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } #line 7830 "sql.c" break; - case 494: /* signed ::= NK_MINUS NK_INTEGER */ -#line 1011 "sql.y" -{ - SToken t = yymsp[-1].minor.yy0; - t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); - } -#line 7839 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; + case 504: /* signed_literal ::= duration_literal */ + case 506: /* signed_literal ::= literal_func */ yytestcase(yyruleno==506); + case 584: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==584); + case 667: /* select_item ::= common_expression */ yytestcase(yyruleno==667); + case 677: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==677); + case 720: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==720); + case 722: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==722); + case 735: /* search_condition ::= common_expression */ yytestcase(yyruleno==735); +#line 1032 "sql.y" +{ yylhsminor.yy452 = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); } +#line 7842 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 495: /* signed ::= NK_FLOAT */ -#line 1016 "sql.y" -{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } -#line 7845 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 505: /* signed_literal ::= NULL */ +#line 1033 "sql.y" +{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } +#line 7848 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 496: /* signed ::= NK_PLUS NK_FLOAT */ -#line 1017 "sql.y" -{ yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } -#line 7851 "sql.c" + case 507: /* signed_literal ::= NK_QUESTION */ +#line 1035 "sql.y" +{ yylhsminor.yy452 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } +#line 7854 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 497: /* signed ::= NK_MINUS NK_FLOAT */ -#line 1018 "sql.y" -{ - SToken t = yymsp[-1].minor.yy0; - t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); - } -#line 7860 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; - break; - case 499: /* signed_literal ::= NK_STRING */ -#line 1025 "sql.y" -{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } -#line 7866 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 500: /* signed_literal ::= NK_BOOL */ -#line 1026 "sql.y" -{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } -#line 7872 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 501: /* signed_literal ::= TIMESTAMP NK_STRING */ -#line 1027 "sql.y" -{ yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } -#line 7878 "sql.c" - break; - case 502: /* signed_literal ::= duration_literal */ - case 504: /* signed_literal ::= literal_func */ yytestcase(yyruleno==504); - case 582: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==582); - case 665: /* select_item ::= common_expression */ yytestcase(yyruleno==665); - case 675: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==675); - case 718: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==718); - case 720: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==720); - case 733: /* search_condition ::= common_expression */ yytestcase(yyruleno==733); -#line 1028 "sql.y" -{ yylhsminor.yy600 = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); } -#line 7890 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 503: /* signed_literal ::= NULL */ -#line 1029 "sql.y" -{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } -#line 7896 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 505: /* signed_literal ::= NK_QUESTION */ -#line 1031 "sql.y" -{ yylhsminor.yy600 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } -#line 7902 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 524: /* expression ::= pseudo_column */ -#line 1097 "sql.y" -{ yylhsminor.yy600 = yymsp[0].minor.yy600; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy600, true); } -#line 7908 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 528: /* expression ::= NK_LP expression NK_RP */ - case 616: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==616); - case 732: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==732); + case 526: /* expression ::= pseudo_column */ #line 1101 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } -#line 7916 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = yymsp[0].minor.yy452; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy452, true); } +#line 7860 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 529: /* expression ::= NK_PLUS expr_or_subquery */ -#line 1102 "sql.y" -{ - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); - } -#line 7925 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; + case 530: /* expression ::= NK_LP expression NK_RP */ + case 618: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==618); + case 734: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==734); +#line 1105 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } +#line 7868 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 530: /* expression ::= NK_MINUS expr_or_subquery */ + case 531: /* expression ::= NK_PLUS expr_or_subquery */ #line 1106 "sql.y" { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy600), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } -#line 7934 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; +#line 7877 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 531: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + case 532: /* expression ::= NK_MINUS expr_or_subquery */ #line 1110 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy452), NULL)); } -#line 7944 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7886 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 532: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -#line 1115 "sql.y" + case 533: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ +#line 1114 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 7954 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7896 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 533: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -#line 1120 "sql.y" + case 534: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ +#line 1119 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 7964 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7906 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 534: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -#line 1125 "sql.y" + case 535: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ +#line 1124 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 7974 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7916 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 535: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ -#line 1130 "sql.y" + case 536: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ +#line 1129 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 7984 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7926 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 536: /* expression ::= column_reference NK_ARROW NK_STRING */ -#line 1135 "sql.y" + case 537: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ +#line 1134 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 7993 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7936 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 537: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + case 538: /* expression ::= column_reference NK_ARROW NK_STRING */ #line 1139 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } -#line 8003 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7945 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 538: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -#line 1144 "sql.y" + case 539: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ +#line 1143 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 8013 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 7955 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 541: /* column_reference ::= column_name */ -#line 1155 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy649, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy649)); } -#line 8019 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 540: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ +#line 1148 "sql.y" +{ + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + } +#line 7965 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 542: /* column_reference ::= table_name NK_DOT column_name */ -#line 1156 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy649, createColumnNode(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy649)); } -#line 8025 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 543: /* column_reference ::= column_name */ +#line 1159 "sql.y" +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy479, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy479)); } +#line 7971 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 543: /* column_reference ::= NK_ALIAS */ -#line 1157 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } -#line 8031 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 544: /* column_reference ::= table_name NK_DOT NK_ALIAS */ -#line 1158 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy0)); } -#line 8037 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 545: /* pseudo_column ::= ROWTS */ - case 546: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==546); - case 548: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==548); - case 549: /* pseudo_column ::= QEND */ yytestcase(yyruleno==549); - case 550: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==550); - case 551: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==551); - case 552: /* pseudo_column ::= WEND */ yytestcase(yyruleno==552); - case 553: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==553); - case 554: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==554); - case 555: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==555); - case 556: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==556); - case 563: /* literal_func ::= NOW */ yytestcase(yyruleno==563); - case 564: /* literal_func ::= TODAY */ yytestcase(yyruleno==564); + case 544: /* column_reference ::= table_name NK_DOT column_name */ #line 1160 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } -#line 8055 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy479, createColumnNode(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy479)); } +#line 7977 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 547: /* pseudo_column ::= table_name NK_DOT TBNAME */ + case 545: /* column_reference ::= NK_ALIAS */ +#line 1161 "sql.y" +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } +#line 7983 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 546: /* column_reference ::= table_name NK_DOT NK_ALIAS */ #line 1162 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy649)))); } -#line 8061 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy0)); } +#line 7989 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 557: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 558: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==558); -#line 1173 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy649, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy649, yymsp[-1].minor.yy748)); } -#line 8068 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; + case 547: /* pseudo_column ::= ROWTS */ + case 548: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==548); + case 550: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==550); + case 551: /* pseudo_column ::= QEND */ yytestcase(yyruleno==551); + case 552: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==552); + case 553: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==553); + case 554: /* pseudo_column ::= WEND */ yytestcase(yyruleno==554); + case 555: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==555); + case 556: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==556); + case 557: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==557); + case 558: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==558); + case 565: /* literal_func ::= NOW */ yytestcase(yyruleno==565); + case 566: /* literal_func ::= TODAY */ yytestcase(yyruleno==566); +#line 1164 "sql.y" +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } +#line 8007 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; break; - case 559: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - case 560: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==560); -#line 1176 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-1].minor.yy400)); } -#line 8075 "sql.c" - yymsp[-5].minor.yy600 = yylhsminor.yy600; + case 549: /* pseudo_column ::= table_name NK_DOT TBNAME */ +#line 1166 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy479)))); } +#line 8013 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 562: /* literal_func ::= noarg_func NK_LP NK_RP */ -#line 1182 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy649, NULL)); } -#line 8081 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 559: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 560: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==560); +#line 1177 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy479, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy479, yymsp[-1].minor.yy34)); } +#line 8020 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; - case 578: /* star_func_para_list ::= NK_STAR */ -#line 1207 "sql.y" -{ yylhsminor.yy748 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } -#line 8087 "sql.c" - yymsp[0].minor.yy748 = yylhsminor.yy748; + case 561: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + case 562: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==562); +#line 1180 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-1].minor.yy874)); } +#line 8027 "sql.c" + yymsp[-5].minor.yy452 = yylhsminor.yy452; break; - case 583: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 668: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==668); -#line 1216 "sql.y" -{ yylhsminor.yy600 = createColumnNode(pCxt, &yymsp[-2].minor.yy649, &yymsp[0].minor.yy0); } -#line 8094 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 564: /* literal_func ::= noarg_func NK_LP NK_RP */ +#line 1186 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy479, NULL)); } +#line 8033 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 584: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ -#line 1219 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy748, yymsp[-1].minor.yy600)); } -#line 8100 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; + case 580: /* star_func_para_list ::= NK_STAR */ +#line 1211 "sql.y" +{ yylhsminor.yy34 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } +#line 8039 "sql.c" + yymsp[0].minor.yy34 = yylhsminor.yy34; break; - case 585: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -#line 1221 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-2].minor.yy748, yymsp[-1].minor.yy600)); } -#line 8106 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; + case 585: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 670: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==670); +#line 1220 "sql.y" +{ yylhsminor.yy452 = createColumnNode(pCxt, &yymsp[-2].minor.yy479, &yymsp[0].minor.yy0); } +#line 8046 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 588: /* when_then_expr ::= WHEN common_expression THEN common_expression */ -#line 1228 "sql.y" -{ yymsp[-3].minor.yy600 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } -#line 8112 "sql.c" + case 586: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ +#line 1223 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy34, yymsp[-1].minor.yy452)); } +#line 8052 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; - case 590: /* case_when_else_opt ::= ELSE common_expression */ -#line 1231 "sql.y" -{ yymsp[-1].minor.yy600 = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); } -#line 8117 "sql.c" + case 587: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ +#line 1225 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-2].minor.yy34, yymsp[-1].minor.yy452)); } +#line 8058 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; break; - case 591: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ - case 596: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==596); -#line 1234 "sql.y" + case 590: /* when_then_expr ::= WHEN common_expression THEN common_expression */ +#line 1232 "sql.y" +{ yymsp[-3].minor.yy452 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } +#line 8064 "sql.c" + break; + case 592: /* case_when_else_opt ::= ELSE common_expression */ +#line 1235 "sql.y" +{ yymsp[-1].minor.yy452 = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); } +#line 8069 "sql.c" + break; + case 593: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ + case 598: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==598); +#line 1238 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy292, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy440, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 8127 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 8079 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 592: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -#line 1241 "sql.y" + case 594: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ +#line 1245 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy600), releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy452), releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 8137 "sql.c" - yymsp[-4].minor.yy600 = yylhsminor.yy600; +#line 8089 "sql.c" + yymsp[-4].minor.yy452 = yylhsminor.yy452; break; - case 593: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -#line 1247 "sql.y" + case 595: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ +#line 1251 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy600), releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy452), releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 8147 "sql.c" - yymsp[-5].minor.yy600 = yylhsminor.yy600; +#line 8099 "sql.c" + yymsp[-5].minor.yy452 = yylhsminor.yy452; break; - case 594: /* predicate ::= expr_or_subquery IS NULL */ -#line 1252 "sql.y" -{ - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), NULL)); - } -#line 8156 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 595: /* predicate ::= expr_or_subquery IS NOT NULL */ + case 596: /* predicate ::= expr_or_subquery IS NULL */ #line 1256 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), NULL)); } -#line 8165 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; +#line 8108 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 597: /* compare_op ::= NK_LT */ -#line 1268 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_LOWER_THAN; } -#line 8171 "sql.c" + case 597: /* predicate ::= expr_or_subquery IS NOT NULL */ +#line 1260 "sql.y" +{ + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), NULL)); + } +#line 8117 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; - case 598: /* compare_op ::= NK_GT */ -#line 1269 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_GREATER_THAN; } -#line 8176 "sql.c" - break; - case 599: /* compare_op ::= NK_LE */ -#line 1270 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_LOWER_EQUAL; } -#line 8181 "sql.c" - break; - case 600: /* compare_op ::= NK_GE */ -#line 1271 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_GREATER_EQUAL; } -#line 8186 "sql.c" - break; - case 601: /* compare_op ::= NK_NE */ + case 599: /* compare_op ::= NK_LT */ #line 1272 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_NOT_EQUAL; } -#line 8191 "sql.c" +{ yymsp[0].minor.yy440 = OP_TYPE_LOWER_THAN; } +#line 8123 "sql.c" break; - case 602: /* compare_op ::= NK_EQ */ + case 600: /* compare_op ::= NK_GT */ #line 1273 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_EQUAL; } -#line 8196 "sql.c" +{ yymsp[0].minor.yy440 = OP_TYPE_GREATER_THAN; } +#line 8128 "sql.c" break; - case 603: /* compare_op ::= LIKE */ + case 601: /* compare_op ::= NK_LE */ #line 1274 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_LIKE; } -#line 8201 "sql.c" +{ yymsp[0].minor.yy440 = OP_TYPE_LOWER_EQUAL; } +#line 8133 "sql.c" break; - case 604: /* compare_op ::= NOT LIKE */ + case 602: /* compare_op ::= NK_GE */ #line 1275 "sql.y" -{ yymsp[-1].minor.yy292 = OP_TYPE_NOT_LIKE; } -#line 8206 "sql.c" +{ yymsp[0].minor.yy440 = OP_TYPE_GREATER_EQUAL; } +#line 8138 "sql.c" break; - case 605: /* compare_op ::= MATCH */ + case 603: /* compare_op ::= NK_NE */ #line 1276 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_MATCH; } -#line 8211 "sql.c" +{ yymsp[0].minor.yy440 = OP_TYPE_NOT_EQUAL; } +#line 8143 "sql.c" break; - case 606: /* compare_op ::= NMATCH */ + case 604: /* compare_op ::= NK_EQ */ #line 1277 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_NMATCH; } -#line 8216 "sql.c" +{ yymsp[0].minor.yy440 = OP_TYPE_EQUAL; } +#line 8148 "sql.c" break; - case 607: /* compare_op ::= CONTAINS */ + case 605: /* compare_op ::= LIKE */ #line 1278 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_JSON_CONTAINS; } -#line 8221 "sql.c" +{ yymsp[0].minor.yy440 = OP_TYPE_LIKE; } +#line 8153 "sql.c" break; - case 608: /* in_op ::= IN */ + case 606: /* compare_op ::= NOT LIKE */ +#line 1279 "sql.y" +{ yymsp[-1].minor.yy440 = OP_TYPE_NOT_LIKE; } +#line 8158 "sql.c" + break; + case 607: /* compare_op ::= MATCH */ +#line 1280 "sql.y" +{ yymsp[0].minor.yy440 = OP_TYPE_MATCH; } +#line 8163 "sql.c" + break; + case 608: /* compare_op ::= NMATCH */ +#line 1281 "sql.y" +{ yymsp[0].minor.yy440 = OP_TYPE_NMATCH; } +#line 8168 "sql.c" + break; + case 609: /* compare_op ::= CONTAINS */ #line 1282 "sql.y" -{ yymsp[0].minor.yy292 = OP_TYPE_IN; } -#line 8226 "sql.c" +{ yymsp[0].minor.yy440 = OP_TYPE_JSON_CONTAINS; } +#line 8173 "sql.c" break; - case 609: /* in_op ::= NOT IN */ -#line 1283 "sql.y" -{ yymsp[-1].minor.yy292 = OP_TYPE_NOT_IN; } -#line 8231 "sql.c" + case 610: /* in_op ::= IN */ +#line 1286 "sql.y" +{ yymsp[0].minor.yy440 = OP_TYPE_IN; } +#line 8178 "sql.c" break; - case 610: /* in_predicate_value ::= NK_LP literal_list NK_RP */ -#line 1285 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy748)); } -#line 8236 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 611: /* in_op ::= NOT IN */ +#line 1287 "sql.y" +{ yymsp[-1].minor.yy440 = OP_TYPE_NOT_IN; } +#line 8183 "sql.c" break; - case 612: /* boolean_value_expression ::= NOT boolean_primary */ + case 612: /* in_predicate_value ::= NK_LP literal_list NK_RP */ #line 1289 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy34)); } +#line 8188 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 614: /* boolean_value_expression ::= NOT boolean_primary */ +#line 1293 "sql.y" { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy600), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy452), NULL)); } -#line 8245 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; +#line 8197 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 613: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -#line 1294 "sql.y" + case 615: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ +#line 1298 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 8255 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 8207 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 614: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -#line 1300 "sql.y" + case 616: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ +#line 1304 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); - yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); + yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } -#line 8265 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; +#line 8217 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 622: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -#line 1318 "sql.y" -{ yylhsminor.yy600 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, JOIN_STYPE_NONE, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, NULL); } -#line 8271 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 624: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +#line 1322 "sql.y" +{ yylhsminor.yy452 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, JOIN_STYPE_NONE, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, NULL); } +#line 8223 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 625: /* table_primary ::= table_name alias_opt */ -#line 1324 "sql.y" -{ yylhsminor.yy600 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy649, &yymsp[0].minor.yy649); } -#line 8277 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; + case 627: /* table_primary ::= table_name alias_opt */ +#line 1328 "sql.y" +{ yylhsminor.yy452 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy479, &yymsp[0].minor.yy479); } +#line 8229 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 626: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -#line 1325 "sql.y" -{ yylhsminor.yy600 = createRealTableNode(pCxt, &yymsp[-3].minor.yy649, &yymsp[-1].minor.yy649, &yymsp[0].minor.yy649); } -#line 8283 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; + case 628: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +#line 1329 "sql.y" +{ yylhsminor.yy452 = createRealTableNode(pCxt, &yymsp[-3].minor.yy479, &yymsp[-1].minor.yy479, &yymsp[0].minor.yy479); } +#line 8235 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; - case 627: /* table_primary ::= subquery alias_opt */ -#line 1326 "sql.y" -{ yylhsminor.yy600 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600), &yymsp[0].minor.yy649); } -#line 8289 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; + case 629: /* table_primary ::= subquery alias_opt */ +#line 1330 "sql.y" +{ yylhsminor.yy452 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452), &yymsp[0].minor.yy479); } +#line 8241 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 629: /* alias_opt ::= */ -#line 1331 "sql.y" -{ yymsp[1].minor.yy649 = nil_token; } -#line 8295 "sql.c" - break; - case 631: /* alias_opt ::= AS table_alias */ -#line 1333 "sql.y" -{ yymsp[-1].minor.yy649 = yymsp[0].minor.yy649; } -#line 8300 "sql.c" - break; - case 632: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 633: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==633); + case 631: /* alias_opt ::= */ #line 1335 "sql.y" -{ yymsp[-2].minor.yy600 = yymsp[-1].minor.yy600; } -#line 8306 "sql.c" +{ yymsp[1].minor.yy479 = nil_token; } +#line 8247 "sql.c" break; - case 634: /* joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ -#line 1341 "sql.y" -{ - yylhsminor.yy600 = createJoinTableNode(pCxt, yymsp[-6].minor.yy564, yymsp[-5].minor.yy758, yymsp[-7].minor.yy600, yymsp[-3].minor.yy600, yymsp[-2].minor.yy600); - yylhsminor.yy600 = addWindowOffsetClause(pCxt, yylhsminor.yy600, yymsp[-1].minor.yy600); - yylhsminor.yy600 = addJLimitClause(pCxt, yylhsminor.yy600, yymsp[0].minor.yy600); + case 633: /* alias_opt ::= AS table_alias */ +#line 1337 "sql.y" +{ yymsp[-1].minor.yy479 = yymsp[0].minor.yy479; } +#line 8252 "sql.c" + break; + case 634: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 635: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==635); +#line 1339 "sql.y" +{ yymsp[-2].minor.yy452 = yymsp[-1].minor.yy452; } +#line 8258 "sql.c" + break; + case 636: /* joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ +#line 1345 "sql.y" +{ + yylhsminor.yy452 = createJoinTableNode(pCxt, yymsp[-6].minor.yy162, yymsp[-5].minor.yy444, yymsp[-7].minor.yy452, yymsp[-3].minor.yy452, yymsp[-2].minor.yy452); + yylhsminor.yy452 = addWindowOffsetClause(pCxt, yylhsminor.yy452, yymsp[-1].minor.yy452); + yylhsminor.yy452 = addJLimitClause(pCxt, yylhsminor.yy452, yymsp[0].minor.yy452); } -#line 8315 "sql.c" - yymsp[-7].minor.yy600 = yylhsminor.yy600; +#line 8267 "sql.c" + yymsp[-7].minor.yy452 = yylhsminor.yy452; break; - case 635: /* join_type ::= */ -#line 1349 "sql.y" -{ yymsp[1].minor.yy564 = JOIN_TYPE_INNER; } -#line 8321 "sql.c" - break; - case 636: /* join_type ::= INNER */ -#line 1350 "sql.y" -{ yymsp[0].minor.yy564 = JOIN_TYPE_INNER; } -#line 8326 "sql.c" - break; - case 637: /* join_type ::= LEFT */ -#line 1351 "sql.y" -{ yymsp[0].minor.yy564 = JOIN_TYPE_LEFT; } -#line 8331 "sql.c" - break; - case 638: /* join_type ::= RIGHT */ -#line 1352 "sql.y" -{ yymsp[0].minor.yy564 = JOIN_TYPE_RIGHT; } -#line 8336 "sql.c" - break; - case 639: /* join_type ::= FULL */ + case 637: /* join_type ::= */ #line 1353 "sql.y" -{ yymsp[0].minor.yy564 = JOIN_TYPE_FULL; } -#line 8341 "sql.c" +{ yymsp[1].minor.yy162 = JOIN_TYPE_INNER; } +#line 8273 "sql.c" break; - case 640: /* join_subtype ::= */ + case 638: /* join_type ::= INNER */ +#line 1354 "sql.y" +{ yymsp[0].minor.yy162 = JOIN_TYPE_INNER; } +#line 8278 "sql.c" + break; + case 639: /* join_type ::= LEFT */ +#line 1355 "sql.y" +{ yymsp[0].minor.yy162 = JOIN_TYPE_LEFT; } +#line 8283 "sql.c" + break; + case 640: /* join_type ::= RIGHT */ +#line 1356 "sql.y" +{ yymsp[0].minor.yy162 = JOIN_TYPE_RIGHT; } +#line 8288 "sql.c" + break; + case 641: /* join_type ::= FULL */ #line 1357 "sql.y" -{ yymsp[1].minor.yy758 = JOIN_STYPE_NONE; } -#line 8346 "sql.c" +{ yymsp[0].minor.yy162 = JOIN_TYPE_FULL; } +#line 8293 "sql.c" break; - case 641: /* join_subtype ::= OUTER */ -#line 1358 "sql.y" -{ yymsp[0].minor.yy758 = JOIN_STYPE_OUTER; } -#line 8351 "sql.c" - break; - case 642: /* join_subtype ::= SEMI */ -#line 1359 "sql.y" -{ yymsp[0].minor.yy758 = JOIN_STYPE_SEMI; } -#line 8356 "sql.c" - break; - case 643: /* join_subtype ::= ANTI */ -#line 1360 "sql.y" -{ yymsp[0].minor.yy758 = JOIN_STYPE_ANTI; } -#line 8361 "sql.c" - break; - case 644: /* join_subtype ::= ASOF */ + case 642: /* join_subtype ::= */ #line 1361 "sql.y" -{ yymsp[0].minor.yy758 = JOIN_STYPE_ASOF; } -#line 8366 "sql.c" +{ yymsp[1].minor.yy444 = JOIN_STYPE_NONE; } +#line 8298 "sql.c" break; - case 645: /* join_subtype ::= WINDOW */ + case 643: /* join_subtype ::= OUTER */ #line 1362 "sql.y" -{ yymsp[0].minor.yy758 = JOIN_STYPE_WIN; } -#line 8371 "sql.c" +{ yymsp[0].minor.yy444 = JOIN_STYPE_OUTER; } +#line 8303 "sql.c" break; - case 649: /* window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ -#line 1369 "sql.y" -{ yymsp[-5].minor.yy600 = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } -#line 8376 "sql.c" + case 644: /* join_subtype ::= SEMI */ +#line 1363 "sql.y" +{ yymsp[0].minor.yy444 = JOIN_STYPE_SEMI; } +#line 8308 "sql.c" break; - case 650: /* window_offset_literal ::= NK_VARIABLE */ -#line 1371 "sql.y" -{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createTimeOffsetValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 8381 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 645: /* join_subtype ::= ANTI */ +#line 1364 "sql.y" +{ yymsp[0].minor.yy444 = JOIN_STYPE_ANTI; } +#line 8313 "sql.c" break; - case 651: /* window_offset_literal ::= NK_MINUS NK_VARIABLE */ -#line 1372 "sql.y" + case 646: /* join_subtype ::= ASOF */ +#line 1365 "sql.y" +{ yymsp[0].minor.yy444 = JOIN_STYPE_ASOF; } +#line 8318 "sql.c" + break; + case 647: /* join_subtype ::= WINDOW */ +#line 1366 "sql.y" +{ yymsp[0].minor.yy444 = JOIN_STYPE_WIN; } +#line 8323 "sql.c" + break; + case 651: /* window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ +#line 1373 "sql.y" +{ yymsp[-5].minor.yy452 = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } +#line 8328 "sql.c" + break; + case 652: /* window_offset_literal ::= NK_VARIABLE */ +#line 1375 "sql.y" +{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createTimeOffsetValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 8333 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 653: /* window_offset_literal ::= NK_MINUS NK_VARIABLE */ +#line 1376 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy600 = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t)); + yylhsminor.yy452 = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t)); } -#line 8391 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; +#line 8343 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; break; - case 653: /* jlimit_clause_opt ::= JLIMIT NK_INTEGER */ - case 724: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ yytestcase(yyruleno==724); - case 728: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==728); -#line 1379 "sql.y" -{ yymsp[-1].minor.yy600 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 8399 "sql.c" + case 655: /* jlimit_clause_opt ::= JLIMIT NK_INTEGER */ + case 726: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ yytestcase(yyruleno==726); + case 730: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==730); +#line 1383 "sql.y" +{ yymsp[-1].minor.yy452 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } +#line 8351 "sql.c" break; - case 654: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ -#line 1385 "sql.y" + case 656: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ +#line 1389 "sql.y" { - yymsp[-13].minor.yy600 = createSelectStmt(pCxt, yymsp[-11].minor.yy705, yymsp[-9].minor.yy748, yymsp[-8].minor.yy600, yymsp[-12].minor.yy748); - yymsp[-13].minor.yy600 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy600, yymsp[-10].minor.yy705); - yymsp[-13].minor.yy600 = addWhereClause(pCxt, yymsp[-13].minor.yy600, yymsp[-7].minor.yy600); - yymsp[-13].minor.yy600 = addPartitionByClause(pCxt, yymsp[-13].minor.yy600, yymsp[-6].minor.yy748); - yymsp[-13].minor.yy600 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy600, yymsp[-2].minor.yy600); - yymsp[-13].minor.yy600 = addGroupByClause(pCxt, yymsp[-13].minor.yy600, yymsp[-1].minor.yy748); - yymsp[-13].minor.yy600 = addHavingClause(pCxt, yymsp[-13].minor.yy600, yymsp[0].minor.yy600); - yymsp[-13].minor.yy600 = addRangeClause(pCxt, yymsp[-13].minor.yy600, yymsp[-5].minor.yy600); - yymsp[-13].minor.yy600 = addEveryClause(pCxt, yymsp[-13].minor.yy600, yymsp[-4].minor.yy600); - yymsp[-13].minor.yy600 = addFillClause(pCxt, yymsp[-13].minor.yy600, yymsp[-3].minor.yy600); + yymsp[-13].minor.yy452 = createSelectStmt(pCxt, yymsp[-11].minor.yy437, yymsp[-9].minor.yy34, yymsp[-8].minor.yy452, yymsp[-12].minor.yy34); + yymsp[-13].minor.yy452 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy452, yymsp[-10].minor.yy437); + yymsp[-13].minor.yy452 = addWhereClause(pCxt, yymsp[-13].minor.yy452, yymsp[-7].minor.yy452); + yymsp[-13].minor.yy452 = addPartitionByClause(pCxt, yymsp[-13].minor.yy452, yymsp[-6].minor.yy34); + yymsp[-13].minor.yy452 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy452, yymsp[-2].minor.yy452); + yymsp[-13].minor.yy452 = addGroupByClause(pCxt, yymsp[-13].minor.yy452, yymsp[-1].minor.yy34); + yymsp[-13].minor.yy452 = addHavingClause(pCxt, yymsp[-13].minor.yy452, yymsp[0].minor.yy452); + yymsp[-13].minor.yy452 = addRangeClause(pCxt, yymsp[-13].minor.yy452, yymsp[-5].minor.yy452); + yymsp[-13].minor.yy452 = addEveryClause(pCxt, yymsp[-13].minor.yy452, yymsp[-4].minor.yy452); + yymsp[-13].minor.yy452 = addFillClause(pCxt, yymsp[-13].minor.yy452, yymsp[-3].minor.yy452); } +#line 8367 "sql.c" + break; + case 657: /* hint_list ::= */ +#line 1404 "sql.y" +{ yymsp[1].minor.yy34 = createHintNodeList(pCxt, NULL); } +#line 8372 "sql.c" + break; + case 658: /* hint_list ::= NK_HINT */ +#line 1405 "sql.y" +{ yylhsminor.yy34 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } +#line 8377 "sql.c" + yymsp[0].minor.yy34 = yylhsminor.yy34; + break; + case 663: /* set_quantifier_opt ::= ALL */ +#line 1416 "sql.y" +{ yymsp[0].minor.yy437 = false; } +#line 8383 "sql.c" + break; + case 666: /* select_item ::= NK_STAR */ +#line 1423 "sql.y" +{ yylhsminor.yy452 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } +#line 8388 "sql.c" + yymsp[0].minor.yy452 = yylhsminor.yy452; + break; + case 668: /* select_item ::= common_expression column_alias */ + case 678: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==678); +#line 1425 "sql.y" +{ yylhsminor.yy452 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452), &yymsp[0].minor.yy479); } +#line 8395 "sql.c" + yymsp[-1].minor.yy452 = yylhsminor.yy452; + break; + case 669: /* select_item ::= common_expression AS column_alias */ + case 679: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==679); +#line 1426 "sql.y" +{ yylhsminor.yy452 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), &yymsp[0].minor.yy479); } +#line 8402 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 674: /* partition_by_clause_opt ::= PARTITION BY partition_list */ + case 704: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==704); + case 724: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==724); +#line 1435 "sql.y" +{ yymsp[-2].minor.yy34 = yymsp[0].minor.yy34; } +#line 8410 "sql.c" + break; + case 681: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ +#line 1448 "sql.y" +{ yymsp[-5].minor.yy452 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } #line 8415 "sql.c" break; - case 655: /* hint_list ::= */ -#line 1400 "sql.y" -{ yymsp[1].minor.yy748 = createHintNodeList(pCxt, NULL); } + case 682: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ +#line 1449 "sql.y" +{ yymsp[-3].minor.yy452 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } #line 8420 "sql.c" break; - case 656: /* hint_list ::= NK_HINT */ -#line 1401 "sql.y" -{ yylhsminor.yy748 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } -#line 8425 "sql.c" - yymsp[0].minor.yy748 = yylhsminor.yy748; - break; - case 661: /* set_quantifier_opt ::= ALL */ -#line 1412 "sql.y" -{ yymsp[0].minor.yy705 = false; } -#line 8431 "sql.c" - break; - case 664: /* select_item ::= NK_STAR */ -#line 1419 "sql.y" -{ yylhsminor.yy600 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } -#line 8436 "sql.c" - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 666: /* select_item ::= common_expression column_alias */ - case 676: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==676); -#line 1421 "sql.y" -{ yylhsminor.yy600 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600), &yymsp[0].minor.yy649); } -#line 8443 "sql.c" - yymsp[-1].minor.yy600 = yylhsminor.yy600; - break; - case 667: /* select_item ::= common_expression AS column_alias */ - case 677: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==677); -#line 1422 "sql.y" -{ yylhsminor.yy600 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), &yymsp[0].minor.yy649); } -#line 8450 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 672: /* partition_by_clause_opt ::= PARTITION BY partition_list */ - case 702: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==702); - case 722: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==722); -#line 1431 "sql.y" -{ yymsp[-2].minor.yy748 = yymsp[0].minor.yy748; } -#line 8458 "sql.c" - break; - case 679: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ -#line 1444 "sql.y" -{ yymsp[-5].minor.yy600 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } -#line 8463 "sql.c" - break; - case 680: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -#line 1445 "sql.y" -{ yymsp[-3].minor.yy600 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } -#line 8468 "sql.c" - break; - case 681: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -#line 1447 "sql.y" -{ yymsp[-5].minor.yy600 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), NULL, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } -#line 8473 "sql.c" - break; - case 682: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + case 683: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ #line 1451 "sql.y" -{ yymsp[-7].minor.yy600 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy600), releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } -#line 8478 "sql.c" +{ yymsp[-5].minor.yy452 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), NULL, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } +#line 8425 "sql.c" break; - case 683: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ -#line 1453 "sql.y" -{ yymsp[-6].minor.yy600 = createEventWindowNode(pCxt, yymsp[-3].minor.yy600, yymsp[0].minor.yy600); } -#line 8483 "sql.c" - break; - case 684: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ + case 684: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ #line 1455 "sql.y" -{ yymsp[-3].minor.yy600 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } -#line 8488 "sql.c" +{ yymsp[-7].minor.yy452 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy452), releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } +#line 8430 "sql.c" break; - case 685: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + case 685: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ #line 1457 "sql.y" -{ yymsp[-5].minor.yy600 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } -#line 8493 "sql.c" +{ yymsp[-6].minor.yy452 = createEventWindowNode(pCxt, yymsp[-3].minor.yy452, yymsp[0].minor.yy452); } +#line 8435 "sql.c" break; - case 692: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -#line 1467 "sql.y" -{ yymsp[-3].minor.yy600 = createFillNode(pCxt, yymsp[-1].minor.yy6, NULL); } -#line 8498 "sql.c" + case 686: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ +#line 1459 "sql.y" +{ yymsp[-3].minor.yy452 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } +#line 8440 "sql.c" break; - case 693: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -#line 1468 "sql.y" -{ yymsp[-5].minor.yy600 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy748)); } -#line 8503 "sql.c" + case 687: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +#line 1461 "sql.y" +{ yymsp[-5].minor.yy452 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } +#line 8445 "sql.c" break; - case 694: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -#line 1469 "sql.y" -{ yymsp[-5].minor.yy600 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy748)); } -#line 8508 "sql.c" + case 694: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +#line 1471 "sql.y" +{ yymsp[-3].minor.yy452 = createFillNode(pCxt, yymsp[-1].minor.yy984, NULL); } +#line 8450 "sql.c" break; - case 695: /* fill_mode ::= NONE */ + case 695: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ +#line 1472 "sql.y" +{ yymsp[-5].minor.yy452 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy34)); } +#line 8455 "sql.c" + break; + case 696: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ #line 1473 "sql.y" -{ yymsp[0].minor.yy6 = FILL_MODE_NONE; } -#line 8513 "sql.c" +{ yymsp[-5].minor.yy452 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy34)); } +#line 8460 "sql.c" break; - case 696: /* fill_mode ::= PREV */ -#line 1474 "sql.y" -{ yymsp[0].minor.yy6 = FILL_MODE_PREV; } -#line 8518 "sql.c" - break; - case 697: /* fill_mode ::= NULL */ -#line 1475 "sql.y" -{ yymsp[0].minor.yy6 = FILL_MODE_NULL; } -#line 8523 "sql.c" - break; - case 698: /* fill_mode ::= NULL_F */ -#line 1476 "sql.y" -{ yymsp[0].minor.yy6 = FILL_MODE_NULL_F; } -#line 8528 "sql.c" - break; - case 699: /* fill_mode ::= LINEAR */ + case 697: /* fill_mode ::= NONE */ #line 1477 "sql.y" -{ yymsp[0].minor.yy6 = FILL_MODE_LINEAR; } -#line 8533 "sql.c" +{ yymsp[0].minor.yy984 = FILL_MODE_NONE; } +#line 8465 "sql.c" break; - case 700: /* fill_mode ::= NEXT */ + case 698: /* fill_mode ::= PREV */ #line 1478 "sql.y" -{ yymsp[0].minor.yy6 = FILL_MODE_NEXT; } -#line 8538 "sql.c" +{ yymsp[0].minor.yy984 = FILL_MODE_PREV; } +#line 8470 "sql.c" break; - case 703: /* group_by_list ::= expr_or_subquery */ -#line 1487 "sql.y" -{ yylhsminor.yy748 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } -#line 8543 "sql.c" - yymsp[0].minor.yy748 = yylhsminor.yy748; + case 699: /* fill_mode ::= NULL */ +#line 1479 "sql.y" +{ yymsp[0].minor.yy984 = FILL_MODE_NULL; } +#line 8475 "sql.c" break; - case 704: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ -#line 1488 "sql.y" -{ yylhsminor.yy748 = addNodeToList(pCxt, yymsp[-2].minor.yy748, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } -#line 8549 "sql.c" - yymsp[-2].minor.yy748 = yylhsminor.yy748; + case 700: /* fill_mode ::= NULL_F */ +#line 1480 "sql.y" +{ yymsp[0].minor.yy984 = FILL_MODE_NULL_F; } +#line 8480 "sql.c" break; - case 708: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -#line 1495 "sql.y" -{ yymsp[-5].minor.yy600 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } -#line 8555 "sql.c" + case 701: /* fill_mode ::= LINEAR */ +#line 1481 "sql.y" +{ yymsp[0].minor.yy984 = FILL_MODE_LINEAR; } +#line 8485 "sql.c" break; - case 709: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ -#line 1497 "sql.y" -{ yymsp[-3].minor.yy600 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } -#line 8560 "sql.c" + case 702: /* fill_mode ::= NEXT */ +#line 1482 "sql.y" +{ yymsp[0].minor.yy984 = FILL_MODE_NEXT; } +#line 8490 "sql.c" break; - case 712: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -#line 1504 "sql.y" + case 705: /* group_by_list ::= expr_or_subquery */ +#line 1491 "sql.y" +{ yylhsminor.yy34 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } +#line 8495 "sql.c" + yymsp[0].minor.yy34 = yylhsminor.yy34; + break; + case 706: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ +#line 1492 "sql.y" +{ yylhsminor.yy34 = addNodeToList(pCxt, yymsp[-2].minor.yy34, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } +#line 8501 "sql.c" + yymsp[-2].minor.yy34 = yylhsminor.yy34; + break; + case 710: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ +#line 1499 "sql.y" +{ yymsp[-5].minor.yy452 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } +#line 8507 "sql.c" + break; + case 711: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ +#line 1501 "sql.y" +{ yymsp[-3].minor.yy452 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } +#line 8512 "sql.c" + break; + case 714: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ +#line 1508 "sql.y" { - yylhsminor.yy600 = addOrderByClause(pCxt, yymsp[-3].minor.yy600, yymsp[-2].minor.yy748); - yylhsminor.yy600 = addSlimitClause(pCxt, yylhsminor.yy600, yymsp[-1].minor.yy600); - yylhsminor.yy600 = addLimitClause(pCxt, yylhsminor.yy600, yymsp[0].minor.yy600); + yylhsminor.yy452 = addOrderByClause(pCxt, yymsp[-3].minor.yy452, yymsp[-2].minor.yy34); + yylhsminor.yy452 = addSlimitClause(pCxt, yylhsminor.yy452, yymsp[-1].minor.yy452); + yylhsminor.yy452 = addLimitClause(pCxt, yylhsminor.yy452, yymsp[0].minor.yy452); } -#line 8569 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; +#line 8521 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; - case 715: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -#line 1514 "sql.y" -{ yylhsminor.yy600 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy600, yymsp[0].minor.yy600); } -#line 8575 "sql.c" - yymsp[-3].minor.yy600 = yylhsminor.yy600; + case 717: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ +#line 1518 "sql.y" +{ yylhsminor.yy452 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy452, yymsp[0].minor.yy452); } +#line 8527 "sql.c" + yymsp[-3].minor.yy452 = yylhsminor.yy452; break; - case 716: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -#line 1516 "sql.y" -{ yylhsminor.yy600 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy600, yymsp[0].minor.yy600); } -#line 8581 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 718: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ +#line 1520 "sql.y" +{ yylhsminor.yy452 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy452, yymsp[0].minor.yy452); } +#line 8533 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 725: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 729: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==729); -#line 1531 "sql.y" -{ yymsp[-3].minor.yy600 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 727: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 731: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==731); +#line 1535 "sql.y" +{ yymsp[-3].minor.yy452 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } +#line 8540 "sql.c" + break; + case 728: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 732: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==732); +#line 1536 "sql.y" +{ yymsp[-3].minor.yy452 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } +#line 8546 "sql.c" + break; + case 733: /* subquery ::= NK_LP query_expression NK_RP */ +#line 1544 "sql.y" +{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy452); } +#line 8551 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 738: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ +#line 1558 "sql.y" +{ yylhsminor.yy452 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), yymsp[-1].minor.yy548, yymsp[0].minor.yy817); } +#line 8557 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; + break; + case 739: /* ordering_specification_opt ::= */ +#line 1562 "sql.y" +{ yymsp[1].minor.yy548 = ORDER_ASC; } +#line 8563 "sql.c" + break; + case 740: /* ordering_specification_opt ::= ASC */ +#line 1563 "sql.y" +{ yymsp[0].minor.yy548 = ORDER_ASC; } +#line 8568 "sql.c" + break; + case 741: /* ordering_specification_opt ::= DESC */ +#line 1564 "sql.y" +{ yymsp[0].minor.yy548 = ORDER_DESC; } +#line 8573 "sql.c" + break; + case 742: /* null_ordering_opt ::= */ +#line 1568 "sql.y" +{ yymsp[1].minor.yy817 = NULL_ORDER_DEFAULT; } +#line 8578 "sql.c" + break; + case 743: /* null_ordering_opt ::= NULLS FIRST */ +#line 1569 "sql.y" +{ yymsp[-1].minor.yy817 = NULL_ORDER_FIRST; } +#line 8583 "sql.c" + break; + case 744: /* null_ordering_opt ::= NULLS LAST */ +#line 1570 "sql.y" +{ yymsp[-1].minor.yy817 = NULL_ORDER_LAST; } #line 8588 "sql.c" break; - case 726: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 730: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==730); -#line 1532 "sql.y" -{ yymsp[-3].minor.yy600 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } -#line 8594 "sql.c" + case 747: /* column_options ::= column_options ENCODE NK_STRING */ +#line 1578 "sql.y" +{ yylhsminor.yy452 = setColumnOptions(pCxt, yymsp[-2].minor.yy452, COLUMN_OPTION_ENCODE, &yymsp[0].minor.yy0); } +#line 8593 "sql.c" + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 731: /* subquery ::= NK_LP query_expression NK_RP */ -#line 1540 "sql.y" -{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy600); } + case 748: /* column_options ::= column_options COMPRESS NK_STRING */ +#line 1579 "sql.y" +{ yylhsminor.yy452 = setColumnOptions(pCxt, yymsp[-2].minor.yy452, COLUMN_OPTION_COMPRESS, &yymsp[0].minor.yy0); } #line 8599 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; - case 736: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ -#line 1554 "sql.y" -{ yylhsminor.yy600 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), yymsp[-1].minor.yy1010, yymsp[0].minor.yy273); } + case 749: /* column_options ::= column_options LEVEL NK_STRING */ +#line 1580 "sql.y" +{ yylhsminor.yy452 = setColumnOptions(pCxt, yymsp[-2].minor.yy452, COLUMN_OPTION_LEVEL, &yymsp[0].minor.yy0); } #line 8605 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 737: /* ordering_specification_opt ::= */ -#line 1558 "sql.y" -{ yymsp[1].minor.yy1010 = ORDER_ASC; } -#line 8611 "sql.c" - break; - case 738: /* ordering_specification_opt ::= ASC */ -#line 1559 "sql.y" -{ yymsp[0].minor.yy1010 = ORDER_ASC; } -#line 8616 "sql.c" - break; - case 739: /* ordering_specification_opt ::= DESC */ -#line 1560 "sql.y" -{ yymsp[0].minor.yy1010 = ORDER_DESC; } -#line 8621 "sql.c" - break; - case 740: /* null_ordering_opt ::= */ -#line 1564 "sql.y" -{ yymsp[1].minor.yy273 = NULL_ORDER_DEFAULT; } -#line 8626 "sql.c" - break; - case 741: /* null_ordering_opt ::= NULLS FIRST */ -#line 1565 "sql.y" -{ yymsp[-1].minor.yy273 = NULL_ORDER_FIRST; } -#line 8631 "sql.c" - break; - case 742: /* null_ordering_opt ::= NULLS LAST */ -#line 1566 "sql.y" -{ yymsp[-1].minor.yy273 = NULL_ORDER_LAST; } -#line 8636 "sql.c" - break; - case 745: /* column_options ::= column_options ENCODE NK_STRING */ -#line 1574 "sql.y" -{ yylhsminor.yy600 = setColumnOptions(pCxt, yymsp[-2].minor.yy600, COLUMN_OPTION_ENCODE, &yymsp[0].minor.yy0); } -#line 8641 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 746: /* column_options ::= column_options COMPRESS NK_STRING */ -#line 1575 "sql.y" -{ yylhsminor.yy600 = setColumnOptions(pCxt, yymsp[-2].minor.yy600, COLUMN_OPTION_COMPRESS, &yymsp[0].minor.yy0); } -#line 8647 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 747: /* column_options ::= column_options LEVEL NK_STRING */ -#line 1576 "sql.y" -{ yylhsminor.yy600 = setColumnOptions(pCxt, yymsp[-2].minor.yy600, COLUMN_OPTION_LEVEL, &yymsp[0].minor.yy0); } -#line 8653 "sql.c" - yymsp[-2].minor.yy600 = yylhsminor.yy600; + yymsp[-2].minor.yy452 = yylhsminor.yy452; break; default: break; @@ -8724,7 +8676,7 @@ static void yy_syntax_error( } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } -#line 8727 "sql.c" +#line 8679 "sql.c" /************ End %syntax_error code ******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE diff --git a/source/util/src/terror.c b/source/util/src/terror.c index 0f594af0e9..bbf4390043 100644 --- a/source/util/src/terror.c +++ b/source/util/src/terror.c @@ -58,7 +58,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_RPC_TIMEOUT, "Conn read timeout") TAOS_DEFINE_ERROR(TSDB_CODE_RPC_SOMENODE_NOT_CONNECTED, "some vnode/qnode/mnode(s) out of service") TAOS_DEFINE_ERROR(TSDB_CODE_RPC_MAX_SESSIONS, "rpc open too many session") TAOS_DEFINE_ERROR(TSDB_CODE_RPC_NETWORK_ERROR, "rpc network error") -TAOS_DEFINE_ERROR(TSDB_CODE_RPC_NETWORK_BUSY, "rpc network busy") +TAOS_DEFINE_ERROR(TSDB_CODE_RPC_NETWORK_BUSY, "rpc network busy") //common & util TAOS_DEFINE_ERROR(TSDB_CODE_TIME_UNSYNCED, "Client and server's time is not synchronized") @@ -226,7 +226,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_MND_COLUMN_NOT_EXIST, "Column does not exist TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_STB_OPTION, "Invalid stable options") TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_ROW_BYTES, "Invalid row bytes") TAOS_DEFINE_ERROR(TSDB_CODE_MND_FIELD_VALUE_OVERFLOW, "out of range and overflow") -TAOS_DEFINE_ERROR(TSDB_CODE_MND_COLUMN_COMPRESS_ALREADY_EXIST, "Same with old param") +TAOS_DEFINE_ERROR(TSDB_CODE_MND_COLUMN_COMPRESS_ALREADY_EXIST, "Same with old param") // mnode-func @@ -681,6 +681,9 @@ TAOS_DEFINE_ERROR(TSDB_CODE_PAR_COL_PK_TYPE, "primary key column TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INVALID_PK_OP, "primary key column can not be added, modified, and dropped") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_PRIMARY_KEY_IS_NULL, "Primary key column should not be null") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_PRIMARY_KEY_IS_NONE, "Primary key column should not be none") +TAOS_DEFINE_ERROR(TSDB_CODE_PAR_TBNAME_ERROR, "Tbanme duplicated or not set") +TAOS_DEFINE_ERROR(TSDB_CODE_PAR_TBNAME_DUPLICATED, "Table name duplicated") +TAOS_DEFINE_ERROR(TSDB_CODE_PAR_TAG_NAME_DUPLICATED, "Tag name duplicated") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INTERNAL_ERROR, "Parser internal error") //planner From 0bcb7601661acae46590f96a7a9d3f254f774fea Mon Sep 17 00:00:00 2001 From: dmchen Date: Tue, 25 Jun 2024 02:15:43 +0000 Subject: [PATCH 28/36] fix/TD-30713 --- source/common/src/systable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/src/systable.c b/source/common/src/systable.c index 65c58abdda..0c0073b4a7 100644 --- a/source/common/src/systable.c +++ b/source/common/src/systable.c @@ -275,7 +275,7 @@ static const SSysDbTableSchema userUsersFullSchema[] = { {.name = "enable", .bytes = 1, .type = TSDB_DATA_TYPE_TINYINT, .sysInfo = true}, {.name = "sysinfo", .bytes = 1, .type = TSDB_DATA_TYPE_TINYINT, .sysInfo = true}, {.name = "createdb", .bytes = 1, .type = TSDB_DATA_TYPE_TINYINT, .sysInfo = true}, - {.name = "encrypted_pass", .bytes = TSDB_USER_LEN + VARSTR_HEADER_SIZE, .type = TSDB_DATA_TYPE_VARCHAR, .sysInfo = true}, + {.name = "encrypted_pass", .bytes = TSDB_PASSWORD_LEN + VARSTR_HEADER_SIZE, .type = TSDB_DATA_TYPE_VARCHAR, .sysInfo = true}, {.name = "allowed_host", .bytes = TSDB_PRIVILEDGE_HOST_LEN + VARSTR_HEADER_SIZE, .type = TSDB_DATA_TYPE_VARCHAR, .sysInfo = true}, }; From eaa45470a541fa067855ebed2b9d26358fc5aecd Mon Sep 17 00:00:00 2001 From: Shungang Li Date: Tue, 25 Jun 2024 10:51:49 +0800 Subject: [PATCH 29/36] feat: 'create table' add keyword file --- include/common/ttokendef.h | 446 ++-- source/libs/parser/inc/sql.y | 2 +- source/libs/parser/src/sql.c | 3900 +++++++++++++++++----------------- 3 files changed, 2146 insertions(+), 2202 deletions(-) diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index a276329c42..81c494223c 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -141,229 +141,229 @@ #define TK_NK_EQ 123 #define TK_USING 124 #define TK_TAGS 125 -#define TK_BOOL 126 -#define TK_TINYINT 127 -#define TK_SMALLINT 128 -#define TK_INT 129 -#define TK_INTEGER 130 -#define TK_BIGINT 131 -#define TK_FLOAT 132 -#define TK_DOUBLE 133 -#define TK_BINARY 134 -#define TK_NCHAR 135 -#define TK_UNSIGNED 136 -#define TK_JSON 137 -#define TK_VARCHAR 138 -#define TK_MEDIUMBLOB 139 -#define TK_BLOB 140 -#define TK_VARBINARY 141 -#define TK_GEOMETRY 142 -#define TK_DECIMAL 143 -#define TK_COMMENT 144 -#define TK_MAX_DELAY 145 -#define TK_WATERMARK 146 -#define TK_ROLLUP 147 -#define TK_TTL 148 -#define TK_SMA 149 -#define TK_DELETE_MARK 150 -#define TK_FIRST 151 -#define TK_LAST 152 -#define TK_SHOW 153 -#define TK_FULL 154 -#define TK_PRIVILEGES 155 -#define TK_DATABASES 156 -#define TK_TABLES 157 -#define TK_STABLES 158 -#define TK_MNODES 159 -#define TK_QNODES 160 -#define TK_ARBGROUPS 161 -#define TK_FUNCTIONS 162 -#define TK_INDEXES 163 -#define TK_ACCOUNTS 164 -#define TK_APPS 165 -#define TK_CONNECTIONS 166 -#define TK_LICENCES 167 -#define TK_GRANTS 168 -#define TK_LOGS 169 -#define TK_MACHINES 170 -#define TK_ENCRYPTIONS 171 -#define TK_QUERIES 172 -#define TK_SCORES 173 -#define TK_TOPICS 174 -#define TK_VARIABLES 175 -#define TK_BNODES 176 -#define TK_SNODES 177 -#define TK_TRANSACTIONS 178 -#define TK_DISTRIBUTED 179 -#define TK_CONSUMERS 180 -#define TK_SUBSCRIPTIONS 181 -#define TK_VNODES 182 -#define TK_ALIVE 183 -#define TK_VIEWS 184 -#define TK_VIEW 185 -#define TK_COMPACTS 186 -#define TK_NORMAL 187 -#define TK_CHILD 188 -#define TK_LIKE 189 -#define TK_TBNAME 190 -#define TK_QTAGS 191 -#define TK_AS 192 -#define TK_SYSTEM 193 -#define TK_TSMA 194 -#define TK_INTERVAL 195 -#define TK_RECURSIVE 196 -#define TK_TSMAS 197 -#define TK_FUNCTION 198 -#define TK_INDEX 199 -#define TK_COUNT 200 -#define TK_LAST_ROW 201 -#define TK_META 202 -#define TK_ONLY 203 -#define TK_TOPIC 204 -#define TK_CONSUMER 205 -#define TK_GROUP 206 -#define TK_DESC 207 -#define TK_DESCRIBE 208 -#define TK_RESET 209 -#define TK_QUERY 210 -#define TK_CACHE 211 -#define TK_EXPLAIN 212 -#define TK_ANALYZE 213 -#define TK_VERBOSE 214 -#define TK_NK_BOOL 215 -#define TK_RATIO 216 -#define TK_NK_FLOAT 217 -#define TK_OUTPUTTYPE 218 -#define TK_AGGREGATE 219 -#define TK_BUFSIZE 220 -#define TK_LANGUAGE 221 -#define TK_REPLACE 222 -#define TK_STREAM 223 -#define TK_INTO 224 -#define TK_PAUSE 225 -#define TK_RESUME 226 -#define TK_PRIMARY 227 -#define TK_KEY 228 -#define TK_TRIGGER 229 -#define TK_AT_ONCE 230 -#define TK_WINDOW_CLOSE 231 -#define TK_IGNORE 232 -#define TK_EXPIRED 233 -#define TK_FILL_HISTORY 234 -#define TK_UPDATE 235 -#define TK_SUBTABLE 236 -#define TK_UNTREATED 237 -#define TK_KILL 238 -#define TK_CONNECTION 239 -#define TK_TRANSACTION 240 -#define TK_BALANCE 241 -#define TK_VGROUP 242 -#define TK_LEADER 243 -#define TK_MERGE 244 -#define TK_REDISTRIBUTE 245 -#define TK_SPLIT 246 -#define TK_DELETE 247 -#define TK_INSERT 248 -#define TK_NK_BIN 249 -#define TK_NK_HEX 250 -#define TK_NULL 251 -#define TK_NK_QUESTION 252 -#define TK_NK_ALIAS 253 -#define TK_NK_ARROW 254 -#define TK_ROWTS 255 -#define TK_QSTART 256 -#define TK_QEND 257 -#define TK_QDURATION 258 -#define TK_WSTART 259 -#define TK_WEND 260 -#define TK_WDURATION 261 -#define TK_IROWTS 262 -#define TK_ISFILLED 263 -#define TK_CAST 264 -#define TK_NOW 265 -#define TK_TODAY 266 -#define TK_TIMEZONE 267 -#define TK_CLIENT_VERSION 268 -#define TK_SERVER_VERSION 269 -#define TK_SERVER_STATUS 270 -#define TK_CURRENT_USER 271 -#define TK_CASE 272 -#define TK_WHEN 273 -#define TK_THEN 274 -#define TK_ELSE 275 -#define TK_BETWEEN 276 -#define TK_IS 277 -#define TK_NK_LT 278 -#define TK_NK_GT 279 -#define TK_NK_LE 280 -#define TK_NK_GE 281 -#define TK_NK_NE 282 -#define TK_MATCH 283 -#define TK_NMATCH 284 -#define TK_CONTAINS 285 -#define TK_IN 286 -#define TK_JOIN 287 -#define TK_INNER 288 -#define TK_LEFT 289 -#define TK_RIGHT 290 -#define TK_OUTER 291 -#define TK_SEMI 292 -#define TK_ANTI 293 -#define TK_ASOF 294 -#define TK_WINDOW 295 -#define TK_WINDOW_OFFSET 296 -#define TK_JLIMIT 297 -#define TK_SELECT 298 -#define TK_NK_HINT 299 -#define TK_DISTINCT 300 -#define TK_WHERE 301 -#define TK_PARTITION 302 -#define TK_BY 303 -#define TK_SESSION 304 -#define TK_STATE_WINDOW 305 -#define TK_EVENT_WINDOW 306 -#define TK_COUNT_WINDOW 307 -#define TK_SLIDING 308 -#define TK_FILL 309 -#define TK_VALUE 310 -#define TK_VALUE_F 311 -#define TK_NONE 312 -#define TK_PREV 313 -#define TK_NULL_F 314 -#define TK_LINEAR 315 -#define TK_NEXT 316 -#define TK_HAVING 317 -#define TK_RANGE 318 -#define TK_EVERY 319 -#define TK_ORDER 320 -#define TK_SLIMIT 321 -#define TK_SOFFSET 322 -#define TK_LIMIT 323 -#define TK_OFFSET 324 -#define TK_ASC 325 -#define TK_NULLS 326 -#define TK_ABORT 327 -#define TK_AFTER 328 -#define TK_ATTACH 329 -#define TK_BEFORE 330 -#define TK_BEGIN 331 -#define TK_BITAND 332 -#define TK_BITNOT 333 -#define TK_BITOR 334 -#define TK_BLOCKS 335 -#define TK_CHANGE 336 -#define TK_COMMA 337 -#define TK_CONCAT 338 -#define TK_CONFLICT 339 -#define TK_COPY 340 -#define TK_DEFERRED 341 -#define TK_DELIMITERS 342 -#define TK_DETACH 343 -#define TK_DIVIDE 344 -#define TK_DOT 345 -#define TK_EACH 346 -#define TK_FAIL 347 -#define TK_FILE 348 +#define TK_FILE 126 +#define TK_BOOL 127 +#define TK_TINYINT 128 +#define TK_SMALLINT 129 +#define TK_INT 130 +#define TK_INTEGER 131 +#define TK_BIGINT 132 +#define TK_FLOAT 133 +#define TK_DOUBLE 134 +#define TK_BINARY 135 +#define TK_NCHAR 136 +#define TK_UNSIGNED 137 +#define TK_JSON 138 +#define TK_VARCHAR 139 +#define TK_MEDIUMBLOB 140 +#define TK_BLOB 141 +#define TK_VARBINARY 142 +#define TK_GEOMETRY 143 +#define TK_DECIMAL 144 +#define TK_COMMENT 145 +#define TK_MAX_DELAY 146 +#define TK_WATERMARK 147 +#define TK_ROLLUP 148 +#define TK_TTL 149 +#define TK_SMA 150 +#define TK_DELETE_MARK 151 +#define TK_FIRST 152 +#define TK_LAST 153 +#define TK_SHOW 154 +#define TK_FULL 155 +#define TK_PRIVILEGES 156 +#define TK_DATABASES 157 +#define TK_TABLES 158 +#define TK_STABLES 159 +#define TK_MNODES 160 +#define TK_QNODES 161 +#define TK_ARBGROUPS 162 +#define TK_FUNCTIONS 163 +#define TK_INDEXES 164 +#define TK_ACCOUNTS 165 +#define TK_APPS 166 +#define TK_CONNECTIONS 167 +#define TK_LICENCES 168 +#define TK_GRANTS 169 +#define TK_LOGS 170 +#define TK_MACHINES 171 +#define TK_ENCRYPTIONS 172 +#define TK_QUERIES 173 +#define TK_SCORES 174 +#define TK_TOPICS 175 +#define TK_VARIABLES 176 +#define TK_BNODES 177 +#define TK_SNODES 178 +#define TK_TRANSACTIONS 179 +#define TK_DISTRIBUTED 180 +#define TK_CONSUMERS 181 +#define TK_SUBSCRIPTIONS 182 +#define TK_VNODES 183 +#define TK_ALIVE 184 +#define TK_VIEWS 185 +#define TK_VIEW 186 +#define TK_COMPACTS 187 +#define TK_NORMAL 188 +#define TK_CHILD 189 +#define TK_LIKE 190 +#define TK_TBNAME 191 +#define TK_QTAGS 192 +#define TK_AS 193 +#define TK_SYSTEM 194 +#define TK_TSMA 195 +#define TK_INTERVAL 196 +#define TK_RECURSIVE 197 +#define TK_TSMAS 198 +#define TK_FUNCTION 199 +#define TK_INDEX 200 +#define TK_COUNT 201 +#define TK_LAST_ROW 202 +#define TK_META 203 +#define TK_ONLY 204 +#define TK_TOPIC 205 +#define TK_CONSUMER 206 +#define TK_GROUP 207 +#define TK_DESC 208 +#define TK_DESCRIBE 209 +#define TK_RESET 210 +#define TK_QUERY 211 +#define TK_CACHE 212 +#define TK_EXPLAIN 213 +#define TK_ANALYZE 214 +#define TK_VERBOSE 215 +#define TK_NK_BOOL 216 +#define TK_RATIO 217 +#define TK_NK_FLOAT 218 +#define TK_OUTPUTTYPE 219 +#define TK_AGGREGATE 220 +#define TK_BUFSIZE 221 +#define TK_LANGUAGE 222 +#define TK_REPLACE 223 +#define TK_STREAM 224 +#define TK_INTO 225 +#define TK_PAUSE 226 +#define TK_RESUME 227 +#define TK_PRIMARY 228 +#define TK_KEY 229 +#define TK_TRIGGER 230 +#define TK_AT_ONCE 231 +#define TK_WINDOW_CLOSE 232 +#define TK_IGNORE 233 +#define TK_EXPIRED 234 +#define TK_FILL_HISTORY 235 +#define TK_UPDATE 236 +#define TK_SUBTABLE 237 +#define TK_UNTREATED 238 +#define TK_KILL 239 +#define TK_CONNECTION 240 +#define TK_TRANSACTION 241 +#define TK_BALANCE 242 +#define TK_VGROUP 243 +#define TK_LEADER 244 +#define TK_MERGE 245 +#define TK_REDISTRIBUTE 246 +#define TK_SPLIT 247 +#define TK_DELETE 248 +#define TK_INSERT 249 +#define TK_NK_BIN 250 +#define TK_NK_HEX 251 +#define TK_NULL 252 +#define TK_NK_QUESTION 253 +#define TK_NK_ALIAS 254 +#define TK_NK_ARROW 255 +#define TK_ROWTS 256 +#define TK_QSTART 257 +#define TK_QEND 258 +#define TK_QDURATION 259 +#define TK_WSTART 260 +#define TK_WEND 261 +#define TK_WDURATION 262 +#define TK_IROWTS 263 +#define TK_ISFILLED 264 +#define TK_CAST 265 +#define TK_NOW 266 +#define TK_TODAY 267 +#define TK_TIMEZONE 268 +#define TK_CLIENT_VERSION 269 +#define TK_SERVER_VERSION 270 +#define TK_SERVER_STATUS 271 +#define TK_CURRENT_USER 272 +#define TK_CASE 273 +#define TK_WHEN 274 +#define TK_THEN 275 +#define TK_ELSE 276 +#define TK_BETWEEN 277 +#define TK_IS 278 +#define TK_NK_LT 279 +#define TK_NK_GT 280 +#define TK_NK_LE 281 +#define TK_NK_GE 282 +#define TK_NK_NE 283 +#define TK_MATCH 284 +#define TK_NMATCH 285 +#define TK_CONTAINS 286 +#define TK_IN 287 +#define TK_JOIN 288 +#define TK_INNER 289 +#define TK_LEFT 290 +#define TK_RIGHT 291 +#define TK_OUTER 292 +#define TK_SEMI 293 +#define TK_ANTI 294 +#define TK_ASOF 295 +#define TK_WINDOW 296 +#define TK_WINDOW_OFFSET 297 +#define TK_JLIMIT 298 +#define TK_SELECT 299 +#define TK_NK_HINT 300 +#define TK_DISTINCT 301 +#define TK_WHERE 302 +#define TK_PARTITION 303 +#define TK_BY 304 +#define TK_SESSION 305 +#define TK_STATE_WINDOW 306 +#define TK_EVENT_WINDOW 307 +#define TK_COUNT_WINDOW 308 +#define TK_SLIDING 309 +#define TK_FILL 310 +#define TK_VALUE 311 +#define TK_VALUE_F 312 +#define TK_NONE 313 +#define TK_PREV 314 +#define TK_NULL_F 315 +#define TK_LINEAR 316 +#define TK_NEXT 317 +#define TK_HAVING 318 +#define TK_RANGE 319 +#define TK_EVERY 320 +#define TK_ORDER 321 +#define TK_SLIMIT 322 +#define TK_SOFFSET 323 +#define TK_LIMIT 324 +#define TK_OFFSET 325 +#define TK_ASC 326 +#define TK_NULLS 327 +#define TK_ABORT 328 +#define TK_AFTER 329 +#define TK_ATTACH 330 +#define TK_BEFORE 331 +#define TK_BEGIN 332 +#define TK_BITAND 333 +#define TK_BITNOT 334 +#define TK_BITOR 335 +#define TK_BLOCKS 336 +#define TK_CHANGE 337 +#define TK_COMMA 338 +#define TK_CONCAT 339 +#define TK_CONFLICT 340 +#define TK_COPY 341 +#define TK_DEFERRED 342 +#define TK_DELIMITERS 343 +#define TK_DETACH 344 +#define TK_DIVIDE 345 +#define TK_DOT 346 +#define TK_EACH 347 +#define TK_FAIL 348 #define TK_FOR 349 #define TK_GLOB 350 #define TK_ID 351 diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index bb1f0048f1..f9bf9b8bb1 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -392,7 +392,7 @@ create_subtable_clause(A) ::= specific_cols_opt(E) TAGS NK_LP tags_literal_list(F) NK_RP table_options(G). { A = createCreateSubTableClause(pCxt, B, C, D, E, F, G); } create_from_file_clause(A) ::= not_exists_opt(B) USING full_table_name(C) - NK_LP tag_list_opt(D) NK_RP NK_STRING(E). { A = createCreateSubTableFromFileClause(pCxt, B, C, D, &E); } + NK_LP tag_list_opt(D) NK_RP FILE NK_STRING(E). { A = createCreateSubTableFromFileClause(pCxt, B, C, D, &E); } %type multi_drop_clause { SNodeList* } %destructor multi_drop_clause { nodesDestroyList($$); } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 3b7ac5dfec..2af9c1dadd 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -172,229 +172,229 @@ #define TK_NK_EQ 123 #define TK_USING 124 #define TK_TAGS 125 -#define TK_BOOL 126 -#define TK_TINYINT 127 -#define TK_SMALLINT 128 -#define TK_INT 129 -#define TK_INTEGER 130 -#define TK_BIGINT 131 -#define TK_FLOAT 132 -#define TK_DOUBLE 133 -#define TK_BINARY 134 -#define TK_NCHAR 135 -#define TK_UNSIGNED 136 -#define TK_JSON 137 -#define TK_VARCHAR 138 -#define TK_MEDIUMBLOB 139 -#define TK_BLOB 140 -#define TK_VARBINARY 141 -#define TK_GEOMETRY 142 -#define TK_DECIMAL 143 -#define TK_COMMENT 144 -#define TK_MAX_DELAY 145 -#define TK_WATERMARK 146 -#define TK_ROLLUP 147 -#define TK_TTL 148 -#define TK_SMA 149 -#define TK_DELETE_MARK 150 -#define TK_FIRST 151 -#define TK_LAST 152 -#define TK_SHOW 153 -#define TK_FULL 154 -#define TK_PRIVILEGES 155 -#define TK_DATABASES 156 -#define TK_TABLES 157 -#define TK_STABLES 158 -#define TK_MNODES 159 -#define TK_QNODES 160 -#define TK_ARBGROUPS 161 -#define TK_FUNCTIONS 162 -#define TK_INDEXES 163 -#define TK_ACCOUNTS 164 -#define TK_APPS 165 -#define TK_CONNECTIONS 166 -#define TK_LICENCES 167 -#define TK_GRANTS 168 -#define TK_LOGS 169 -#define TK_MACHINES 170 -#define TK_ENCRYPTIONS 171 -#define TK_QUERIES 172 -#define TK_SCORES 173 -#define TK_TOPICS 174 -#define TK_VARIABLES 175 -#define TK_BNODES 176 -#define TK_SNODES 177 -#define TK_TRANSACTIONS 178 -#define TK_DISTRIBUTED 179 -#define TK_CONSUMERS 180 -#define TK_SUBSCRIPTIONS 181 -#define TK_VNODES 182 -#define TK_ALIVE 183 -#define TK_VIEWS 184 -#define TK_VIEW 185 -#define TK_COMPACTS 186 -#define TK_NORMAL 187 -#define TK_CHILD 188 -#define TK_LIKE 189 -#define TK_TBNAME 190 -#define TK_QTAGS 191 -#define TK_AS 192 -#define TK_SYSTEM 193 -#define TK_TSMA 194 -#define TK_INTERVAL 195 -#define TK_RECURSIVE 196 -#define TK_TSMAS 197 -#define TK_FUNCTION 198 -#define TK_INDEX 199 -#define TK_COUNT 200 -#define TK_LAST_ROW 201 -#define TK_META 202 -#define TK_ONLY 203 -#define TK_TOPIC 204 -#define TK_CONSUMER 205 -#define TK_GROUP 206 -#define TK_DESC 207 -#define TK_DESCRIBE 208 -#define TK_RESET 209 -#define TK_QUERY 210 -#define TK_CACHE 211 -#define TK_EXPLAIN 212 -#define TK_ANALYZE 213 -#define TK_VERBOSE 214 -#define TK_NK_BOOL 215 -#define TK_RATIO 216 -#define TK_NK_FLOAT 217 -#define TK_OUTPUTTYPE 218 -#define TK_AGGREGATE 219 -#define TK_BUFSIZE 220 -#define TK_LANGUAGE 221 -#define TK_REPLACE 222 -#define TK_STREAM 223 -#define TK_INTO 224 -#define TK_PAUSE 225 -#define TK_RESUME 226 -#define TK_PRIMARY 227 -#define TK_KEY 228 -#define TK_TRIGGER 229 -#define TK_AT_ONCE 230 -#define TK_WINDOW_CLOSE 231 -#define TK_IGNORE 232 -#define TK_EXPIRED 233 -#define TK_FILL_HISTORY 234 -#define TK_UPDATE 235 -#define TK_SUBTABLE 236 -#define TK_UNTREATED 237 -#define TK_KILL 238 -#define TK_CONNECTION 239 -#define TK_TRANSACTION 240 -#define TK_BALANCE 241 -#define TK_VGROUP 242 -#define TK_LEADER 243 -#define TK_MERGE 244 -#define TK_REDISTRIBUTE 245 -#define TK_SPLIT 246 -#define TK_DELETE 247 -#define TK_INSERT 248 -#define TK_NK_BIN 249 -#define TK_NK_HEX 250 -#define TK_NULL 251 -#define TK_NK_QUESTION 252 -#define TK_NK_ALIAS 253 -#define TK_NK_ARROW 254 -#define TK_ROWTS 255 -#define TK_QSTART 256 -#define TK_QEND 257 -#define TK_QDURATION 258 -#define TK_WSTART 259 -#define TK_WEND 260 -#define TK_WDURATION 261 -#define TK_IROWTS 262 -#define TK_ISFILLED 263 -#define TK_CAST 264 -#define TK_NOW 265 -#define TK_TODAY 266 -#define TK_TIMEZONE 267 -#define TK_CLIENT_VERSION 268 -#define TK_SERVER_VERSION 269 -#define TK_SERVER_STATUS 270 -#define TK_CURRENT_USER 271 -#define TK_CASE 272 -#define TK_WHEN 273 -#define TK_THEN 274 -#define TK_ELSE 275 -#define TK_BETWEEN 276 -#define TK_IS 277 -#define TK_NK_LT 278 -#define TK_NK_GT 279 -#define TK_NK_LE 280 -#define TK_NK_GE 281 -#define TK_NK_NE 282 -#define TK_MATCH 283 -#define TK_NMATCH 284 -#define TK_CONTAINS 285 -#define TK_IN 286 -#define TK_JOIN 287 -#define TK_INNER 288 -#define TK_LEFT 289 -#define TK_RIGHT 290 -#define TK_OUTER 291 -#define TK_SEMI 292 -#define TK_ANTI 293 -#define TK_ASOF 294 -#define TK_WINDOW 295 -#define TK_WINDOW_OFFSET 296 -#define TK_JLIMIT 297 -#define TK_SELECT 298 -#define TK_NK_HINT 299 -#define TK_DISTINCT 300 -#define TK_WHERE 301 -#define TK_PARTITION 302 -#define TK_BY 303 -#define TK_SESSION 304 -#define TK_STATE_WINDOW 305 -#define TK_EVENT_WINDOW 306 -#define TK_COUNT_WINDOW 307 -#define TK_SLIDING 308 -#define TK_FILL 309 -#define TK_VALUE 310 -#define TK_VALUE_F 311 -#define TK_NONE 312 -#define TK_PREV 313 -#define TK_NULL_F 314 -#define TK_LINEAR 315 -#define TK_NEXT 316 -#define TK_HAVING 317 -#define TK_RANGE 318 -#define TK_EVERY 319 -#define TK_ORDER 320 -#define TK_SLIMIT 321 -#define TK_SOFFSET 322 -#define TK_LIMIT 323 -#define TK_OFFSET 324 -#define TK_ASC 325 -#define TK_NULLS 326 -#define TK_ABORT 327 -#define TK_AFTER 328 -#define TK_ATTACH 329 -#define TK_BEFORE 330 -#define TK_BEGIN 331 -#define TK_BITAND 332 -#define TK_BITNOT 333 -#define TK_BITOR 334 -#define TK_BLOCKS 335 -#define TK_CHANGE 336 -#define TK_COMMA 337 -#define TK_CONCAT 338 -#define TK_CONFLICT 339 -#define TK_COPY 340 -#define TK_DEFERRED 341 -#define TK_DELIMITERS 342 -#define TK_DETACH 343 -#define TK_DIVIDE 344 -#define TK_DOT 345 -#define TK_EACH 346 -#define TK_FAIL 347 -#define TK_FILE 348 +#define TK_FILE 126 +#define TK_BOOL 127 +#define TK_TINYINT 128 +#define TK_SMALLINT 129 +#define TK_INT 130 +#define TK_INTEGER 131 +#define TK_BIGINT 132 +#define TK_FLOAT 133 +#define TK_DOUBLE 134 +#define TK_BINARY 135 +#define TK_NCHAR 136 +#define TK_UNSIGNED 137 +#define TK_JSON 138 +#define TK_VARCHAR 139 +#define TK_MEDIUMBLOB 140 +#define TK_BLOB 141 +#define TK_VARBINARY 142 +#define TK_GEOMETRY 143 +#define TK_DECIMAL 144 +#define TK_COMMENT 145 +#define TK_MAX_DELAY 146 +#define TK_WATERMARK 147 +#define TK_ROLLUP 148 +#define TK_TTL 149 +#define TK_SMA 150 +#define TK_DELETE_MARK 151 +#define TK_FIRST 152 +#define TK_LAST 153 +#define TK_SHOW 154 +#define TK_FULL 155 +#define TK_PRIVILEGES 156 +#define TK_DATABASES 157 +#define TK_TABLES 158 +#define TK_STABLES 159 +#define TK_MNODES 160 +#define TK_QNODES 161 +#define TK_ARBGROUPS 162 +#define TK_FUNCTIONS 163 +#define TK_INDEXES 164 +#define TK_ACCOUNTS 165 +#define TK_APPS 166 +#define TK_CONNECTIONS 167 +#define TK_LICENCES 168 +#define TK_GRANTS 169 +#define TK_LOGS 170 +#define TK_MACHINES 171 +#define TK_ENCRYPTIONS 172 +#define TK_QUERIES 173 +#define TK_SCORES 174 +#define TK_TOPICS 175 +#define TK_VARIABLES 176 +#define TK_BNODES 177 +#define TK_SNODES 178 +#define TK_TRANSACTIONS 179 +#define TK_DISTRIBUTED 180 +#define TK_CONSUMERS 181 +#define TK_SUBSCRIPTIONS 182 +#define TK_VNODES 183 +#define TK_ALIVE 184 +#define TK_VIEWS 185 +#define TK_VIEW 186 +#define TK_COMPACTS 187 +#define TK_NORMAL 188 +#define TK_CHILD 189 +#define TK_LIKE 190 +#define TK_TBNAME 191 +#define TK_QTAGS 192 +#define TK_AS 193 +#define TK_SYSTEM 194 +#define TK_TSMA 195 +#define TK_INTERVAL 196 +#define TK_RECURSIVE 197 +#define TK_TSMAS 198 +#define TK_FUNCTION 199 +#define TK_INDEX 200 +#define TK_COUNT 201 +#define TK_LAST_ROW 202 +#define TK_META 203 +#define TK_ONLY 204 +#define TK_TOPIC 205 +#define TK_CONSUMER 206 +#define TK_GROUP 207 +#define TK_DESC 208 +#define TK_DESCRIBE 209 +#define TK_RESET 210 +#define TK_QUERY 211 +#define TK_CACHE 212 +#define TK_EXPLAIN 213 +#define TK_ANALYZE 214 +#define TK_VERBOSE 215 +#define TK_NK_BOOL 216 +#define TK_RATIO 217 +#define TK_NK_FLOAT 218 +#define TK_OUTPUTTYPE 219 +#define TK_AGGREGATE 220 +#define TK_BUFSIZE 221 +#define TK_LANGUAGE 222 +#define TK_REPLACE 223 +#define TK_STREAM 224 +#define TK_INTO 225 +#define TK_PAUSE 226 +#define TK_RESUME 227 +#define TK_PRIMARY 228 +#define TK_KEY 229 +#define TK_TRIGGER 230 +#define TK_AT_ONCE 231 +#define TK_WINDOW_CLOSE 232 +#define TK_IGNORE 233 +#define TK_EXPIRED 234 +#define TK_FILL_HISTORY 235 +#define TK_UPDATE 236 +#define TK_SUBTABLE 237 +#define TK_UNTREATED 238 +#define TK_KILL 239 +#define TK_CONNECTION 240 +#define TK_TRANSACTION 241 +#define TK_BALANCE 242 +#define TK_VGROUP 243 +#define TK_LEADER 244 +#define TK_MERGE 245 +#define TK_REDISTRIBUTE 246 +#define TK_SPLIT 247 +#define TK_DELETE 248 +#define TK_INSERT 249 +#define TK_NK_BIN 250 +#define TK_NK_HEX 251 +#define TK_NULL 252 +#define TK_NK_QUESTION 253 +#define TK_NK_ALIAS 254 +#define TK_NK_ARROW 255 +#define TK_ROWTS 256 +#define TK_QSTART 257 +#define TK_QEND 258 +#define TK_QDURATION 259 +#define TK_WSTART 260 +#define TK_WEND 261 +#define TK_WDURATION 262 +#define TK_IROWTS 263 +#define TK_ISFILLED 264 +#define TK_CAST 265 +#define TK_NOW 266 +#define TK_TODAY 267 +#define TK_TIMEZONE 268 +#define TK_CLIENT_VERSION 269 +#define TK_SERVER_VERSION 270 +#define TK_SERVER_STATUS 271 +#define TK_CURRENT_USER 272 +#define TK_CASE 273 +#define TK_WHEN 274 +#define TK_THEN 275 +#define TK_ELSE 276 +#define TK_BETWEEN 277 +#define TK_IS 278 +#define TK_NK_LT 279 +#define TK_NK_GT 280 +#define TK_NK_LE 281 +#define TK_NK_GE 282 +#define TK_NK_NE 283 +#define TK_MATCH 284 +#define TK_NMATCH 285 +#define TK_CONTAINS 286 +#define TK_IN 287 +#define TK_JOIN 288 +#define TK_INNER 289 +#define TK_LEFT 290 +#define TK_RIGHT 291 +#define TK_OUTER 292 +#define TK_SEMI 293 +#define TK_ANTI 294 +#define TK_ASOF 295 +#define TK_WINDOW 296 +#define TK_WINDOW_OFFSET 297 +#define TK_JLIMIT 298 +#define TK_SELECT 299 +#define TK_NK_HINT 300 +#define TK_DISTINCT 301 +#define TK_WHERE 302 +#define TK_PARTITION 303 +#define TK_BY 304 +#define TK_SESSION 305 +#define TK_STATE_WINDOW 306 +#define TK_EVENT_WINDOW 307 +#define TK_COUNT_WINDOW 308 +#define TK_SLIDING 309 +#define TK_FILL 310 +#define TK_VALUE 311 +#define TK_VALUE_F 312 +#define TK_NONE 313 +#define TK_PREV 314 +#define TK_NULL_F 315 +#define TK_LINEAR 316 +#define TK_NEXT 317 +#define TK_HAVING 318 +#define TK_RANGE 319 +#define TK_EVERY 320 +#define TK_ORDER 321 +#define TK_SLIMIT 322 +#define TK_SOFFSET 323 +#define TK_LIMIT 324 +#define TK_OFFSET 325 +#define TK_ASC 326 +#define TK_NULLS 327 +#define TK_ABORT 328 +#define TK_AFTER 329 +#define TK_ATTACH 330 +#define TK_BEFORE 331 +#define TK_BEGIN 332 +#define TK_BITAND 333 +#define TK_BITNOT 334 +#define TK_BITOR 335 +#define TK_BLOCKS 336 +#define TK_CHANGE 337 +#define TK_COMMA 338 +#define TK_CONCAT 339 +#define TK_CONFLICT 340 +#define TK_COPY 341 +#define TK_DEFERRED 342 +#define TK_DELIMITERS 343 +#define TK_DETACH 344 +#define TK_DIVIDE 345 +#define TK_DOT 346 +#define TK_EACH 347 +#define TK_FAIL 348 #define TK_FOR 349 #define TK_GLOB 350 #define TK_ID 351 @@ -522,18 +522,18 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 977 +#define YYNSTATE 978 #define YYNRULE 756 #define YYNRULE_WITH_ACTION 756 #define YYNTOKEN 378 -#define YY_MAX_SHIFT 976 -#define YY_MIN_SHIFTREDUCE 1448 -#define YY_MAX_SHIFTREDUCE 2203 -#define YY_ERROR_ACTION 2204 -#define YY_ACCEPT_ACTION 2205 -#define YY_NO_ACTION 2206 -#define YY_MIN_REDUCE 2207 -#define YY_MAX_REDUCE 2962 +#define YY_MAX_SHIFT 977 +#define YY_MIN_SHIFTREDUCE 1449 +#define YY_MAX_SHIFTREDUCE 2204 +#define YY_ERROR_ACTION 2205 +#define YY_ACCEPT_ACTION 2206 +#define YY_NO_ACTION 2207 +#define YY_MIN_REDUCE 2208 +#define YY_MAX_REDUCE 2963 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -600,688 +600,660 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (3386) +#define YY_ACTTAB_COUNT (3105) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 2696, 559, 2540, 647, 493, 2571, 648, 2255, 37, 340, - /* 10 */ 2403, 2713, 47, 45, 2120, 664, 2420, 867, 2416, 471, - /* 20 */ 476, 2207, 1941, 40, 39, 2568, 855, 46, 44, 43, - /* 30 */ 42, 41, 550, 14, 13, 207, 1939, 148, 2029, 2299, - /* 40 */ 2389, 2717, 2738, 443, 693, 147, 146, 145, 144, 143, - /* 50 */ 142, 141, 140, 139, 810, 157, 234, 813, 9, 655, - /* 60 */ 810, 157, 648, 2255, 2544, 482, 40, 39, 2024, 2208, - /* 70 */ 46, 44, 43, 42, 41, 19, 871, 1970, 1970, 744, - /* 80 */ 665, 2564, 1947, 612, 610, 2756, 415, 924, 734, 232, - /* 90 */ 138, 2719, 2722, 137, 136, 135, 134, 133, 132, 131, - /* 100 */ 130, 129, 871, 2703, 728, 850, 732, 730, 288, 287, - /* 110 */ 2398, 422, 973, 606, 910, 15, 944, 943, 942, 941, - /* 120 */ 505, 787, 940, 939, 162, 934, 933, 932, 931, 930, - /* 130 */ 929, 928, 161, 922, 921, 920, 504, 503, 917, 916, - /* 140 */ 915, 198, 197, 914, 500, 913, 912, 911, 2072, 2756, - /* 150 */ 2737, 2031, 2032, 2776, 1967, 1966, 926, 121, 2739, 854, - /* 160 */ 2741, 2742, 849, 788, 871, 238, 798, 927, 2095, 200, - /* 170 */ 2374, 2830, 565, 2540, 2928, 472, 2826, 194, 2838, 809, - /* 180 */ 243, 149, 808, 127, 2838, 2839, 841, 155, 2843, 2928, - /* 190 */ 2002, 2012, 797, 218, 2205, 219, 652, 2929, 799, 840, - /* 200 */ 2030, 2033, 649, 2877, 1966, 605, 242, 797, 218, 85, - /* 210 */ 2124, 95, 2929, 799, 94, 1942, 1966, 1940, 866, 603, - /* 220 */ 596, 2540, 2195, 786, 40, 39, 160, 236, 46, 44, - /* 230 */ 43, 42, 41, 2738, 138, 2406, 2408, 137, 136, 135, - /* 240 */ 134, 133, 132, 131, 130, 129, 62, 62, 851, 213, - /* 250 */ 214, 1945, 1946, 1999, 2095, 2001, 2004, 2005, 2006, 2007, - /* 260 */ 2008, 2009, 2010, 2011, 846, 869, 868, 2023, 2025, 2026, - /* 270 */ 2027, 2028, 2, 47, 45, 241, 2756, 527, 419, 866, - /* 280 */ 1964, 476, 93, 1941, 508, 1814, 1815, 594, 1969, 507, - /* 290 */ 445, 435, 867, 2416, 2703, 910, 850, 1939, 614, 2029, - /* 300 */ 51, 2850, 2092, 2093, 2094, 2850, 2850, 2850, 2850, 2850, - /* 310 */ 1971, 1971, 148, 50, 573, 2117, 616, 748, 543, 698, - /* 320 */ 747, 420, 575, 542, 254, 1787, 1788, 2713, 650, 2024, - /* 330 */ 2263, 810, 157, 553, 1813, 1816, 19, 2286, 764, 2058, - /* 340 */ 2194, 2737, 2845, 1947, 2776, 541, 2928, 540, 121, 2739, - /* 350 */ 854, 2741, 2742, 849, 2230, 871, 783, 2717, 159, 715, - /* 360 */ 168, 2801, 2830, 2571, 2934, 218, 472, 2826, 2842, 2929, - /* 370 */ 799, 66, 764, 973, 444, 488, 15, 478, 2229, 539, - /* 380 */ 2928, 810, 157, 2568, 855, 561, 2003, 2850, 2092, 2093, - /* 390 */ 2094, 2850, 2850, 2850, 2850, 2850, 1999, 1941, 2934, 218, - /* 400 */ 657, 2610, 291, 2929, 799, 2059, 290, 2719, 2721, 473, - /* 410 */ 2153, 1939, 2031, 2032, 531, 2703, 2551, 2530, 871, 602, - /* 420 */ 601, 600, 599, 598, 593, 592, 591, 590, 427, 324, - /* 430 */ 324, 580, 579, 578, 577, 576, 570, 569, 568, 2703, - /* 440 */ 563, 562, 442, 533, 529, 877, 554, 1775, 1776, 2000, - /* 450 */ 1623, 2002, 2012, 1794, 188, 2838, 2839, 1947, 155, 2843, - /* 460 */ 322, 2030, 2033, 866, 1622, 789, 784, 777, 773, 780, - /* 470 */ 779, 2151, 2152, 2154, 2155, 2156, 1942, 1967, 1940, 2405, - /* 480 */ 104, 2697, 62, 324, 381, 430, 1966, 973, 458, 192, - /* 490 */ 736, 317, 36, 474, 2053, 2054, 2055, 2056, 2057, 2061, - /* 500 */ 2062, 2063, 2064, 812, 187, 2838, 2839, 184, 155, 2843, - /* 510 */ 2095, 2845, 1945, 1946, 1999, 2348, 2001, 2004, 2005, 2006, - /* 520 */ 2007, 2008, 2009, 2010, 2011, 846, 869, 868, 2023, 2025, - /* 530 */ 2026, 2027, 2028, 2, 12, 47, 45, 2841, 497, 2738, - /* 540 */ 617, 2469, 2471, 476, 482, 1941, 482, 2619, 1674, 2097, - /* 550 */ 2098, 2099, 2100, 2101, 813, 871, 1910, 871, 50, 1939, - /* 560 */ 1611, 2029, 1665, 900, 899, 898, 1669, 897, 1671, 1672, - /* 570 */ 896, 893, 2933, 1680, 890, 1682, 1683, 887, 884, 881, - /* 580 */ 2928, 62, 2756, 2390, 181, 1520, 2476, 1519, 487, 486, - /* 590 */ 1942, 2024, 1940, 876, 875, 874, 441, 2422, 19, 2932, - /* 600 */ 2703, 153, 850, 2929, 2931, 1947, 1613, 2474, 1713, 1714, - /* 610 */ 2228, 2116, 714, 713, 712, 450, 449, 124, 1493, 704, - /* 620 */ 154, 708, 2933, 1521, 2227, 707, 1945, 1946, 495, 2418, - /* 630 */ 706, 711, 453, 452, 2738, 973, 705, 1500, 15, 1969, - /* 640 */ 451, 701, 700, 699, 2092, 2093, 2094, 2737, 2513, 851, - /* 650 */ 2776, 2265, 2470, 2471, 121, 2739, 854, 2741, 2742, 849, - /* 660 */ 2476, 871, 1495, 1498, 1499, 324, 200, 491, 2830, 663, - /* 670 */ 469, 2703, 472, 2826, 2031, 2032, 33, 2756, 2571, 460, - /* 680 */ 2618, 2474, 40, 39, 798, 2703, 46, 44, 43, 42, - /* 690 */ 41, 2478, 2928, 448, 447, 2703, 695, 850, 2569, 855, - /* 700 */ 2878, 40, 39, 1523, 1524, 46, 44, 43, 42, 41, - /* 710 */ 797, 218, 2933, 2002, 2012, 2929, 799, 207, 697, 1966, - /* 720 */ 2928, 670, 696, 2030, 2033, 480, 29, 908, 174, 173, - /* 730 */ 905, 904, 903, 171, 745, 2188, 502, 501, 1942, 2932, - /* 740 */ 1940, 324, 2737, 2929, 2930, 2776, 2544, 866, 667, 121, - /* 750 */ 2739, 854, 2741, 2742, 849, 763, 871, 867, 2416, 902, - /* 760 */ 1948, 2948, 2467, 2830, 324, 40, 39, 472, 2826, 46, - /* 770 */ 44, 43, 42, 41, 1945, 1946, 1999, 499, 2001, 2004, - /* 780 */ 2005, 2006, 2007, 2008, 2009, 2010, 2011, 846, 869, 868, - /* 790 */ 2023, 2025, 2026, 2027, 2028, 2, 47, 45, 2034, 2738, - /* 800 */ 2845, 256, 2656, 2145, 476, 650, 1941, 2263, 2558, 2165, - /* 810 */ 668, 322, 867, 2416, 851, 697, 2885, 2146, 587, 696, - /* 820 */ 1939, 721, 2029, 586, 2039, 644, 2840, 867, 2416, 2738, - /* 830 */ 1966, 585, 223, 2476, 642, 666, 735, 638, 634, 867, - /* 840 */ 2416, 748, 2756, 481, 851, 615, 2898, 55, 1909, 867, - /* 850 */ 2416, 115, 2024, 1627, 2474, 289, 764, 867, 2416, 547, - /* 860 */ 2703, 2388, 850, 2144, 2928, 158, 1947, 1626, 2801, 548, - /* 870 */ 2060, 724, 2756, 2164, 867, 2416, 381, 567, 718, 716, - /* 880 */ 490, 489, 2934, 218, 185, 286, 2219, 2929, 799, 2003, - /* 890 */ 2703, 101, 850, 12, 581, 60, 973, 40, 39, 48, - /* 900 */ 182, 46, 44, 43, 42, 41, 761, 2737, 446, 211, - /* 910 */ 2776, 495, 2418, 901, 121, 2739, 854, 2741, 2742, 849, - /* 920 */ 2411, 871, 867, 2416, 750, 2610, 2948, 2463, 2830, 1947, - /* 930 */ 2226, 72, 472, 2826, 71, 2031, 2032, 2737, 459, 2618, - /* 940 */ 2776, 1951, 582, 619, 121, 2739, 854, 2741, 2742, 849, - /* 950 */ 2624, 871, 2000, 2738, 1970, 114, 2948, 34, 2830, 35, - /* 960 */ 689, 688, 472, 2826, 105, 40, 39, 2065, 851, 46, - /* 970 */ 44, 43, 42, 41, 2002, 2012, 46, 44, 43, 42, - /* 980 */ 41, 2407, 40, 39, 2030, 2033, 46, 44, 43, 42, - /* 990 */ 41, 2703, 867, 2416, 479, 1500, 2756, 207, 1842, 1942, - /* 1000 */ 2003, 1940, 181, 292, 2476, 908, 174, 173, 905, 904, - /* 1010 */ 903, 171, 583, 293, 2703, 2421, 850, 2738, 43, 42, - /* 1020 */ 41, 1498, 1499, 40, 39, 817, 2545, 46, 44, 43, - /* 1030 */ 42, 41, 851, 2225, 775, 1945, 1946, 1999, 2657, 2001, - /* 1040 */ 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 846, 869, - /* 1050 */ 868, 2023, 2025, 2026, 2027, 2028, 2, 47, 45, 2738, - /* 1060 */ 2756, 2737, 303, 2000, 2776, 476, 374, 1941, 122, 2739, - /* 1070 */ 854, 2741, 2742, 849, 851, 871, 2921, 498, 2703, 2224, - /* 1080 */ 850, 1939, 2830, 2029, 2932, 181, 2829, 2826, 1868, 1869, - /* 1090 */ 691, 690, 764, 522, 2703, 2738, 867, 2416, 2421, 12, - /* 1100 */ 2928, 10, 2756, 908, 174, 173, 905, 904, 903, 171, - /* 1110 */ 851, 106, 2862, 2024, 710, 709, 669, 225, 2934, 218, - /* 1120 */ 2703, 802, 850, 2929, 799, 2737, 221, 1947, 2776, 867, - /* 1130 */ 2416, 2136, 121, 2739, 854, 2741, 2742, 849, 2756, 871, - /* 1140 */ 2703, 867, 2416, 182, 2948, 741, 2830, 331, 332, 2413, - /* 1150 */ 472, 2826, 330, 867, 2416, 2419, 2703, 973, 850, 212, - /* 1160 */ 48, 294, 867, 2416, 867, 2416, 125, 2737, 2496, 2401, - /* 1170 */ 2776, 867, 2416, 302, 121, 2739, 854, 2741, 2742, 849, - /* 1180 */ 2223, 871, 816, 834, 335, 2802, 2948, 1971, 2830, 867, - /* 1190 */ 2416, 830, 472, 2826, 502, 501, 2031, 2032, 2476, 764, - /* 1200 */ 2222, 867, 2416, 2737, 1955, 1970, 2776, 2928, 496, 342, - /* 1210 */ 121, 2739, 854, 2741, 2742, 849, 2643, 871, 1948, 2474, - /* 1220 */ 2029, 862, 2948, 1966, 2830, 2934, 218, 101, 472, 2826, - /* 1230 */ 2929, 799, 867, 2416, 2221, 2002, 2012, 867, 2416, 2523, - /* 1240 */ 836, 2703, 2802, 867, 2416, 2030, 2033, 938, 936, 120, - /* 1250 */ 2024, 1674, 863, 1520, 380, 1519, 2412, 865, 117, 274, - /* 1260 */ 1942, 2703, 1940, 370, 1947, 1665, 900, 899, 898, 1669, - /* 1270 */ 897, 1671, 1672, 845, 844, 193, 1680, 843, 1682, 1683, - /* 1280 */ 842, 884, 881, 557, 687, 683, 679, 675, 2349, 273, - /* 1290 */ 172, 1521, 792, 2218, 838, 2703, 1945, 1946, 1999, 2217, - /* 1300 */ 2001, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 846, - /* 1310 */ 869, 868, 2023, 2025, 2026, 2027, 2028, 2, 47, 45, - /* 1320 */ 164, 2216, 589, 2215, 2476, 183, 476, 2476, 1941, 2214, - /* 1330 */ 394, 749, 2647, 2213, 2212, 102, 805, 588, 271, 2211, - /* 1340 */ 906, 2210, 1939, 2467, 2029, 825, 2235, 966, 2475, 392, - /* 1350 */ 77, 814, 907, 76, 2703, 2467, 388, 1502, 3, 2453, - /* 1360 */ 2703, 2106, 279, 1965, 421, 277, 2738, 839, 702, 150, - /* 1370 */ 79, 2391, 53, 54, 2024, 703, 252, 629, 627, 624, - /* 1380 */ 622, 851, 2703, 91, 2703, 764, 515, 164, 1947, 281, - /* 1390 */ 2703, 1604, 280, 2928, 2703, 2703, 771, 1956, 1602, 1951, - /* 1400 */ 2703, 801, 2703, 1858, 163, 764, 259, 49, 1606, 2756, - /* 1410 */ 803, 2934, 218, 2928, 1950, 270, 2929, 799, 973, 261, - /* 1420 */ 268, 15, 62, 1584, 92, 266, 661, 2703, 738, 850, - /* 1430 */ 737, 2934, 218, 1959, 1961, 49, 2929, 799, 1971, 2284, - /* 1440 */ 283, 2275, 285, 282, 258, 284, 2273, 869, 868, 2023, - /* 1450 */ 2025, 2026, 2027, 2028, 1607, 201, 2000, 2031, 2032, 209, - /* 1460 */ 63, 717, 2724, 719, 2197, 2198, 172, 1949, 722, 1585, - /* 1470 */ 1866, 349, 348, 329, 2737, 14, 13, 2776, 299, 2140, - /* 1480 */ 918, 121, 2739, 854, 2741, 2742, 849, 387, 871, 2267, - /* 1490 */ 2150, 2420, 2220, 2805, 2891, 2830, 2002, 2012, 78, 472, - /* 1500 */ 2826, 192, 64, 1576, 49, 811, 2030, 2033, 318, 49, - /* 1510 */ 351, 350, 781, 78, 89, 88, 546, 169, 2149, 231, - /* 1520 */ 150, 1942, 310, 1940, 353, 352, 2726, 172, 355, 354, - /* 1530 */ 357, 356, 538, 536, 359, 358, 361, 360, 308, 363, - /* 1540 */ 362, 365, 364, 2050, 962, 418, 367, 366, 525, 815, - /* 1550 */ 75, 521, 517, 513, 510, 539, 333, 1945, 1946, 1999, - /* 1560 */ 152, 2001, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, - /* 1570 */ 846, 869, 868, 2023, 2025, 2026, 2027, 2028, 2, 2738, - /* 1580 */ 879, 822, 170, 425, 424, 2066, 1557, 2013, 369, 368, - /* 1590 */ 172, 151, 1811, 483, 851, 1953, 1801, 169, 2757, 2341, - /* 1600 */ 345, 919, 2340, 864, 2256, 324, 2738, 492, 2881, 2029, - /* 1610 */ 1656, 461, 778, 465, 785, 819, 2549, 506, 524, 2262, - /* 1620 */ 2464, 851, 2756, 757, 1574, 2882, 2892, 806, 793, 794, - /* 1630 */ 320, 315, 1558, 386, 323, 2550, 2375, 514, 5, 2024, - /* 1640 */ 2703, 439, 850, 1964, 509, 523, 1974, 535, 1952, 2756, - /* 1650 */ 534, 226, 227, 537, 379, 229, 1835, 551, 1965, 558, - /* 1660 */ 240, 564, 560, 1687, 566, 1695, 608, 2703, 571, 850, - /* 1670 */ 584, 618, 595, 1702, 1700, 2542, 604, 597, 607, 609, - /* 1680 */ 175, 620, 621, 246, 245, 623, 249, 2737, 625, 626, - /* 1690 */ 2776, 628, 630, 1972, 121, 2739, 854, 2741, 2742, 849, - /* 1700 */ 746, 871, 645, 4, 646, 653, 2803, 654, 2830, 656, - /* 1710 */ 1967, 658, 472, 2826, 2737, 257, 1973, 2776, 976, 660, - /* 1720 */ 97, 121, 2739, 854, 2741, 2742, 849, 260, 871, 1975, - /* 1730 */ 659, 263, 662, 835, 265, 2830, 1976, 378, 98, 472, - /* 1740 */ 2826, 1977, 2565, 99, 2559, 100, 2738, 671, 272, 692, - /* 1750 */ 694, 126, 964, 208, 725, 2404, 413, 726, 382, 740, - /* 1760 */ 2633, 851, 960, 956, 952, 948, 276, 373, 742, 2400, - /* 1770 */ 278, 177, 123, 2402, 2397, 178, 103, 179, 295, 1968, - /* 1780 */ 2630, 165, 2629, 2611, 752, 753, 1932, 751, 1908, 2756, - /* 1790 */ 300, 759, 782, 2897, 820, 298, 2896, 758, 8, 791, - /* 1800 */ 768, 756, 2869, 311, 309, 312, 191, 2703, 767, 850, - /* 1810 */ 769, 766, 796, 73, 2849, 2738, 346, 313, 466, 807, - /* 1820 */ 485, 484, 1933, 804, 795, 316, 305, 1969, 307, 314, - /* 1830 */ 851, 2951, 156, 2114, 1, 2112, 869, 868, 2023, 2025, - /* 1840 */ 2026, 2027, 2028, 383, 204, 2927, 319, 325, 826, 818, - /* 1850 */ 166, 220, 2579, 384, 2737, 2578, 2738, 2776, 2756, 2577, - /* 1860 */ 823, 122, 2739, 854, 2741, 2742, 849, 470, 871, 828, - /* 1870 */ 2846, 848, 167, 824, 831, 2830, 2703, 61, 850, 837, - /* 1880 */ 2826, 338, 2811, 856, 858, 860, 385, 861, 116, 2417, - /* 1890 */ 343, 2695, 2694, 344, 2690, 832, 2689, 113, 327, 2756, - /* 1900 */ 2681, 1472, 2680, 326, 2302, 2672, 2671, 969, 389, 372, - /* 1910 */ 2687, 176, 970, 968, 2686, 2678, 965, 2703, 375, 850, - /* 1920 */ 2677, 376, 296, 852, 2666, 972, 2776, 2665, 52, 391, - /* 1930 */ 122, 2739, 854, 2741, 2742, 849, 873, 871, 414, 2684, - /* 1940 */ 423, 2683, 2675, 2738, 2830, 2674, 2663, 2662, 434, 2826, - /* 1950 */ 2660, 393, 2659, 2468, 2655, 2654, 401, 412, 851, 402, - /* 1960 */ 2653, 426, 86, 2648, 2737, 511, 512, 2776, 1892, 1893, - /* 1970 */ 224, 410, 2739, 854, 2741, 2742, 849, 847, 871, 833, - /* 1980 */ 2795, 714, 713, 712, 431, 516, 2756, 2646, 704, 154, - /* 1990 */ 708, 520, 518, 519, 707, 440, 432, 1891, 2645, 706, - /* 2000 */ 711, 453, 452, 2738, 2703, 705, 850, 744, 2644, 451, - /* 2010 */ 701, 700, 699, 2642, 2641, 526, 528, 2640, 851, 530, - /* 2020 */ 2639, 532, 1879, 2615, 2738, 228, 2614, 230, 1838, 87, - /* 2030 */ 1837, 2592, 2591, 2590, 544, 545, 2589, 2588, 2532, 851, - /* 2040 */ 549, 1774, 2529, 552, 2528, 2522, 2756, 555, 556, 2519, - /* 2050 */ 233, 2737, 2518, 90, 2776, 2517, 2516, 2521, 186, 2739, - /* 2060 */ 854, 2741, 2742, 849, 2703, 871, 850, 2756, 2520, 235, - /* 2070 */ 2515, 2514, 2512, 2511, 2510, 237, 572, 2509, 574, 2507, - /* 2080 */ 2506, 2505, 2504, 2503, 2527, 2703, 2502, 850, 2738, 2501, - /* 2090 */ 2500, 2525, 2508, 2499, 2498, 2497, 2495, 2494, 2493, 2492, - /* 2100 */ 2491, 2490, 239, 851, 244, 765, 2888, 2489, 96, 2488, - /* 2110 */ 2487, 2737, 2486, 2485, 2776, 2557, 2526, 2524, 189, 2739, - /* 2120 */ 854, 2741, 2742, 849, 2484, 871, 2483, 2482, 1780, 2481, - /* 2130 */ 611, 2756, 2737, 1624, 2306, 2776, 2480, 613, 2479, 122, - /* 2140 */ 2739, 854, 2741, 2742, 849, 2477, 871, 1628, 2305, 2703, - /* 2150 */ 1620, 850, 2304, 2830, 428, 429, 247, 2303, 2827, 2301, - /* 2160 */ 2298, 2297, 2290, 633, 631, 2277, 635, 637, 2738, 2251, - /* 2170 */ 1501, 639, 199, 248, 2250, 632, 250, 800, 2949, 643, - /* 2180 */ 2613, 2609, 2599, 851, 641, 636, 251, 2587, 253, 264, - /* 2190 */ 82, 640, 2586, 2723, 255, 210, 2737, 2738, 651, 2776, - /* 2200 */ 2563, 267, 83, 186, 2739, 854, 2741, 2742, 849, 2556, - /* 2210 */ 871, 2756, 851, 2392, 262, 269, 2300, 2296, 2294, 672, - /* 2220 */ 673, 674, 676, 678, 2292, 677, 680, 1550, 2289, 2703, - /* 2230 */ 2738, 850, 681, 682, 684, 686, 2272, 2270, 2271, 685, - /* 2240 */ 2756, 2269, 2247, 2394, 1707, 851, 2738, 1706, 2393, 1610, - /* 2250 */ 1609, 2889, 935, 463, 2287, 74, 1608, 1605, 2703, 1603, - /* 2260 */ 850, 851, 1601, 2285, 2276, 1600, 1599, 1598, 1597, 1594, - /* 2270 */ 1593, 1592, 937, 2756, 275, 454, 2737, 455, 456, 2776, - /* 2280 */ 1591, 2274, 464, 411, 2739, 854, 2741, 2742, 849, 2756, - /* 2290 */ 871, 2703, 457, 850, 723, 2246, 720, 2245, 2244, 2243, - /* 2300 */ 2242, 727, 729, 731, 2241, 2737, 733, 2703, 2776, 850, - /* 2310 */ 128, 1873, 411, 2739, 854, 2741, 2742, 849, 1875, 871, - /* 2320 */ 1877, 1872, 28, 2612, 297, 67, 2608, 1844, 1846, 2598, - /* 2330 */ 754, 2585, 2584, 2933, 20, 774, 65, 17, 2737, 770, - /* 2340 */ 2738, 2776, 21, 462, 1848, 404, 2739, 854, 2741, 2742, - /* 2350 */ 849, 2167, 871, 22, 2737, 848, 776, 2776, 203, 2738, - /* 2360 */ 56, 189, 2739, 854, 2741, 2742, 849, 57, 871, 760, - /* 2370 */ 301, 6, 30, 180, 851, 762, 2738, 2141, 32, 7, - /* 2380 */ 755, 23, 1863, 2756, 304, 1823, 1822, 772, 216, 190, - /* 2390 */ 743, 851, 306, 2148, 202, 31, 790, 215, 2724, 2107, - /* 2400 */ 2109, 2703, 2756, 850, 2135, 2105, 24, 84, 217, 321, - /* 2410 */ 2187, 195, 2188, 2182, 2181, 467, 2186, 2185, 468, 2756, - /* 2420 */ 2703, 2950, 850, 59, 2583, 2562, 2089, 2088, 108, 107, - /* 2430 */ 2561, 328, 2143, 205, 2555, 109, 334, 2703, 827, 850, - /* 2440 */ 110, 25, 821, 69, 475, 13, 829, 2041, 2737, 336, - /* 2450 */ 337, 2776, 2040, 339, 1957, 410, 2739, 854, 2741, 2742, - /* 2460 */ 849, 477, 871, 58, 2796, 2016, 2051, 2737, 2015, 11, - /* 2470 */ 2776, 886, 889, 196, 411, 2739, 854, 2741, 2742, 849, - /* 2480 */ 892, 871, 895, 38, 2737, 2738, 2014, 2776, 206, 16, - /* 2490 */ 1992, 411, 2739, 854, 2741, 2742, 849, 2554, 871, 18, - /* 2500 */ 851, 2738, 26, 111, 1984, 857, 853, 27, 70, 341, - /* 2510 */ 112, 1651, 347, 2203, 2738, 80, 851, 2781, 2780, 859, - /* 2520 */ 2018, 870, 117, 2202, 68, 2201, 872, 1688, 2756, 851, - /* 2530 */ 2200, 878, 494, 880, 882, 1685, 883, 1697, 885, 1684, - /* 2540 */ 888, 891, 1681, 1675, 2756, 1673, 2703, 894, 850, 1679, - /* 2550 */ 1678, 1677, 1676, 118, 371, 119, 1701, 2756, 1548, 81, - /* 2560 */ 909, 1588, 2703, 1587, 850, 2738, 1586, 1583, 1580, 1579, - /* 2570 */ 1578, 1577, 1575, 1573, 1572, 2703, 1571, 850, 923, 925, - /* 2580 */ 851, 1618, 1617, 222, 1569, 1568, 1566, 1567, 1565, 1564, - /* 2590 */ 1563, 1614, 1612, 739, 1560, 1559, 2776, 1556, 1555, 1554, - /* 2600 */ 406, 2739, 854, 2741, 2742, 849, 1553, 871, 2756, 2737, - /* 2610 */ 2295, 945, 2776, 947, 946, 2293, 396, 2739, 854, 2741, - /* 2620 */ 2742, 849, 2737, 871, 949, 2776, 2703, 2738, 850, 395, - /* 2630 */ 2739, 854, 2741, 2742, 849, 950, 871, 951, 2291, 953, - /* 2640 */ 954, 2288, 851, 2738, 955, 957, 958, 2268, 959, 961, - /* 2650 */ 2266, 963, 1490, 2240, 1473, 967, 1478, 1480, 851, 377, - /* 2660 */ 971, 2206, 1943, 974, 2738, 390, 975, 2206, 2206, 2206, - /* 2670 */ 2756, 2206, 2206, 2737, 2206, 2206, 2776, 2206, 2206, 851, - /* 2680 */ 397, 2739, 854, 2741, 2742, 849, 2756, 871, 2703, 2206, - /* 2690 */ 850, 2206, 2206, 2206, 2738, 2206, 2206, 2206, 2206, 2206, - /* 2700 */ 2206, 2206, 2206, 2206, 2703, 2206, 850, 2756, 2206, 851, - /* 2710 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 2720 */ 2206, 2206, 2206, 2206, 2206, 2703, 2206, 850, 2206, 2206, - /* 2730 */ 2206, 2206, 2206, 2206, 2206, 2737, 2206, 2756, 2776, 2206, - /* 2740 */ 2206, 2206, 403, 2739, 854, 2741, 2742, 849, 2206, 871, - /* 2750 */ 2206, 2737, 2206, 2206, 2776, 2703, 2738, 850, 407, 2739, - /* 2760 */ 854, 2741, 2742, 849, 2206, 871, 2206, 2206, 2206, 2206, - /* 2770 */ 2206, 851, 2737, 2206, 2206, 2776, 2206, 2206, 2738, 398, - /* 2780 */ 2739, 854, 2741, 2742, 849, 2206, 871, 2206, 2206, 2206, - /* 2790 */ 2206, 2206, 2206, 851, 2206, 2206, 2206, 2206, 2206, 2756, - /* 2800 */ 2206, 2206, 2737, 2206, 2206, 2776, 2206, 2206, 2206, 408, - /* 2810 */ 2739, 854, 2741, 2742, 849, 2206, 871, 2703, 2206, 850, - /* 2820 */ 2206, 2756, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 2830 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2738, 2703, - /* 2840 */ 2206, 850, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 2850 */ 2206, 2206, 2206, 851, 2206, 2206, 2206, 2206, 2206, 2206, - /* 2860 */ 2206, 2206, 2206, 2206, 2737, 2206, 2206, 2776, 2206, 2738, - /* 2870 */ 2206, 399, 2739, 854, 2741, 2742, 849, 2206, 871, 2206, - /* 2880 */ 2206, 2756, 2206, 2206, 851, 2206, 2737, 2206, 2206, 2776, - /* 2890 */ 2206, 2206, 2206, 409, 2739, 854, 2741, 2742, 849, 2703, - /* 2900 */ 871, 850, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 2910 */ 2206, 2206, 2756, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 2920 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 2930 */ 2703, 2206, 850, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 2940 */ 2206, 2206, 2206, 2206, 2206, 2206, 2737, 2738, 2206, 2776, - /* 2950 */ 2206, 2206, 2206, 400, 2739, 854, 2741, 2742, 849, 2206, - /* 2960 */ 871, 2206, 851, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 2970 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2737, 2738, 2206, - /* 2980 */ 2776, 2206, 2206, 2206, 416, 2739, 854, 2741, 2742, 849, - /* 2990 */ 2756, 871, 2206, 851, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3000 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2738, 2703, 2206, - /* 3010 */ 850, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3020 */ 2206, 2756, 851, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3030 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2703, - /* 3040 */ 2206, 850, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3050 */ 2756, 2206, 2206, 2206, 2206, 2737, 2206, 2206, 2776, 2206, - /* 3060 */ 2206, 2206, 417, 2739, 854, 2741, 2742, 849, 2703, 871, - /* 3070 */ 850, 2206, 2206, 2206, 2206, 2206, 2738, 2206, 2206, 2206, - /* 3080 */ 2206, 2206, 2206, 2206, 2206, 2206, 2737, 2206, 2206, 2776, - /* 3090 */ 2206, 851, 2206, 2750, 2739, 854, 2741, 2742, 849, 2206, - /* 3100 */ 871, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3110 */ 2206, 2206, 2206, 2206, 2206, 2737, 2206, 2738, 2776, 2756, - /* 3120 */ 2206, 2206, 2749, 2739, 854, 2741, 2742, 849, 2206, 871, - /* 3130 */ 2206, 2206, 851, 2206, 2206, 2206, 2738, 2703, 2206, 850, - /* 3140 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3150 */ 2206, 851, 2206, 2206, 2206, 2206, 2206, 2738, 2206, 2206, - /* 3160 */ 2756, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3170 */ 2206, 2206, 851, 2206, 2206, 2206, 2206, 2206, 2703, 2756, - /* 3180 */ 850, 2206, 2206, 2206, 2737, 2206, 2206, 2776, 2206, 2206, - /* 3190 */ 2206, 2748, 2739, 854, 2741, 2742, 849, 2703, 871, 850, - /* 3200 */ 2756, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3210 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2703, 2206, - /* 3220 */ 850, 2206, 2206, 2738, 2206, 2737, 2206, 2206, 2776, 2206, - /* 3230 */ 2206, 2206, 436, 2739, 854, 2741, 2742, 849, 851, 871, - /* 3240 */ 2206, 2206, 2206, 2206, 2737, 2206, 2738, 2776, 2206, 2206, - /* 3250 */ 2206, 437, 2739, 854, 2741, 2742, 849, 2206, 871, 2206, - /* 3260 */ 2206, 851, 2206, 2738, 2206, 2737, 2756, 2206, 2776, 2206, - /* 3270 */ 2206, 2206, 433, 2739, 854, 2741, 2742, 849, 851, 871, - /* 3280 */ 2206, 2206, 2206, 2206, 2703, 2206, 850, 2206, 2206, 2756, - /* 3290 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3300 */ 2206, 2206, 2206, 2206, 2206, 2206, 2756, 2703, 2206, 850, - /* 3310 */ 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, 2206, - /* 3320 */ 2206, 2206, 2206, 2206, 2703, 2206, 850, 2206, 2206, 2206, - /* 3330 */ 2206, 2737, 2206, 2206, 2776, 2206, 2206, 2206, 438, 2739, - /* 3340 */ 854, 2741, 2742, 849, 2206, 871, 2206, 2206, 2206, 2206, - /* 3350 */ 2206, 2206, 2206, 2206, 852, 2206, 2206, 2776, 2206, 2206, - /* 3360 */ 2206, 406, 2739, 854, 2741, 2742, 849, 2206, 871, 2206, - /* 3370 */ 2206, 2737, 2206, 2206, 2776, 2206, 2206, 2206, 405, 2739, - /* 3380 */ 854, 2741, 2742, 849, 2206, 871, + /* 0 */ 2404, 2697, 101, 2572, 2406, 493, 647, 2572, 798, 648, + /* 10 */ 2256, 2402, 47, 45, 2121, 2739, 2929, 471, 2934, 446, + /* 20 */ 476, 478, 1942, 2569, 855, 1967, 2929, 2569, 855, 2714, + /* 30 */ 813, 2412, 810, 157, 797, 218, 1940, 2714, 2030, 2930, + /* 40 */ 799, 502, 501, 2231, 787, 2933, 172, 40, 39, 2930, + /* 50 */ 2932, 46, 44, 43, 42, 41, 2934, 655, 2757, 2718, + /* 60 */ 648, 2256, 450, 449, 2739, 1949, 482, 2718, 2025, 482, + /* 70 */ 734, 1967, 2757, 1970, 2698, 19, 2704, 872, 850, 848, + /* 80 */ 872, 788, 1948, 66, 810, 157, 728, 33, 732, 730, + /* 90 */ 288, 287, 2477, 40, 39, 47, 45, 46, 44, 43, + /* 100 */ 42, 41, 469, 476, 2704, 1942, 606, 2757, 867, 2720, + /* 110 */ 2722, 473, 974, 2475, 435, 15, 207, 2720, 2723, 1940, + /* 120 */ 872, 2030, 867, 2738, 443, 2704, 2777, 850, 872, 54, + /* 130 */ 121, 2740, 854, 2742, 2743, 849, 867, 872, 2206, 482, + /* 140 */ 448, 447, 200, 695, 2831, 2545, 786, 2421, 472, 2827, + /* 150 */ 872, 2025, 2032, 2033, 812, 187, 2839, 2840, 19, 155, + /* 160 */ 2844, 911, 2059, 550, 841, 1948, 697, 254, 219, 2189, + /* 170 */ 696, 650, 2738, 2264, 243, 2777, 2878, 840, 2739, 410, + /* 180 */ 2740, 854, 2742, 2743, 849, 847, 872, 833, 2796, 559, + /* 190 */ 2541, 2003, 2013, 851, 62, 974, 1788, 1789, 15, 605, + /* 200 */ 242, 2031, 2034, 50, 810, 157, 867, 194, 2839, 809, + /* 210 */ 744, 149, 808, 603, 612, 610, 1943, 415, 1941, 2929, + /* 220 */ 232, 2757, 46, 44, 43, 42, 41, 211, 508, 2060, + /* 230 */ 2572, 50, 79, 507, 652, 2032, 2033, 797, 218, 2704, + /* 240 */ 649, 850, 2930, 799, 234, 2464, 322, 1952, 810, 157, + /* 250 */ 2570, 855, 1946, 1947, 2000, 62, 2002, 2005, 2006, 2007, + /* 260 */ 2008, 2009, 2010, 2011, 2012, 846, 870, 869, 2024, 2026, + /* 270 */ 2027, 2028, 2029, 2, 2003, 2013, 192, 256, 317, 644, + /* 280 */ 9, 650, 764, 2264, 2031, 2034, 2738, 92, 642, 2777, + /* 290 */ 2929, 638, 634, 121, 2740, 854, 2742, 2743, 849, 1943, + /* 300 */ 872, 1941, 2303, 159, 2497, 168, 2802, 2831, 2935, 218, + /* 310 */ 115, 472, 2827, 2930, 799, 2000, 36, 474, 2054, 2055, + /* 320 */ 2056, 2057, 2058, 2062, 2063, 2064, 2065, 127, 2839, 2840, + /* 330 */ 497, 155, 2844, 2470, 2472, 1946, 1947, 2000, 381, 2002, + /* 340 */ 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 846, 870, + /* 350 */ 869, 2024, 2026, 2027, 2028, 2029, 2, 12, 47, 45, + /* 360 */ 747, 1968, 2739, 1971, 667, 183, 476, 185, 1942, 2220, + /* 370 */ 394, 188, 2839, 2840, 2390, 155, 2844, 813, 324, 714, + /* 380 */ 713, 712, 1940, 124, 2030, 85, 704, 154, 708, 392, + /* 390 */ 77, 2096, 707, 76, 495, 2419, 2846, 706, 711, 453, + /* 400 */ 452, 2620, 160, 705, 421, 2757, 2209, 451, 701, 700, + /* 410 */ 699, 2407, 2409, 381, 2025, 324, 252, 629, 627, 624, + /* 420 */ 622, 19, 2843, 2704, 2559, 850, 668, 138, 1948, 748, + /* 430 */ 137, 136, 135, 134, 133, 132, 131, 130, 129, 324, + /* 440 */ 783, 47, 45, 2035, 2154, 460, 2619, 2477, 911, 476, + /* 450 */ 2477, 1942, 868, 2417, 292, 1968, 2934, 441, 974, 589, + /* 460 */ 481, 15, 62, 928, 2929, 1940, 2375, 2030, 2475, 663, + /* 470 */ 2738, 2475, 499, 2777, 588, 459, 2619, 121, 2740, 854, + /* 480 */ 2742, 2743, 849, 2933, 872, 1967, 802, 2930, 2931, 200, + /* 490 */ 2208, 2831, 2391, 1815, 1816, 472, 2827, 2025, 2032, 2033, + /* 500 */ 51, 63, 184, 780, 779, 2152, 2153, 2155, 2156, 2157, + /* 510 */ 2349, 1948, 657, 2611, 147, 146, 145, 144, 143, 142, + /* 520 */ 141, 140, 139, 2879, 2851, 2093, 2094, 2095, 2851, 2851, + /* 530 */ 2851, 2851, 2851, 1612, 868, 2417, 213, 2003, 2013, 1869, + /* 540 */ 1870, 974, 1814, 1817, 48, 798, 207, 2031, 2034, 789, + /* 550 */ 784, 777, 773, 2929, 148, 89, 88, 546, 868, 2417, + /* 560 */ 231, 693, 1943, 666, 1941, 2098, 2099, 2100, 2101, 2102, + /* 570 */ 670, 797, 218, 538, 536, 2546, 2930, 799, 148, 1614, + /* 580 */ 62, 2032, 2033, 2096, 664, 698, 418, 1714, 1715, 525, + /* 590 */ 527, 2514, 521, 517, 513, 510, 539, 1972, 1946, 1947, + /* 600 */ 2000, 2477, 2002, 2005, 2006, 2007, 2008, 2009, 2010, 2011, + /* 610 */ 2012, 846, 870, 869, 2024, 2026, 2027, 2028, 2029, 2, + /* 620 */ 2003, 2013, 817, 909, 174, 173, 906, 905, 904, 171, + /* 630 */ 2031, 2034, 1521, 1521, 1520, 1520, 1675, 909, 174, 173, + /* 640 */ 906, 905, 904, 171, 2118, 1943, 324, 1941, 153, 665, + /* 650 */ 2565, 1666, 901, 900, 899, 1670, 898, 1672, 1673, 897, + /* 660 */ 894, 238, 1681, 891, 1683, 1684, 888, 885, 882, 138, + /* 670 */ 1522, 1522, 137, 136, 135, 134, 133, 132, 131, 130, + /* 680 */ 129, 1946, 1947, 2000, 324, 2002, 2005, 2006, 2007, 2008, + /* 690 */ 2009, 2010, 2011, 2012, 846, 870, 869, 2024, 2026, 2027, + /* 700 */ 2028, 2029, 2, 47, 45, 2739, 1494, 95, 181, 1942, + /* 710 */ 94, 476, 697, 1942, 1970, 1675, 696, 2093, 2094, 2095, + /* 720 */ 851, 2423, 2266, 1940, 12, 1501, 10, 1940, 531, 2030, + /* 730 */ 1666, 901, 900, 899, 1670, 898, 1672, 1673, 845, 844, + /* 740 */ 721, 1681, 843, 1683, 1684, 842, 885, 882, 2757, 745, + /* 750 */ 1496, 1499, 1500, 37, 340, 735, 1624, 533, 529, 2025, + /* 760 */ 158, 2096, 587, 2802, 324, 2125, 2704, 586, 850, 1948, + /* 770 */ 1623, 1967, 207, 1948, 289, 585, 803, 40, 39, 93, + /* 780 */ 480, 46, 44, 43, 42, 41, 47, 45, 868, 2417, + /* 790 */ 724, 868, 2417, 1948, 476, 543, 1942, 718, 716, 974, + /* 800 */ 542, 2545, 2739, 974, 286, 2477, 48, 2846, 223, 12, + /* 810 */ 1940, 55, 2030, 2738, 2846, 496, 2777, 851, 902, 2886, + /* 820 */ 121, 2740, 854, 2742, 2743, 849, 2475, 872, 748, 565, + /* 830 */ 2541, 1607, 2949, 2842, 2831, 878, 596, 2541, 472, 2827, + /* 840 */ 2841, 2061, 2025, 2032, 2033, 2757, 617, 2230, 35, 764, + /* 850 */ 72, 2389, 1501, 71, 40, 39, 1948, 2929, 46, 44, + /* 860 */ 43, 42, 41, 2704, 114, 850, 40, 39, 868, 2417, + /* 870 */ 46, 44, 43, 42, 41, 2935, 218, 1608, 1499, 1500, + /* 880 */ 2930, 799, 2003, 2013, 236, 2165, 974, 322, 547, 15, + /* 890 */ 2408, 241, 2031, 2034, 2851, 2093, 2094, 2095, 2851, 2851, + /* 900 */ 2851, 2851, 2851, 1943, 2644, 1941, 2229, 1943, 2704, 1941, + /* 910 */ 2738, 750, 2611, 2777, 868, 2417, 925, 121, 2740, 854, + /* 920 */ 2742, 2743, 849, 3, 872, 479, 2032, 2033, 34, 2949, + /* 930 */ 834, 2831, 2803, 181, 548, 472, 2827, 53, 2066, 1946, + /* 940 */ 1947, 2117, 2004, 1946, 1947, 2000, 2422, 2002, 2005, 2006, + /* 950 */ 2007, 2008, 2009, 2010, 2011, 2012, 846, 870, 869, 2024, + /* 960 */ 2026, 2027, 2028, 2029, 2, 2003, 2013, 2704, 419, 1967, + /* 970 */ 1965, 522, 2040, 498, 2137, 2031, 2034, 594, 1967, 380, + /* 980 */ 445, 181, 877, 876, 875, 927, 331, 332, 614, 1971, + /* 990 */ 1943, 330, 1941, 2300, 2422, 225, 909, 174, 173, 906, + /* 1000 */ 905, 904, 171, 299, 573, 2001, 616, 2399, 422, 868, + /* 1010 */ 2417, 420, 575, 40, 39, 763, 374, 46, 44, 43, + /* 1020 */ 42, 41, 387, 553, 2471, 2472, 1946, 1947, 2000, 567, + /* 1030 */ 2002, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 846, + /* 1040 */ 870, 869, 2024, 2026, 2027, 2028, 2029, 2, 40, 39, + /* 1050 */ 689, 688, 46, 44, 43, 42, 41, 836, 488, 2803, + /* 1060 */ 1971, 40, 39, 1585, 444, 46, 44, 43, 42, 41, + /* 1070 */ 945, 944, 943, 942, 505, 561, 941, 940, 162, 935, + /* 1080 */ 934, 933, 932, 931, 930, 929, 161, 923, 922, 921, + /* 1090 */ 504, 503, 918, 917, 916, 198, 197, 915, 500, 914, + /* 1100 */ 913, 912, 43, 42, 41, 2933, 2146, 2552, 2531, 1586, + /* 1110 */ 602, 601, 600, 599, 598, 593, 592, 591, 590, 427, + /* 1120 */ 2147, 2625, 580, 579, 578, 577, 576, 570, 569, 568, + /* 1130 */ 2739, 563, 562, 442, 2657, 868, 2417, 554, 1776, 1777, + /* 1140 */ 2004, 868, 2417, 2228, 1795, 851, 2725, 2899, 209, 2004, + /* 1150 */ 2421, 714, 713, 712, 491, 581, 60, 2227, 704, 154, + /* 1160 */ 708, 582, 221, 212, 707, 62, 2145, 761, 2739, 706, + /* 1170 */ 711, 453, 452, 2757, 2350, 705, 1628, 868, 2417, 451, + /* 1180 */ 701, 700, 699, 851, 293, 775, 868, 2417, 764, 182, + /* 1190 */ 1627, 2704, 2739, 850, 1524, 1525, 2929, 583, 502, 501, + /* 1200 */ 495, 2419, 792, 2001, 2704, 101, 669, 851, 1956, 2922, + /* 1210 */ 2727, 2757, 2001, 2196, 2935, 218, 868, 2417, 2704, 2930, + /* 1220 */ 799, 2477, 1949, 1972, 2030, 691, 690, 710, 709, 2704, + /* 1230 */ 2221, 850, 1971, 214, 2413, 2757, 2414, 2477, 2738, 182, + /* 1240 */ 1911, 2777, 825, 2226, 2225, 121, 2740, 854, 2742, 2743, + /* 1250 */ 849, 2420, 872, 2704, 2025, 850, 291, 2949, 2476, 2831, + /* 1260 */ 290, 868, 2417, 472, 2827, 541, 619, 540, 1948, 14, + /* 1270 */ 13, 2107, 487, 486, 2739, 903, 2738, 2224, 2468, 2777, + /* 1280 */ 1967, 294, 2223, 121, 2740, 854, 2742, 2743, 849, 851, + /* 1290 */ 872, 2863, 2222, 2219, 1972, 2949, 805, 2831, 838, 539, + /* 1300 */ 2738, 472, 2827, 2777, 2704, 2704, 2892, 121, 2740, 854, + /* 1310 */ 2742, 2743, 849, 2739, 872, 907, 2218, 2757, 2468, 2949, + /* 1320 */ 2217, 2831, 425, 424, 303, 472, 2827, 2216, 851, 939, + /* 1330 */ 937, 2195, 483, 150, 104, 2704, 1910, 850, 2704, 430, + /* 1340 */ 868, 2417, 458, 2704, 736, 2479, 492, 91, 2030, 324, + /* 1350 */ 868, 2417, 2739, 2704, 2704, 2215, 2757, 40, 39, 2214, + /* 1360 */ 302, 46, 44, 43, 42, 41, 2213, 851, 490, 489, + /* 1370 */ 816, 2236, 967, 106, 2704, 2212, 850, 2704, 2025, 868, + /* 1380 */ 2417, 2704, 2738, 2648, 2073, 2777, 868, 2417, 2704, 121, + /* 1390 */ 2740, 854, 2742, 2743, 849, 2757, 872, 868, 2417, 335, + /* 1400 */ 2211, 2949, 1957, 2831, 1952, 192, 830, 472, 2827, 908, + /* 1410 */ 105, 279, 2468, 2704, 277, 850, 2704, 342, 1951, 2739, + /* 1420 */ 2704, 2738, 318, 801, 2777, 868, 2417, 2704, 121, 2740, + /* 1430 */ 854, 2742, 2743, 849, 851, 872, 2704, 515, 1960, 1962, + /* 1440 */ 2806, 746, 2831, 1503, 1843, 862, 472, 2827, 388, 1966, + /* 1450 */ 2392, 2454, 870, 869, 2024, 2026, 2027, 2028, 2029, 977, + /* 1460 */ 2738, 2704, 2757, 2777, 868, 2417, 1972, 121, 2740, 854, + /* 1470 */ 2742, 2743, 849, 2524, 872, 738, 164, 737, 378, 2804, + /* 1480 */ 2704, 2831, 850, 163, 863, 472, 2827, 868, 2417, 2658, + /* 1490 */ 164, 40, 39, 965, 208, 46, 44, 43, 42, 41, + /* 1500 */ 615, 702, 703, 961, 957, 953, 949, 866, 373, 771, + /* 1510 */ 281, 868, 2417, 280, 2001, 283, 29, 557, 282, 285, + /* 1520 */ 49, 839, 284, 2287, 1605, 1603, 1933, 2738, 1909, 741, + /* 1530 */ 2777, 370, 781, 49, 121, 2740, 854, 2742, 2743, 849, + /* 1540 */ 749, 872, 125, 764, 2285, 715, 835, 1950, 2831, 2276, + /* 1550 */ 2739, 2929, 472, 2827, 73, 2198, 2199, 346, 201, 1859, + /* 1560 */ 485, 484, 1934, 2274, 310, 851, 717, 811, 814, 2935, + /* 1570 */ 218, 719, 172, 1867, 2930, 799, 870, 869, 2024, 2026, + /* 1580 */ 2027, 2028, 2029, 764, 152, 722, 2758, 120, 806, 2739, + /* 1590 */ 826, 2929, 2141, 2757, 764, 329, 117, 78, 2257, 2166, + /* 1600 */ 1954, 2882, 2929, 2151, 851, 14, 13, 64, 2342, 2935, + /* 1610 */ 218, 2704, 49, 850, 2930, 799, 2150, 349, 348, 49, + /* 1620 */ 2935, 218, 764, 351, 350, 2930, 799, 2341, 2739, 78, + /* 1630 */ 2929, 169, 2757, 150, 778, 344, 172, 832, 353, 352, + /* 1640 */ 327, 308, 1558, 851, 465, 326, 355, 354, 2935, 218, + /* 1650 */ 2704, 75, 850, 2930, 799, 815, 357, 356, 2738, 359, + /* 1660 */ 358, 2777, 361, 360, 296, 122, 2740, 854, 2742, 2743, + /* 1670 */ 849, 2757, 872, 363, 362, 365, 364, 2739, 333, 2831, + /* 1680 */ 822, 367, 366, 2830, 2827, 369, 368, 880, 1559, 2704, + /* 1690 */ 2067, 850, 851, 170, 919, 2014, 2268, 2738, 2051, 172, + /* 1700 */ 2777, 151, 1812, 169, 122, 2740, 854, 2742, 2743, 849, + /* 1710 */ 2739, 872, 1802, 785, 345, 461, 865, 1577, 2831, 1657, + /* 1720 */ 2757, 819, 837, 2827, 2550, 851, 920, 506, 524, 1953, + /* 1730 */ 2263, 2465, 757, 2883, 386, 2893, 852, 320, 2704, 2777, + /* 1740 */ 850, 315, 793, 122, 2740, 854, 2742, 2743, 849, 1575, + /* 1750 */ 872, 963, 794, 2757, 323, 2551, 2376, 2831, 5, 514, + /* 1760 */ 509, 434, 2827, 439, 1965, 523, 1975, 535, 534, 226, + /* 1770 */ 1688, 2704, 2739, 850, 537, 274, 1696, 227, 229, 1836, + /* 1780 */ 379, 551, 1703, 1966, 1701, 2738, 175, 851, 2777, 558, + /* 1790 */ 240, 193, 186, 2740, 854, 2742, 2743, 849, 560, 872, + /* 1800 */ 687, 683, 679, 675, 564, 273, 566, 608, 571, 584, + /* 1810 */ 597, 595, 2543, 604, 607, 2757, 609, 620, 2738, 621, + /* 1820 */ 618, 2777, 246, 245, 625, 189, 2740, 854, 2742, 2743, + /* 1830 */ 849, 623, 872, 2704, 626, 850, 249, 628, 1973, 765, + /* 1840 */ 2889, 645, 630, 4, 646, 1968, 653, 654, 257, 656, + /* 1850 */ 658, 102, 2739, 97, 271, 260, 1974, 659, 1976, 660, + /* 1860 */ 662, 1977, 1978, 263, 2560, 265, 2566, 851, 98, 99, + /* 1870 */ 100, 272, 671, 692, 725, 726, 2634, 126, 694, 2631, + /* 1880 */ 2738, 413, 740, 2777, 800, 2950, 2405, 122, 2740, 854, + /* 1890 */ 2742, 2743, 849, 276, 872, 2757, 742, 103, 2401, 278, + /* 1900 */ 165, 2831, 177, 123, 2403, 2398, 2828, 295, 178, 1969, + /* 1910 */ 179, 382, 2739, 2704, 2612, 850, 752, 300, 751, 759, + /* 1920 */ 782, 820, 753, 259, 298, 2898, 2897, 851, 791, 769, + /* 1930 */ 305, 8, 270, 191, 2630, 2870, 261, 268, 756, 2739, + /* 1940 */ 768, 767, 266, 661, 309, 766, 796, 311, 2850, 312, + /* 1950 */ 795, 316, 466, 804, 851, 2757, 313, 2952, 307, 807, + /* 1960 */ 2738, 258, 156, 2777, 758, 1970, 314, 186, 2740, 854, + /* 1970 */ 2742, 2743, 849, 2704, 872, 850, 2115, 2928, 2113, 204, + /* 1980 */ 325, 319, 2757, 166, 383, 818, 823, 2580, 2579, 2578, + /* 1990 */ 384, 824, 470, 167, 2847, 828, 831, 463, 61, 338, + /* 2000 */ 2704, 858, 850, 1, 856, 385, 116, 860, 1473, 861, + /* 2010 */ 2739, 2696, 2418, 2695, 2812, 2890, 343, 113, 2691, 2690, + /* 2020 */ 2738, 372, 2682, 2777, 464, 851, 2681, 411, 2740, 854, + /* 2030 */ 2742, 2743, 849, 220, 872, 2673, 2672, 2688, 874, 969, + /* 2040 */ 970, 2687, 375, 2679, 2678, 176, 389, 2738, 2739, 2667, + /* 2050 */ 2777, 971, 966, 2757, 411, 2740, 854, 2742, 2743, 849, + /* 2060 */ 376, 872, 2666, 851, 973, 2685, 2684, 423, 414, 2676, + /* 2070 */ 2675, 2704, 2664, 850, 2739, 2663, 744, 391, 2661, 2660, + /* 2080 */ 2469, 393, 401, 412, 426, 2656, 2655, 2654, 86, 848, + /* 2090 */ 402, 2757, 2649, 52, 511, 431, 512, 1893, 1894, 224, + /* 2100 */ 516, 2647, 432, 518, 519, 520, 1892, 2646, 2645, 2704, + /* 2110 */ 440, 850, 2643, 526, 2642, 528, 2641, 2757, 2738, 530, + /* 2120 */ 2640, 2777, 1880, 2616, 532, 404, 2740, 854, 2742, 2743, + /* 2130 */ 849, 228, 872, 2615, 230, 2704, 87, 850, 1839, 1838, + /* 2140 */ 2593, 2592, 2591, 2739, 544, 545, 2590, 2589, 2533, 549, + /* 2150 */ 1775, 2530, 2529, 552, 2523, 555, 2738, 556, 851, 2777, + /* 2160 */ 2520, 233, 2519, 189, 2740, 854, 2742, 2743, 849, 90, + /* 2170 */ 872, 2518, 2517, 2522, 2521, 235, 790, 2516, 2515, 2513, + /* 2180 */ 2512, 2511, 2738, 237, 2739, 2777, 2757, 239, 2490, 410, + /* 2190 */ 2740, 854, 2742, 2743, 849, 572, 872, 2510, 2797, 851, + /* 2200 */ 574, 2508, 2507, 2739, 2704, 2506, 850, 2505, 2504, 2528, + /* 2210 */ 2503, 2502, 2501, 2526, 2509, 2500, 2499, 2498, 851, 428, + /* 2220 */ 1781, 2483, 96, 2951, 2496, 2495, 2494, 2757, 475, 2493, + /* 2230 */ 2492, 2491, 2489, 2739, 2488, 2487, 2486, 2558, 2527, 2525, + /* 2240 */ 2485, 2484, 244, 2482, 2481, 2704, 2757, 850, 851, 2480, + /* 2250 */ 611, 2738, 613, 2478, 2777, 1625, 429, 2307, 411, 2740, + /* 2260 */ 854, 2742, 2743, 849, 2704, 872, 850, 2739, 1629, 477, + /* 2270 */ 253, 247, 2306, 2305, 248, 2304, 2757, 2302, 1621, 2299, + /* 2280 */ 2298, 631, 851, 2291, 635, 2278, 250, 2252, 251, 199, + /* 2290 */ 2251, 633, 2738, 2614, 2704, 2777, 850, 2739, 639, 411, + /* 2300 */ 2740, 854, 2742, 2743, 849, 632, 872, 637, 636, 640, + /* 2310 */ 2757, 739, 851, 641, 2777, 82, 2724, 643, 406, 2740, + /* 2320 */ 854, 2742, 2743, 849, 1502, 872, 83, 210, 2704, 651, + /* 2330 */ 850, 255, 2610, 2600, 2588, 262, 264, 2587, 2564, 267, + /* 2340 */ 2757, 2738, 2557, 269, 2777, 2393, 2301, 2297, 396, 2740, + /* 2350 */ 854, 2742, 2743, 849, 672, 872, 673, 2739, 2704, 674, + /* 2360 */ 850, 2295, 676, 677, 678, 1551, 2293, 680, 681, 682, + /* 2370 */ 2290, 684, 851, 685, 686, 2738, 2273, 2271, 2777, 2739, + /* 2380 */ 275, 74, 395, 2740, 854, 2742, 2743, 849, 2272, 872, + /* 2390 */ 2270, 2248, 2739, 2395, 851, 1707, 1708, 2394, 1610, 1609, + /* 2400 */ 2757, 1611, 936, 1606, 1604, 2738, 1593, 851, 2777, 2288, + /* 2410 */ 1602, 1601, 397, 2740, 854, 2742, 2743, 849, 2704, 872, + /* 2420 */ 850, 1600, 2757, 1599, 454, 1598, 2286, 938, 1595, 455, + /* 2430 */ 2277, 1594, 1592, 456, 720, 2757, 2275, 457, 2247, 723, + /* 2440 */ 2704, 2739, 850, 2246, 2245, 2244, 727, 2243, 729, 731, + /* 2450 */ 2242, 733, 128, 2704, 1874, 850, 851, 1878, 1876, 1873, + /* 2460 */ 2613, 56, 2609, 28, 67, 2738, 2599, 297, 2777, 1845, + /* 2470 */ 1847, 754, 403, 2740, 854, 2742, 2743, 849, 743, 872, + /* 2480 */ 180, 1864, 2586, 1849, 2757, 2585, 2934, 2738, 57, 755, + /* 2490 */ 2777, 1824, 1823, 301, 407, 2740, 854, 2742, 2743, 849, + /* 2500 */ 2738, 872, 2704, 2777, 850, 20, 760, 398, 2740, 854, + /* 2510 */ 2742, 2743, 849, 30, 872, 762, 2168, 2142, 215, 2739, + /* 2520 */ 304, 772, 770, 462, 306, 6, 17, 774, 7, 21, + /* 2530 */ 776, 22, 203, 2149, 851, 190, 32, 2108, 2739, 202, + /* 2540 */ 31, 2725, 216, 2136, 2106, 65, 84, 2110, 24, 2738, + /* 2550 */ 217, 321, 2777, 851, 2183, 2188, 408, 2740, 854, 2742, + /* 2560 */ 2743, 849, 2757, 872, 2182, 467, 2187, 2189, 2739, 2186, + /* 2570 */ 23, 18, 468, 2090, 2089, 195, 59, 2584, 2563, 107, + /* 2580 */ 2704, 2757, 850, 851, 108, 328, 2144, 2562, 58, 205, + /* 2590 */ 334, 109, 69, 2556, 827, 821, 337, 110, 25, 2704, + /* 2600 */ 2739, 850, 2042, 11, 336, 2041, 13, 1958, 2052, 2017, + /* 2610 */ 2016, 2757, 887, 196, 206, 851, 890, 893, 1993, 853, + /* 2620 */ 896, 38, 2555, 2015, 1985, 16, 347, 2738, 26, 2704, + /* 2630 */ 2777, 850, 27, 829, 399, 2740, 854, 2742, 2743, 849, + /* 2640 */ 70, 872, 857, 2757, 111, 117, 2738, 339, 1652, 2777, + /* 2650 */ 341, 2739, 859, 409, 2740, 854, 2742, 2743, 849, 112, + /* 2660 */ 872, 2704, 2019, 850, 864, 80, 851, 2782, 2204, 2781, + /* 2670 */ 871, 68, 2203, 873, 2202, 2201, 2738, 1689, 2739, 2777, + /* 2680 */ 879, 494, 881, 400, 2740, 854, 2742, 2743, 849, 1686, + /* 2690 */ 872, 883, 1685, 851, 2757, 884, 886, 1682, 889, 1676, + /* 2700 */ 892, 895, 1674, 1680, 118, 1679, 1678, 1677, 2738, 371, + /* 2710 */ 119, 2777, 2704, 1702, 850, 416, 2740, 854, 2742, 2743, + /* 2720 */ 849, 2757, 872, 81, 1698, 1549, 910, 1589, 1588, 1587, + /* 2730 */ 1584, 1581, 1580, 1579, 1578, 1576, 1574, 1573, 1619, 2704, + /* 2740 */ 2739, 850, 1572, 924, 926, 1618, 222, 1570, 1569, 1567, + /* 2750 */ 1568, 1566, 1565, 1564, 1615, 851, 1613, 1561, 1560, 2738, + /* 2760 */ 1557, 2739, 2777, 1555, 1556, 1554, 417, 2740, 854, 2742, + /* 2770 */ 2743, 849, 2296, 872, 946, 948, 851, 947, 2294, 950, + /* 2780 */ 951, 952, 2292, 2757, 954, 2289, 2738, 955, 956, 2777, + /* 2790 */ 958, 960, 2269, 2751, 2740, 854, 2742, 2743, 849, 959, + /* 2800 */ 872, 2704, 2739, 850, 2757, 962, 2267, 1491, 964, 2241, + /* 2810 */ 1474, 1479, 968, 1481, 976, 377, 972, 851, 1944, 390, + /* 2820 */ 975, 2207, 2704, 2739, 850, 2207, 2207, 2207, 2207, 2207, + /* 2830 */ 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 851, 2207, + /* 2840 */ 2207, 2207, 2207, 2207, 2207, 2757, 2207, 2207, 2738, 2207, + /* 2850 */ 2207, 2777, 2207, 2207, 2207, 2750, 2740, 854, 2742, 2743, + /* 2860 */ 849, 2207, 872, 2704, 2207, 850, 2757, 2207, 2207, 2738, + /* 2870 */ 2207, 2207, 2777, 2207, 2207, 2207, 2749, 2740, 854, 2742, + /* 2880 */ 2743, 849, 2207, 872, 2704, 2739, 850, 2207, 2207, 2207, + /* 2890 */ 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, + /* 2900 */ 851, 2739, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, + /* 2910 */ 2738, 2207, 2207, 2777, 2207, 2207, 851, 436, 2740, 854, + /* 2920 */ 2742, 2743, 849, 2207, 872, 2207, 2207, 2207, 2757, 2207, + /* 2930 */ 2207, 2738, 2207, 2207, 2777, 2207, 2207, 2207, 437, 2740, + /* 2940 */ 854, 2742, 2743, 849, 2757, 872, 2704, 2207, 850, 2207, + /* 2950 */ 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, + /* 2960 */ 2207, 2207, 2704, 2739, 850, 2207, 2207, 2207, 2207, 2207, + /* 2970 */ 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 851, 2207, + /* 2980 */ 2207, 2207, 2739, 2207, 2207, 2207, 2207, 2207, 2207, 2207, + /* 2990 */ 2207, 2207, 2207, 2738, 2207, 2207, 2777, 851, 2207, 2207, + /* 3000 */ 433, 2740, 854, 2742, 2743, 849, 2757, 872, 2207, 2738, + /* 3010 */ 2207, 2207, 2777, 2207, 2207, 2207, 438, 2740, 854, 2742, + /* 3020 */ 2743, 849, 2207, 872, 2704, 2757, 850, 2207, 2207, 2207, + /* 3030 */ 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, + /* 3040 */ 2207, 2207, 2207, 2704, 2207, 850, 2207, 2207, 2207, 2207, + /* 3050 */ 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, + /* 3060 */ 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 2207, + /* 3070 */ 2207, 852, 2207, 2207, 2777, 2207, 2207, 2207, 406, 2740, + /* 3080 */ 854, 2742, 2743, 849, 2207, 872, 2207, 2207, 2207, 2207, + /* 3090 */ 2738, 2207, 2207, 2777, 2207, 2207, 2207, 405, 2740, 854, + /* 3100 */ 2742, 2743, 849, 2207, 872, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 427, 395, 396, 390, 431, 444, 393, 394, 511, 512, - /* 10 */ 425, 412, 12, 13, 14, 395, 425, 395, 396, 458, - /* 20 */ 20, 0, 22, 8, 9, 464, 465, 12, 13, 14, - /* 30 */ 15, 16, 395, 1, 2, 424, 36, 415, 38, 0, - /* 40 */ 0, 442, 381, 432, 422, 24, 25, 26, 27, 28, - /* 50 */ 29, 30, 31, 32, 395, 396, 450, 396, 44, 390, - /* 60 */ 395, 396, 393, 394, 453, 492, 8, 9, 68, 0, - /* 70 */ 12, 13, 14, 15, 16, 75, 503, 20, 20, 488, - /* 80 */ 460, 461, 82, 446, 447, 424, 449, 13, 21, 452, - /* 90 */ 21, 492, 493, 24, 25, 26, 27, 28, 29, 30, - /* 100 */ 31, 32, 503, 442, 37, 444, 39, 40, 41, 42, - /* 110 */ 425, 426, 112, 91, 74, 115, 77, 78, 79, 80, - /* 120 */ 81, 396, 83, 84, 85, 86, 87, 88, 89, 90, - /* 130 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, - /* 140 */ 101, 102, 103, 104, 105, 106, 107, 108, 116, 424, - /* 150 */ 489, 151, 152, 492, 20, 20, 82, 496, 497, 498, - /* 160 */ 499, 500, 501, 20, 503, 68, 522, 411, 154, 508, - /* 170 */ 414, 510, 395, 396, 530, 514, 515, 518, 519, 520, - /* 180 */ 158, 522, 523, 518, 519, 520, 425, 522, 523, 530, - /* 190 */ 190, 191, 548, 549, 378, 534, 14, 553, 554, 438, - /* 200 */ 200, 201, 20, 542, 20, 183, 184, 548, 549, 402, - /* 210 */ 14, 114, 553, 554, 117, 215, 20, 217, 20, 197, - /* 220 */ 395, 396, 207, 498, 8, 9, 419, 450, 12, 13, - /* 230 */ 14, 15, 16, 381, 21, 428, 429, 24, 25, 26, - /* 240 */ 27, 28, 29, 30, 31, 32, 115, 115, 396, 192, - /* 250 */ 192, 251, 252, 253, 154, 255, 256, 257, 258, 259, + /* 0 */ 425, 427, 404, 444, 427, 431, 390, 444, 522, 393, + /* 10 */ 394, 425, 12, 13, 14, 381, 530, 458, 522, 421, + /* 20 */ 20, 458, 22, 464, 465, 20, 530, 464, 465, 412, + /* 30 */ 396, 433, 395, 396, 548, 549, 36, 412, 38, 553, + /* 40 */ 554, 12, 13, 381, 396, 549, 33, 8, 9, 553, + /* 50 */ 554, 12, 13, 14, 15, 16, 3, 390, 424, 442, + /* 60 */ 393, 394, 41, 42, 381, 36, 492, 442, 68, 492, + /* 70 */ 21, 20, 424, 20, 427, 75, 442, 503, 444, 396, + /* 80 */ 503, 20, 82, 4, 395, 396, 37, 2, 39, 40, + /* 90 */ 41, 42, 424, 8, 9, 12, 13, 12, 13, 14, + /* 100 */ 15, 16, 434, 20, 442, 22, 91, 424, 20, 492, + /* 110 */ 493, 494, 112, 445, 75, 115, 424, 492, 493, 36, + /* 120 */ 503, 38, 20, 489, 432, 442, 492, 444, 503, 116, + /* 130 */ 496, 497, 498, 499, 500, 501, 20, 503, 378, 492, + /* 140 */ 119, 120, 508, 122, 510, 453, 498, 425, 514, 515, + /* 150 */ 503, 68, 152, 153, 517, 518, 519, 520, 75, 522, + /* 160 */ 523, 74, 123, 395, 425, 82, 145, 391, 534, 116, + /* 170 */ 149, 395, 489, 397, 159, 492, 542, 438, 381, 496, + /* 180 */ 497, 498, 499, 500, 501, 502, 503, 504, 505, 395, + /* 190 */ 396, 191, 192, 396, 115, 112, 191, 192, 115, 184, + /* 200 */ 185, 201, 202, 115, 395, 396, 20, 518, 519, 520, + /* 210 */ 488, 522, 523, 198, 446, 447, 216, 449, 218, 530, + /* 220 */ 452, 424, 12, 13, 14, 15, 16, 423, 468, 190, + /* 230 */ 444, 115, 125, 473, 14, 152, 153, 548, 549, 442, + /* 240 */ 20, 444, 553, 554, 450, 441, 193, 218, 395, 396, + /* 250 */ 464, 465, 252, 253, 254, 115, 256, 257, 258, 259, /* 260 */ 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, - /* 270 */ 270, 271, 272, 12, 13, 450, 424, 73, 18, 20, - /* 280 */ 20, 20, 185, 22, 468, 151, 152, 27, 20, 473, - /* 290 */ 30, 75, 395, 396, 442, 74, 444, 36, 38, 38, - /* 300 */ 115, 287, 288, 289, 290, 291, 292, 293, 294, 295, - /* 310 */ 253, 253, 415, 115, 54, 4, 56, 395, 468, 422, - /* 320 */ 20, 61, 62, 473, 391, 190, 191, 412, 395, 68, - /* 330 */ 397, 395, 396, 73, 200, 201, 75, 0, 522, 123, - /* 340 */ 325, 489, 495, 82, 492, 214, 530, 216, 496, 497, - /* 350 */ 498, 499, 500, 501, 381, 503, 195, 442, 506, 22, - /* 360 */ 508, 509, 510, 444, 548, 549, 514, 515, 521, 553, - /* 370 */ 554, 4, 522, 112, 114, 36, 115, 458, 381, 248, - /* 380 */ 530, 395, 396, 464, 465, 125, 190, 287, 288, 289, - /* 390 */ 290, 291, 292, 293, 294, 295, 253, 22, 548, 549, - /* 400 */ 478, 479, 146, 553, 554, 189, 150, 492, 493, 494, - /* 410 */ 251, 36, 151, 152, 210, 442, 156, 157, 503, 159, - /* 420 */ 160, 161, 162, 163, 164, 165, 166, 167, 168, 298, - /* 430 */ 298, 171, 172, 173, 174, 175, 176, 177, 178, 442, - /* 440 */ 180, 181, 182, 239, 240, 227, 186, 187, 188, 253, - /* 450 */ 22, 190, 191, 193, 518, 519, 520, 82, 522, 523, - /* 460 */ 192, 200, 201, 20, 36, 304, 305, 306, 307, 310, - /* 470 */ 311, 312, 313, 314, 315, 316, 215, 20, 217, 427, - /* 480 */ 224, 427, 115, 298, 424, 229, 20, 112, 232, 524, - /* 490 */ 234, 526, 276, 277, 278, 279, 280, 281, 282, 283, - /* 500 */ 284, 285, 286, 517, 518, 519, 520, 405, 522, 523, - /* 510 */ 154, 495, 251, 252, 253, 413, 255, 256, 257, 258, - /* 520 */ 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, - /* 530 */ 269, 270, 271, 272, 273, 12, 13, 521, 440, 381, - /* 540 */ 112, 443, 444, 20, 492, 22, 492, 487, 112, 291, - /* 550 */ 292, 293, 294, 295, 396, 503, 217, 503, 115, 36, - /* 560 */ 36, 38, 126, 127, 128, 129, 130, 131, 132, 133, - /* 570 */ 134, 135, 522, 137, 138, 139, 140, 141, 142, 143, - /* 580 */ 530, 115, 424, 0, 424, 20, 424, 22, 249, 250, - /* 590 */ 215, 68, 217, 375, 376, 377, 434, 437, 75, 549, - /* 600 */ 442, 36, 444, 553, 554, 82, 82, 445, 151, 152, - /* 610 */ 381, 300, 77, 78, 79, 41, 42, 424, 4, 84, - /* 620 */ 85, 86, 3, 58, 381, 90, 251, 252, 435, 436, - /* 630 */ 95, 96, 97, 98, 381, 112, 101, 23, 115, 20, - /* 640 */ 105, 106, 107, 108, 288, 289, 290, 489, 0, 396, - /* 650 */ 492, 398, 443, 444, 496, 497, 498, 499, 500, 501, - /* 660 */ 424, 503, 48, 49, 50, 298, 508, 36, 510, 20, - /* 670 */ 434, 442, 514, 515, 151, 152, 2, 424, 444, 486, - /* 680 */ 487, 445, 8, 9, 522, 442, 12, 13, 14, 15, - /* 690 */ 16, 0, 530, 119, 120, 442, 122, 444, 464, 465, - /* 700 */ 542, 8, 9, 59, 60, 12, 13, 14, 15, 16, - /* 710 */ 548, 549, 522, 190, 191, 553, 554, 424, 144, 20, - /* 720 */ 530, 74, 148, 200, 201, 432, 33, 144, 145, 146, - /* 730 */ 147, 148, 149, 150, 125, 116, 12, 13, 215, 549, - /* 740 */ 217, 298, 489, 553, 554, 492, 453, 20, 395, 496, - /* 750 */ 497, 498, 499, 500, 501, 52, 503, 395, 396, 439, - /* 760 */ 36, 508, 442, 510, 298, 8, 9, 514, 515, 12, - /* 770 */ 13, 14, 15, 16, 251, 252, 253, 415, 255, 256, - /* 780 */ 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, - /* 790 */ 267, 268, 269, 270, 271, 272, 12, 13, 14, 381, - /* 800 */ 495, 391, 468, 22, 20, 395, 22, 397, 455, 116, - /* 810 */ 457, 192, 395, 396, 396, 144, 398, 36, 170, 148, - /* 820 */ 36, 4, 38, 175, 14, 54, 521, 395, 396, 381, - /* 830 */ 20, 183, 415, 424, 63, 20, 19, 66, 67, 395, - /* 840 */ 396, 395, 424, 434, 396, 154, 398, 415, 217, 395, - /* 850 */ 396, 124, 68, 22, 445, 38, 522, 395, 396, 415, - /* 860 */ 442, 0, 444, 82, 530, 506, 82, 36, 509, 415, - /* 870 */ 189, 54, 424, 116, 395, 396, 424, 415, 61, 62, - /* 880 */ 249, 250, 548, 549, 380, 68, 382, 553, 554, 190, - /* 890 */ 442, 404, 444, 273, 415, 192, 112, 8, 9, 115, - /* 900 */ 424, 12, 13, 14, 15, 16, 203, 489, 421, 423, - /* 910 */ 492, 435, 436, 125, 496, 497, 498, 499, 500, 501, - /* 920 */ 433, 503, 395, 396, 478, 479, 508, 441, 510, 82, - /* 930 */ 381, 114, 514, 515, 117, 151, 152, 489, 486, 487, - /* 940 */ 492, 217, 415, 112, 496, 497, 498, 499, 500, 501, - /* 950 */ 420, 503, 253, 381, 20, 402, 508, 276, 510, 2, - /* 960 */ 400, 401, 514, 515, 185, 8, 9, 286, 396, 12, - /* 970 */ 13, 14, 15, 16, 190, 191, 12, 13, 14, 15, - /* 980 */ 16, 428, 8, 9, 200, 201, 12, 13, 14, 15, - /* 990 */ 16, 442, 395, 396, 416, 23, 424, 424, 219, 215, - /* 1000 */ 190, 217, 424, 145, 424, 144, 145, 146, 147, 148, - /* 1010 */ 149, 150, 415, 483, 442, 437, 444, 381, 14, 15, - /* 1020 */ 16, 49, 50, 8, 9, 445, 453, 12, 13, 14, - /* 1030 */ 15, 16, 396, 381, 398, 251, 252, 253, 468, 255, - /* 1040 */ 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, - /* 1050 */ 266, 267, 268, 269, 270, 271, 272, 12, 13, 381, - /* 1060 */ 424, 489, 68, 253, 492, 20, 34, 22, 496, 497, - /* 1070 */ 498, 499, 500, 501, 396, 503, 398, 416, 442, 381, - /* 1080 */ 444, 36, 510, 38, 3, 424, 514, 515, 230, 231, - /* 1090 */ 400, 401, 522, 44, 442, 381, 395, 396, 437, 273, - /* 1100 */ 530, 275, 424, 144, 145, 146, 147, 148, 149, 150, - /* 1110 */ 396, 117, 398, 68, 409, 410, 415, 68, 548, 549, - /* 1120 */ 442, 33, 444, 553, 554, 489, 192, 82, 492, 395, - /* 1130 */ 396, 116, 496, 497, 498, 499, 500, 501, 424, 503, - /* 1140 */ 442, 395, 396, 424, 508, 468, 510, 145, 146, 415, - /* 1150 */ 514, 515, 150, 395, 396, 436, 442, 112, 444, 474, - /* 1160 */ 115, 415, 395, 396, 395, 396, 192, 489, 0, 425, - /* 1170 */ 492, 395, 396, 415, 496, 497, 498, 499, 500, 501, - /* 1180 */ 381, 503, 415, 507, 415, 509, 508, 253, 510, 395, - /* 1190 */ 396, 415, 514, 515, 12, 13, 151, 152, 424, 522, - /* 1200 */ 381, 395, 396, 489, 22, 20, 492, 530, 434, 415, - /* 1210 */ 496, 497, 498, 499, 500, 501, 0, 503, 36, 445, - /* 1220 */ 38, 415, 508, 20, 510, 548, 549, 404, 514, 515, - /* 1230 */ 553, 554, 395, 396, 381, 190, 191, 395, 396, 0, - /* 1240 */ 507, 442, 509, 395, 396, 200, 201, 409, 410, 115, - /* 1250 */ 68, 112, 415, 20, 425, 22, 433, 415, 124, 38, - /* 1260 */ 215, 442, 217, 415, 82, 126, 127, 128, 129, 130, - /* 1270 */ 131, 132, 133, 134, 135, 54, 137, 138, 139, 140, - /* 1280 */ 141, 142, 143, 44, 63, 64, 65, 66, 413, 68, - /* 1290 */ 33, 58, 13, 381, 112, 442, 251, 252, 253, 381, - /* 1300 */ 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, - /* 1310 */ 265, 266, 267, 268, 269, 270, 271, 272, 12, 13, - /* 1320 */ 33, 381, 154, 381, 424, 18, 20, 424, 22, 381, - /* 1330 */ 23, 468, 0, 381, 381, 114, 33, 169, 117, 381, - /* 1340 */ 439, 381, 36, 442, 38, 445, 384, 385, 445, 42, - /* 1350 */ 43, 468, 439, 46, 442, 442, 417, 14, 33, 420, - /* 1360 */ 442, 82, 118, 20, 57, 121, 381, 75, 13, 33, - /* 1370 */ 125, 0, 47, 116, 68, 13, 69, 70, 71, 72, - /* 1380 */ 73, 396, 442, 47, 442, 522, 54, 33, 82, 118, - /* 1390 */ 442, 36, 121, 530, 442, 442, 33, 215, 36, 217, - /* 1400 */ 442, 320, 442, 116, 33, 522, 185, 33, 36, 424, - /* 1410 */ 322, 548, 549, 530, 36, 194, 553, 554, 112, 198, - /* 1420 */ 199, 115, 115, 36, 179, 204, 205, 442, 233, 444, - /* 1430 */ 235, 548, 549, 251, 252, 33, 553, 554, 253, 0, - /* 1440 */ 118, 0, 118, 121, 223, 121, 0, 265, 266, 267, - /* 1450 */ 268, 269, 270, 271, 82, 33, 253, 151, 152, 243, - /* 1460 */ 153, 22, 51, 22, 151, 152, 33, 36, 22, 82, - /* 1470 */ 116, 12, 13, 33, 489, 1, 2, 492, 425, 116, - /* 1480 */ 13, 496, 497, 498, 499, 500, 501, 425, 503, 0, - /* 1490 */ 116, 425, 382, 508, 454, 510, 190, 191, 33, 514, - /* 1500 */ 515, 524, 33, 36, 33, 525, 200, 201, 557, 33, - /* 1510 */ 12, 13, 546, 33, 207, 208, 209, 33, 116, 212, - /* 1520 */ 33, 215, 539, 217, 12, 13, 115, 33, 12, 13, - /* 1530 */ 12, 13, 225, 226, 12, 13, 12, 13, 116, 12, - /* 1540 */ 13, 12, 13, 251, 55, 238, 12, 13, 241, 116, - /* 1550 */ 33, 244, 245, 246, 247, 248, 116, 251, 252, 253, - /* 1560 */ 399, 255, 256, 257, 258, 259, 260, 261, 262, 263, - /* 1570 */ 264, 265, 266, 267, 268, 269, 270, 271, 272, 381, - /* 1580 */ 33, 116, 33, 12, 13, 116, 36, 116, 12, 13, - /* 1590 */ 33, 33, 116, 22, 396, 217, 116, 33, 424, 412, - /* 1600 */ 116, 13, 412, 116, 394, 298, 381, 36, 454, 38, - /* 1610 */ 116, 467, 545, 545, 545, 545, 454, 399, 490, 396, - /* 1620 */ 441, 396, 424, 475, 36, 454, 454, 324, 529, 529, - /* 1630 */ 550, 516, 82, 116, 532, 454, 414, 54, 301, 68, - /* 1640 */ 442, 491, 444, 20, 469, 395, 20, 480, 217, 424, - /* 1650 */ 232, 485, 404, 480, 471, 404, 213, 395, 20, 396, - /* 1660 */ 47, 396, 451, 116, 451, 116, 189, 442, 448, 444, - /* 1670 */ 395, 111, 396, 116, 116, 395, 448, 451, 448, 448, - /* 1680 */ 116, 113, 408, 395, 407, 395, 395, 489, 110, 406, - /* 1690 */ 492, 395, 395, 20, 496, 497, 498, 499, 500, 501, - /* 1700 */ 1, 503, 388, 52, 392, 388, 508, 392, 510, 480, - /* 1710 */ 20, 444, 514, 515, 489, 404, 20, 492, 19, 470, - /* 1720 */ 404, 496, 497, 498, 499, 500, 501, 404, 503, 20, - /* 1730 */ 397, 404, 397, 508, 404, 510, 20, 38, 404, 514, - /* 1740 */ 515, 20, 461, 404, 455, 404, 381, 395, 404, 388, - /* 1750 */ 424, 395, 53, 54, 384, 424, 388, 384, 480, 236, - /* 1760 */ 442, 396, 63, 64, 65, 66, 424, 68, 484, 424, - /* 1770 */ 424, 424, 424, 424, 424, 424, 115, 424, 402, 20, - /* 1780 */ 442, 482, 442, 479, 221, 477, 215, 220, 217, 424, - /* 1790 */ 402, 395, 309, 538, 308, 476, 538, 469, 317, 206, - /* 1800 */ 442, 444, 541, 537, 540, 536, 538, 442, 318, 444, - /* 1810 */ 319, 302, 297, 114, 528, 381, 117, 535, 326, 323, - /* 1820 */ 249, 250, 251, 321, 296, 527, 462, 20, 462, 469, - /* 1830 */ 396, 558, 396, 125, 533, 299, 265, 266, 267, 268, - /* 1840 */ 269, 270, 271, 462, 397, 552, 551, 402, 149, 442, - /* 1850 */ 402, 531, 442, 462, 489, 442, 381, 492, 424, 442, - /* 1860 */ 198, 496, 497, 498, 499, 500, 501, 442, 503, 442, - /* 1870 */ 495, 396, 402, 459, 455, 510, 442, 115, 444, 514, - /* 1880 */ 515, 402, 513, 198, 442, 456, 420, 455, 115, 396, - /* 1890 */ 402, 442, 442, 194, 442, 196, 442, 402, 199, 424, - /* 1900 */ 442, 22, 442, 204, 0, 442, 442, 35, 395, 402, - /* 1910 */ 442, 386, 37, 383, 442, 442, 40, 442, 387, 444, - /* 1920 */ 442, 389, 223, 489, 442, 388, 492, 442, 472, 403, - /* 1930 */ 496, 497, 498, 499, 500, 501, 430, 503, 481, 442, - /* 1940 */ 426, 442, 442, 381, 510, 442, 442, 442, 514, 515, - /* 1950 */ 442, 379, 442, 442, 0, 0, 418, 418, 396, 418, - /* 1960 */ 0, 426, 47, 0, 489, 36, 242, 492, 36, 36, - /* 1970 */ 36, 496, 497, 498, 499, 500, 501, 502, 503, 504, - /* 1980 */ 505, 77, 78, 79, 463, 242, 424, 0, 84, 85, - /* 1990 */ 86, 242, 36, 36, 90, 242, 463, 36, 0, 95, - /* 2000 */ 96, 97, 98, 381, 442, 101, 444, 488, 0, 105, - /* 2010 */ 106, 107, 108, 0, 0, 36, 36, 0, 396, 22, - /* 2020 */ 0, 36, 237, 0, 381, 223, 0, 223, 217, 224, - /* 2030 */ 215, 0, 0, 0, 211, 210, 0, 0, 157, 396, - /* 2040 */ 51, 51, 0, 36, 0, 0, 424, 36, 54, 0, - /* 2050 */ 51, 489, 0, 47, 492, 0, 0, 0, 496, 497, - /* 2060 */ 498, 499, 500, 501, 442, 503, 444, 424, 0, 51, - /* 2070 */ 0, 0, 0, 0, 0, 175, 36, 0, 175, 0, - /* 2080 */ 0, 0, 0, 0, 0, 442, 0, 444, 381, 0, - /* 2090 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - /* 2100 */ 0, 0, 51, 396, 157, 543, 544, 0, 47, 0, - /* 2110 */ 0, 489, 0, 0, 492, 0, 0, 0, 496, 497, - /* 2120 */ 498, 499, 500, 501, 0, 503, 0, 0, 22, 0, - /* 2130 */ 156, 424, 489, 22, 0, 492, 0, 155, 0, 496, - /* 2140 */ 497, 498, 499, 500, 501, 0, 503, 22, 0, 442, - /* 2150 */ 36, 444, 0, 510, 52, 52, 68, 0, 515, 0, - /* 2160 */ 0, 0, 0, 44, 36, 0, 36, 44, 381, 0, - /* 2170 */ 14, 36, 33, 68, 0, 54, 68, 555, 556, 36, - /* 2180 */ 0, 0, 0, 396, 44, 54, 68, 0, 47, 206, - /* 2190 */ 44, 54, 0, 51, 45, 51, 489, 381, 51, 492, - /* 2200 */ 0, 51, 44, 496, 497, 498, 499, 500, 501, 0, - /* 2210 */ 503, 424, 396, 0, 44, 51, 0, 0, 0, 36, - /* 2220 */ 54, 44, 36, 44, 0, 54, 36, 76, 0, 442, - /* 2230 */ 381, 444, 54, 44, 36, 44, 0, 0, 0, 54, - /* 2240 */ 424, 0, 0, 0, 36, 396, 381, 22, 0, 22, - /* 2250 */ 36, 544, 33, 466, 0, 123, 36, 36, 442, 36, - /* 2260 */ 444, 396, 36, 0, 0, 36, 36, 36, 36, 36, - /* 2270 */ 36, 22, 33, 424, 121, 22, 489, 22, 22, 492, - /* 2280 */ 36, 0, 466, 496, 497, 498, 499, 500, 501, 424, - /* 2290 */ 503, 442, 22, 444, 36, 0, 56, 0, 0, 0, - /* 2300 */ 0, 36, 36, 36, 0, 489, 22, 442, 492, 444, - /* 2310 */ 20, 36, 496, 497, 498, 499, 500, 501, 36, 503, - /* 2320 */ 116, 36, 115, 0, 51, 115, 0, 36, 22, 0, - /* 2330 */ 22, 0, 0, 3, 33, 113, 3, 303, 489, 36, - /* 2340 */ 381, 492, 33, 36, 222, 496, 497, 498, 499, 500, - /* 2350 */ 501, 116, 503, 33, 489, 396, 111, 492, 33, 381, - /* 2360 */ 192, 496, 497, 498, 499, 500, 501, 192, 503, 202, - /* 2370 */ 198, 52, 115, 218, 396, 202, 381, 116, 33, 52, - /* 2380 */ 192, 303, 228, 424, 115, 192, 192, 115, 33, 115, - /* 2390 */ 227, 396, 116, 116, 115, 115, 547, 51, 51, 82, - /* 2400 */ 36, 442, 424, 444, 116, 116, 33, 115, 115, 51, - /* 2410 */ 116, 51, 116, 36, 36, 36, 36, 36, 36, 424, - /* 2420 */ 442, 556, 444, 33, 0, 0, 116, 116, 44, 115, - /* 2430 */ 0, 116, 116, 115, 0, 44, 115, 442, 116, 444, - /* 2440 */ 44, 33, 195, 115, 466, 2, 195, 113, 489, 199, - /* 2450 */ 115, 492, 113, 194, 22, 496, 497, 498, 499, 500, - /* 2460 */ 501, 466, 503, 287, 505, 116, 251, 489, 116, 274, - /* 2470 */ 492, 115, 115, 51, 496, 497, 498, 499, 500, 501, - /* 2480 */ 115, 503, 115, 115, 489, 381, 116, 492, 51, 115, - /* 2490 */ 22, 496, 497, 498, 499, 500, 501, 0, 503, 303, - /* 2500 */ 396, 381, 115, 44, 116, 116, 254, 115, 115, 115, - /* 2510 */ 115, 22, 51, 22, 381, 115, 396, 115, 115, 195, - /* 2520 */ 116, 115, 124, 22, 115, 22, 125, 116, 424, 396, - /* 2530 */ 228, 36, 36, 115, 36, 116, 115, 22, 36, 116, - /* 2540 */ 36, 36, 116, 116, 424, 116, 442, 36, 444, 136, - /* 2550 */ 136, 136, 136, 115, 33, 115, 36, 424, 76, 115, - /* 2560 */ 75, 22, 442, 36, 444, 381, 36, 36, 36, 36, - /* 2570 */ 36, 36, 36, 36, 36, 442, 36, 444, 109, 109, - /* 2580 */ 396, 82, 82, 33, 36, 36, 22, 36, 36, 36, - /* 2590 */ 36, 82, 36, 489, 36, 36, 492, 36, 36, 22, - /* 2600 */ 496, 497, 498, 499, 500, 501, 36, 503, 424, 489, - /* 2610 */ 0, 36, 492, 44, 54, 0, 496, 497, 498, 499, - /* 2620 */ 500, 501, 489, 503, 36, 492, 442, 381, 444, 496, - /* 2630 */ 497, 498, 499, 500, 501, 54, 503, 44, 0, 36, - /* 2640 */ 54, 0, 396, 381, 44, 36, 54, 0, 44, 36, - /* 2650 */ 0, 22, 36, 0, 22, 33, 36, 36, 396, 22, - /* 2660 */ 21, 559, 22, 21, 381, 22, 20, 559, 559, 559, - /* 2670 */ 424, 559, 559, 489, 559, 559, 492, 559, 559, 396, - /* 2680 */ 496, 497, 498, 499, 500, 501, 424, 503, 442, 559, - /* 2690 */ 444, 559, 559, 559, 381, 559, 559, 559, 559, 559, - /* 2700 */ 559, 559, 559, 559, 442, 559, 444, 424, 559, 396, - /* 2710 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, - /* 2720 */ 559, 559, 559, 559, 559, 442, 559, 444, 559, 559, - /* 2730 */ 559, 559, 559, 559, 559, 489, 559, 424, 492, 559, - /* 2740 */ 559, 559, 496, 497, 498, 499, 500, 501, 559, 503, - /* 2750 */ 559, 489, 559, 559, 492, 442, 381, 444, 496, 497, - /* 2760 */ 498, 499, 500, 501, 559, 503, 559, 559, 559, 559, - /* 2770 */ 559, 396, 489, 559, 559, 492, 559, 559, 381, 496, - /* 2780 */ 497, 498, 499, 500, 501, 559, 503, 559, 559, 559, - /* 2790 */ 559, 559, 559, 396, 559, 559, 559, 559, 559, 424, - /* 2800 */ 559, 559, 489, 559, 559, 492, 559, 559, 559, 496, - /* 2810 */ 497, 498, 499, 500, 501, 559, 503, 442, 559, 444, - /* 2820 */ 559, 424, 559, 559, 559, 559, 559, 559, 559, 559, - /* 2830 */ 559, 559, 559, 559, 559, 559, 559, 559, 381, 442, - /* 2840 */ 559, 444, 559, 559, 559, 559, 559, 559, 559, 559, - /* 2850 */ 559, 559, 559, 396, 559, 559, 559, 559, 559, 559, - /* 2860 */ 559, 559, 559, 559, 489, 559, 559, 492, 559, 381, - /* 2870 */ 559, 496, 497, 498, 499, 500, 501, 559, 503, 559, - /* 2880 */ 559, 424, 559, 559, 396, 559, 489, 559, 559, 492, - /* 2890 */ 559, 559, 559, 496, 497, 498, 499, 500, 501, 442, - /* 2900 */ 503, 444, 559, 559, 559, 559, 559, 559, 559, 559, - /* 2910 */ 559, 559, 424, 559, 559, 559, 559, 559, 559, 559, - /* 2920 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, - /* 2930 */ 442, 559, 444, 559, 559, 559, 559, 559, 559, 559, - /* 2940 */ 559, 559, 559, 559, 559, 559, 489, 381, 559, 492, - /* 2950 */ 559, 559, 559, 496, 497, 498, 499, 500, 501, 559, - /* 2960 */ 503, 559, 396, 559, 559, 559, 559, 559, 559, 559, - /* 2970 */ 559, 559, 559, 559, 559, 559, 559, 489, 381, 559, - /* 2980 */ 492, 559, 559, 559, 496, 497, 498, 499, 500, 501, - /* 2990 */ 424, 503, 559, 396, 559, 559, 559, 559, 559, 559, - /* 3000 */ 559, 559, 559, 559, 559, 559, 559, 381, 442, 559, - /* 3010 */ 444, 559, 559, 559, 559, 559, 559, 559, 559, 559, - /* 3020 */ 559, 424, 396, 559, 559, 559, 559, 559, 559, 559, - /* 3030 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 442, - /* 3040 */ 559, 444, 559, 559, 559, 559, 559, 559, 559, 559, - /* 3050 */ 424, 559, 559, 559, 559, 489, 559, 559, 492, 559, - /* 3060 */ 559, 559, 496, 497, 498, 499, 500, 501, 442, 503, - /* 3070 */ 444, 559, 559, 559, 559, 559, 381, 559, 559, 559, - /* 3080 */ 559, 559, 559, 559, 559, 559, 489, 559, 559, 492, - /* 3090 */ 559, 396, 559, 496, 497, 498, 499, 500, 501, 559, - /* 3100 */ 503, 559, 559, 559, 559, 559, 559, 559, 559, 559, - /* 3110 */ 559, 559, 559, 559, 559, 489, 559, 381, 492, 424, - /* 3120 */ 559, 559, 496, 497, 498, 499, 500, 501, 559, 503, - /* 3130 */ 559, 559, 396, 559, 559, 559, 381, 442, 559, 444, + /* 270 */ 270, 271, 272, 273, 191, 192, 524, 391, 526, 54, + /* 280 */ 44, 395, 522, 397, 201, 202, 489, 180, 63, 492, + /* 290 */ 530, 66, 67, 496, 497, 498, 499, 500, 501, 216, + /* 300 */ 503, 218, 0, 506, 0, 508, 509, 510, 548, 549, + /* 310 */ 124, 514, 515, 553, 554, 254, 277, 278, 279, 280, + /* 320 */ 281, 282, 283, 284, 285, 286, 287, 518, 519, 520, + /* 330 */ 440, 522, 523, 443, 444, 252, 253, 254, 424, 256, + /* 340 */ 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, + /* 350 */ 267, 268, 269, 270, 271, 272, 273, 274, 12, 13, + /* 360 */ 20, 20, 381, 20, 395, 18, 20, 380, 22, 382, + /* 370 */ 23, 518, 519, 520, 0, 522, 523, 396, 299, 77, + /* 380 */ 78, 79, 36, 424, 38, 402, 84, 85, 86, 42, + /* 390 */ 43, 155, 90, 46, 435, 436, 495, 95, 96, 97, + /* 400 */ 98, 487, 419, 101, 57, 424, 0, 105, 106, 107, + /* 410 */ 108, 428, 429, 424, 68, 299, 69, 70, 71, 72, + /* 420 */ 73, 75, 521, 442, 455, 444, 457, 21, 82, 395, + /* 430 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 299, + /* 440 */ 196, 12, 13, 14, 252, 486, 487, 424, 74, 20, + /* 450 */ 424, 22, 395, 396, 146, 20, 522, 434, 112, 155, + /* 460 */ 434, 115, 115, 411, 530, 36, 414, 38, 445, 20, + /* 470 */ 489, 445, 415, 492, 170, 486, 487, 496, 497, 498, + /* 480 */ 499, 500, 501, 549, 503, 20, 33, 553, 554, 508, + /* 490 */ 0, 510, 0, 152, 153, 514, 515, 68, 152, 153, + /* 500 */ 115, 154, 405, 311, 312, 313, 314, 315, 316, 317, + /* 510 */ 413, 82, 478, 479, 24, 25, 26, 27, 28, 29, + /* 520 */ 30, 31, 32, 542, 288, 289, 290, 291, 292, 293, + /* 530 */ 294, 295, 296, 36, 395, 396, 193, 191, 192, 231, + /* 540 */ 232, 112, 201, 202, 115, 522, 424, 201, 202, 305, + /* 550 */ 306, 307, 308, 530, 415, 208, 209, 210, 395, 396, + /* 560 */ 213, 422, 216, 20, 218, 292, 293, 294, 295, 296, + /* 570 */ 74, 548, 549, 226, 227, 453, 553, 554, 415, 82, + /* 580 */ 115, 152, 153, 155, 395, 422, 239, 152, 153, 242, + /* 590 */ 73, 0, 245, 246, 247, 248, 249, 254, 252, 253, + /* 600 */ 254, 424, 256, 257, 258, 259, 260, 261, 262, 263, + /* 610 */ 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, + /* 620 */ 191, 192, 445, 145, 146, 147, 148, 149, 150, 151, + /* 630 */ 201, 202, 20, 20, 22, 22, 112, 145, 146, 147, + /* 640 */ 148, 149, 150, 151, 4, 216, 299, 218, 36, 460, + /* 650 */ 461, 127, 128, 129, 130, 131, 132, 133, 134, 135, + /* 660 */ 136, 68, 138, 139, 140, 141, 142, 143, 144, 21, + /* 670 */ 58, 58, 24, 25, 26, 27, 28, 29, 30, 31, + /* 680 */ 32, 252, 253, 254, 299, 256, 257, 258, 259, 260, + /* 690 */ 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, + /* 700 */ 271, 272, 273, 12, 13, 381, 4, 114, 424, 22, + /* 710 */ 117, 20, 145, 22, 20, 112, 149, 289, 290, 291, + /* 720 */ 396, 437, 398, 36, 274, 23, 276, 36, 211, 38, + /* 730 */ 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, + /* 740 */ 4, 138, 139, 140, 141, 142, 143, 144, 424, 125, + /* 750 */ 48, 49, 50, 511, 512, 19, 22, 240, 241, 68, + /* 760 */ 506, 155, 171, 509, 299, 14, 442, 176, 444, 82, + /* 770 */ 36, 20, 424, 82, 38, 184, 323, 8, 9, 186, + /* 780 */ 432, 12, 13, 14, 15, 16, 12, 13, 395, 396, + /* 790 */ 54, 395, 396, 82, 20, 468, 22, 61, 62, 112, + /* 800 */ 473, 453, 381, 112, 68, 424, 115, 495, 415, 274, + /* 810 */ 36, 415, 38, 489, 495, 434, 492, 396, 125, 398, + /* 820 */ 496, 497, 498, 499, 500, 501, 445, 503, 395, 395, + /* 830 */ 396, 36, 508, 521, 510, 228, 395, 396, 514, 515, + /* 840 */ 521, 190, 68, 152, 153, 424, 112, 381, 2, 522, + /* 850 */ 114, 0, 23, 117, 8, 9, 82, 530, 12, 13, + /* 860 */ 14, 15, 16, 442, 402, 444, 8, 9, 395, 396, + /* 870 */ 12, 13, 14, 15, 16, 548, 549, 82, 49, 50, + /* 880 */ 553, 554, 191, 192, 450, 116, 112, 193, 415, 115, + /* 890 */ 428, 450, 201, 202, 288, 289, 290, 291, 292, 293, + /* 900 */ 294, 295, 296, 216, 0, 218, 381, 216, 442, 218, + /* 910 */ 489, 478, 479, 492, 395, 396, 13, 496, 497, 498, + /* 920 */ 499, 500, 501, 33, 503, 416, 152, 153, 277, 508, + /* 930 */ 507, 510, 509, 424, 415, 514, 515, 47, 287, 252, + /* 940 */ 253, 301, 191, 252, 253, 254, 437, 256, 257, 258, + /* 950 */ 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, + /* 960 */ 269, 270, 271, 272, 273, 191, 192, 442, 18, 20, + /* 970 */ 20, 44, 14, 416, 116, 201, 202, 27, 20, 425, + /* 980 */ 30, 424, 375, 376, 377, 82, 146, 147, 38, 20, + /* 990 */ 216, 151, 218, 0, 437, 68, 145, 146, 147, 148, + /* 1000 */ 149, 150, 151, 425, 54, 254, 56, 425, 426, 395, + /* 1010 */ 396, 61, 62, 8, 9, 52, 34, 12, 13, 14, + /* 1020 */ 15, 16, 425, 73, 443, 444, 252, 253, 254, 415, + /* 1030 */ 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, + /* 1040 */ 266, 267, 268, 269, 270, 271, 272, 273, 8, 9, + /* 1050 */ 400, 401, 12, 13, 14, 15, 16, 507, 36, 509, + /* 1060 */ 20, 8, 9, 36, 114, 12, 13, 14, 15, 16, + /* 1070 */ 77, 78, 79, 80, 81, 125, 83, 84, 85, 86, + /* 1080 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, + /* 1090 */ 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, + /* 1100 */ 107, 108, 14, 15, 16, 3, 22, 157, 158, 82, + /* 1110 */ 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, + /* 1120 */ 36, 420, 172, 173, 174, 175, 176, 177, 178, 179, + /* 1130 */ 381, 181, 182, 183, 468, 395, 396, 187, 188, 189, + /* 1140 */ 191, 395, 396, 381, 194, 396, 51, 398, 244, 191, + /* 1150 */ 425, 77, 78, 79, 36, 415, 193, 381, 84, 85, + /* 1160 */ 86, 415, 193, 474, 90, 115, 82, 204, 381, 95, + /* 1170 */ 96, 97, 98, 424, 413, 101, 22, 395, 396, 105, + /* 1180 */ 106, 107, 108, 396, 483, 398, 395, 396, 522, 424, + /* 1190 */ 36, 442, 381, 444, 59, 60, 530, 415, 12, 13, + /* 1200 */ 435, 436, 13, 254, 442, 404, 415, 396, 22, 398, + /* 1210 */ 115, 424, 254, 208, 548, 549, 395, 396, 442, 553, + /* 1220 */ 554, 424, 36, 254, 38, 400, 401, 409, 410, 442, + /* 1230 */ 382, 444, 20, 193, 433, 424, 415, 424, 489, 424, + /* 1240 */ 218, 492, 445, 381, 381, 496, 497, 498, 499, 500, + /* 1250 */ 501, 436, 503, 442, 68, 444, 147, 508, 445, 510, + /* 1260 */ 151, 395, 396, 514, 515, 215, 112, 217, 82, 1, + /* 1270 */ 2, 82, 250, 251, 381, 439, 489, 381, 442, 492, + /* 1280 */ 20, 415, 381, 496, 497, 498, 499, 500, 501, 396, + /* 1290 */ 503, 398, 381, 381, 254, 508, 33, 510, 112, 249, + /* 1300 */ 489, 514, 515, 492, 442, 442, 454, 496, 497, 498, + /* 1310 */ 499, 500, 501, 381, 503, 439, 381, 424, 442, 508, + /* 1320 */ 381, 510, 12, 13, 68, 514, 515, 381, 396, 409, + /* 1330 */ 410, 326, 22, 33, 225, 442, 218, 444, 442, 230, + /* 1340 */ 395, 396, 233, 442, 235, 0, 36, 47, 38, 299, + /* 1350 */ 395, 396, 381, 442, 442, 381, 424, 8, 9, 381, + /* 1360 */ 415, 12, 13, 14, 15, 16, 381, 396, 250, 251, + /* 1370 */ 415, 384, 385, 117, 442, 381, 444, 442, 68, 395, + /* 1380 */ 396, 442, 489, 0, 116, 492, 395, 396, 442, 496, + /* 1390 */ 497, 498, 499, 500, 501, 424, 503, 395, 396, 415, + /* 1400 */ 381, 508, 216, 510, 218, 524, 415, 514, 515, 439, + /* 1410 */ 186, 118, 442, 442, 121, 444, 442, 415, 36, 381, + /* 1420 */ 442, 489, 557, 321, 492, 395, 396, 442, 496, 497, + /* 1430 */ 498, 499, 500, 501, 396, 503, 442, 54, 252, 253, + /* 1440 */ 508, 1, 510, 14, 220, 415, 514, 515, 417, 20, + /* 1450 */ 0, 420, 266, 267, 268, 269, 270, 271, 272, 19, + /* 1460 */ 489, 442, 424, 492, 395, 396, 254, 496, 497, 498, + /* 1470 */ 499, 500, 501, 0, 503, 234, 33, 236, 38, 508, + /* 1480 */ 442, 510, 444, 33, 415, 514, 515, 395, 396, 468, + /* 1490 */ 33, 8, 9, 53, 54, 12, 13, 14, 15, 16, + /* 1500 */ 155, 13, 13, 63, 64, 65, 66, 415, 68, 33, + /* 1510 */ 118, 395, 396, 121, 254, 118, 33, 44, 121, 118, + /* 1520 */ 33, 75, 121, 0, 36, 36, 216, 489, 218, 468, + /* 1530 */ 492, 415, 546, 33, 496, 497, 498, 499, 500, 501, + /* 1540 */ 468, 503, 193, 522, 0, 22, 508, 36, 510, 0, + /* 1550 */ 381, 530, 514, 515, 114, 152, 153, 117, 33, 116, + /* 1560 */ 250, 251, 252, 0, 539, 396, 22, 525, 468, 548, + /* 1570 */ 549, 22, 33, 116, 553, 554, 266, 267, 268, 269, + /* 1580 */ 270, 271, 272, 522, 399, 22, 424, 115, 325, 381, + /* 1590 */ 150, 530, 116, 424, 522, 33, 124, 33, 394, 116, + /* 1600 */ 218, 454, 530, 116, 396, 1, 2, 33, 412, 548, + /* 1610 */ 549, 442, 33, 444, 553, 554, 116, 12, 13, 33, + /* 1620 */ 548, 549, 522, 12, 13, 553, 554, 412, 381, 33, + /* 1630 */ 530, 33, 424, 33, 545, 195, 33, 197, 12, 13, + /* 1640 */ 200, 116, 36, 396, 545, 205, 12, 13, 548, 549, + /* 1650 */ 442, 33, 444, 553, 554, 116, 12, 13, 489, 12, + /* 1660 */ 13, 492, 12, 13, 224, 496, 497, 498, 499, 500, + /* 1670 */ 501, 424, 503, 12, 13, 12, 13, 381, 116, 510, + /* 1680 */ 116, 12, 13, 514, 515, 12, 13, 33, 82, 442, + /* 1690 */ 116, 444, 396, 33, 13, 116, 0, 489, 252, 33, + /* 1700 */ 492, 33, 116, 33, 496, 497, 498, 499, 500, 501, + /* 1710 */ 381, 503, 116, 545, 116, 467, 116, 36, 510, 116, + /* 1720 */ 424, 545, 514, 515, 454, 396, 13, 399, 490, 218, + /* 1730 */ 396, 441, 475, 454, 116, 454, 489, 550, 442, 492, + /* 1740 */ 444, 516, 529, 496, 497, 498, 499, 500, 501, 36, + /* 1750 */ 503, 55, 529, 424, 532, 454, 414, 510, 302, 54, + /* 1760 */ 469, 514, 515, 491, 20, 395, 20, 480, 233, 485, + /* 1770 */ 116, 442, 381, 444, 480, 38, 116, 404, 404, 214, + /* 1780 */ 471, 395, 116, 20, 116, 489, 116, 396, 492, 396, + /* 1790 */ 47, 54, 496, 497, 498, 499, 500, 501, 451, 503, + /* 1800 */ 63, 64, 65, 66, 396, 68, 451, 190, 448, 395, + /* 1810 */ 451, 396, 395, 448, 448, 424, 448, 113, 489, 408, + /* 1820 */ 111, 492, 395, 407, 110, 496, 497, 498, 499, 500, + /* 1830 */ 501, 395, 503, 442, 406, 444, 395, 395, 20, 543, + /* 1840 */ 544, 388, 395, 52, 392, 20, 388, 392, 404, 480, + /* 1850 */ 444, 114, 381, 404, 117, 404, 20, 397, 20, 470, + /* 1860 */ 397, 20, 20, 404, 455, 404, 461, 396, 404, 404, + /* 1870 */ 404, 404, 395, 388, 384, 384, 442, 395, 424, 442, + /* 1880 */ 489, 388, 237, 492, 555, 556, 424, 496, 497, 498, + /* 1890 */ 499, 500, 501, 424, 503, 424, 484, 115, 424, 424, + /* 1900 */ 482, 510, 424, 424, 424, 424, 515, 402, 424, 20, + /* 1910 */ 424, 480, 381, 442, 479, 444, 222, 402, 221, 395, + /* 1920 */ 310, 309, 477, 186, 476, 538, 538, 396, 207, 320, + /* 1930 */ 462, 318, 195, 538, 442, 541, 199, 200, 444, 381, + /* 1940 */ 442, 319, 205, 206, 540, 303, 298, 537, 528, 536, + /* 1950 */ 297, 527, 327, 322, 396, 424, 535, 558, 462, 324, + /* 1960 */ 489, 224, 396, 492, 469, 20, 469, 496, 497, 498, + /* 1970 */ 499, 500, 501, 442, 503, 444, 125, 552, 300, 397, + /* 1980 */ 402, 551, 424, 402, 462, 442, 199, 442, 442, 442, + /* 1990 */ 462, 459, 442, 402, 495, 442, 455, 466, 115, 402, + /* 2000 */ 442, 442, 444, 533, 199, 420, 115, 456, 22, 455, + /* 2010 */ 381, 442, 396, 442, 513, 544, 402, 402, 442, 442, + /* 2020 */ 489, 402, 442, 492, 466, 396, 442, 496, 497, 498, + /* 2030 */ 499, 500, 501, 531, 503, 442, 442, 442, 430, 383, + /* 2040 */ 35, 442, 387, 442, 442, 386, 395, 489, 381, 442, + /* 2050 */ 492, 37, 40, 424, 496, 497, 498, 499, 500, 501, + /* 2060 */ 389, 503, 442, 396, 388, 442, 442, 426, 481, 442, + /* 2070 */ 442, 442, 442, 444, 381, 442, 488, 403, 442, 442, + /* 2080 */ 442, 379, 418, 418, 426, 0, 0, 0, 47, 396, + /* 2090 */ 418, 424, 0, 472, 36, 463, 243, 36, 36, 36, + /* 2100 */ 243, 0, 463, 36, 36, 243, 36, 0, 0, 442, + /* 2110 */ 243, 444, 0, 36, 0, 36, 0, 424, 489, 22, + /* 2120 */ 0, 492, 238, 0, 36, 496, 497, 498, 499, 500, + /* 2130 */ 501, 224, 503, 0, 224, 442, 225, 444, 218, 216, + /* 2140 */ 0, 0, 0, 381, 212, 211, 0, 0, 158, 51, + /* 2150 */ 51, 0, 0, 36, 0, 36, 489, 54, 396, 492, + /* 2160 */ 0, 51, 0, 496, 497, 498, 499, 500, 501, 47, + /* 2170 */ 503, 0, 0, 0, 0, 51, 547, 0, 0, 0, + /* 2180 */ 0, 0, 489, 176, 381, 492, 424, 51, 0, 496, + /* 2190 */ 497, 498, 499, 500, 501, 36, 503, 0, 505, 396, + /* 2200 */ 176, 0, 0, 381, 442, 0, 444, 0, 0, 0, + /* 2210 */ 0, 0, 0, 0, 0, 0, 0, 0, 396, 52, + /* 2220 */ 22, 0, 47, 556, 0, 0, 0, 424, 466, 0, + /* 2230 */ 0, 0, 0, 381, 0, 0, 0, 0, 0, 0, + /* 2240 */ 0, 0, 158, 0, 0, 442, 424, 444, 396, 0, + /* 2250 */ 157, 489, 156, 0, 492, 22, 52, 0, 496, 497, + /* 2260 */ 498, 499, 500, 501, 442, 503, 444, 381, 22, 466, + /* 2270 */ 47, 68, 0, 0, 68, 0, 424, 0, 36, 0, + /* 2280 */ 0, 36, 396, 0, 36, 0, 68, 0, 68, 33, + /* 2290 */ 0, 44, 489, 0, 442, 492, 444, 381, 36, 496, + /* 2300 */ 497, 498, 499, 500, 501, 54, 503, 44, 54, 54, + /* 2310 */ 424, 489, 396, 44, 492, 44, 51, 36, 496, 497, + /* 2320 */ 498, 499, 500, 501, 14, 503, 44, 51, 442, 51, + /* 2330 */ 444, 45, 0, 0, 0, 44, 207, 0, 0, 51, + /* 2340 */ 424, 489, 0, 51, 492, 0, 0, 0, 496, 497, + /* 2350 */ 498, 499, 500, 501, 36, 503, 54, 381, 442, 44, + /* 2360 */ 444, 0, 36, 54, 44, 76, 0, 36, 54, 44, + /* 2370 */ 0, 36, 396, 54, 44, 489, 0, 0, 492, 381, + /* 2380 */ 121, 123, 496, 497, 498, 499, 500, 501, 0, 503, + /* 2390 */ 0, 0, 381, 0, 396, 22, 36, 0, 36, 36, + /* 2400 */ 424, 22, 33, 36, 36, 489, 22, 396, 492, 0, + /* 2410 */ 36, 36, 496, 497, 498, 499, 500, 501, 442, 503, + /* 2420 */ 444, 36, 424, 36, 22, 36, 0, 33, 36, 22, + /* 2430 */ 0, 36, 36, 22, 56, 424, 0, 22, 0, 36, + /* 2440 */ 442, 381, 444, 0, 0, 0, 36, 0, 36, 36, + /* 2450 */ 0, 22, 20, 442, 36, 444, 396, 116, 36, 36, + /* 2460 */ 0, 193, 0, 115, 115, 489, 0, 51, 492, 36, + /* 2470 */ 22, 22, 496, 497, 498, 499, 500, 501, 228, 503, + /* 2480 */ 219, 229, 0, 223, 424, 0, 3, 489, 193, 193, + /* 2490 */ 492, 193, 193, 199, 496, 497, 498, 499, 500, 501, + /* 2500 */ 489, 503, 442, 492, 444, 33, 203, 496, 497, 498, + /* 2510 */ 499, 500, 501, 115, 503, 203, 116, 116, 51, 381, + /* 2520 */ 115, 115, 36, 36, 116, 52, 304, 113, 52, 33, + /* 2530 */ 111, 33, 33, 116, 396, 115, 33, 82, 381, 115, + /* 2540 */ 115, 51, 33, 116, 116, 3, 115, 36, 33, 489, + /* 2550 */ 115, 51, 492, 396, 36, 116, 496, 497, 498, 499, + /* 2560 */ 500, 501, 424, 503, 36, 36, 36, 116, 381, 36, + /* 2570 */ 304, 304, 36, 116, 116, 51, 33, 0, 0, 115, + /* 2580 */ 442, 424, 444, 396, 44, 116, 116, 0, 288, 115, + /* 2590 */ 115, 44, 115, 0, 116, 196, 115, 44, 33, 442, + /* 2600 */ 381, 444, 113, 275, 200, 113, 2, 22, 252, 116, + /* 2610 */ 116, 424, 115, 51, 51, 396, 115, 115, 22, 255, + /* 2620 */ 115, 115, 0, 116, 116, 115, 51, 489, 115, 442, + /* 2630 */ 492, 444, 115, 196, 496, 497, 498, 499, 500, 501, + /* 2640 */ 115, 503, 116, 424, 44, 124, 489, 195, 22, 492, + /* 2650 */ 115, 381, 196, 496, 497, 498, 499, 500, 501, 115, + /* 2660 */ 503, 442, 116, 444, 126, 115, 396, 115, 22, 115, + /* 2670 */ 115, 115, 22, 125, 22, 229, 489, 116, 381, 492, + /* 2680 */ 36, 36, 115, 496, 497, 498, 499, 500, 501, 116, + /* 2690 */ 503, 36, 116, 396, 424, 115, 36, 116, 36, 116, + /* 2700 */ 36, 36, 116, 137, 115, 137, 137, 137, 489, 33, + /* 2710 */ 115, 492, 442, 36, 444, 496, 497, 498, 499, 500, + /* 2720 */ 501, 424, 503, 115, 22, 76, 75, 22, 36, 36, + /* 2730 */ 36, 36, 36, 36, 36, 36, 36, 36, 82, 442, + /* 2740 */ 381, 444, 36, 109, 109, 82, 33, 36, 36, 22, + /* 2750 */ 36, 36, 36, 36, 82, 396, 36, 36, 36, 489, + /* 2760 */ 36, 381, 492, 22, 36, 36, 496, 497, 498, 499, + /* 2770 */ 500, 501, 0, 503, 36, 44, 396, 54, 0, 36, + /* 2780 */ 54, 44, 0, 424, 36, 0, 489, 54, 44, 492, + /* 2790 */ 36, 44, 0, 496, 497, 498, 499, 500, 501, 54, + /* 2800 */ 503, 442, 381, 444, 424, 36, 0, 36, 22, 0, + /* 2810 */ 22, 36, 33, 36, 20, 22, 21, 396, 22, 22, + /* 2820 */ 21, 559, 442, 381, 444, 559, 559, 559, 559, 559, + /* 2830 */ 559, 559, 559, 559, 559, 559, 559, 559, 396, 559, + /* 2840 */ 559, 559, 559, 559, 559, 424, 559, 559, 489, 559, + /* 2850 */ 559, 492, 559, 559, 559, 496, 497, 498, 499, 500, + /* 2860 */ 501, 559, 503, 442, 559, 444, 424, 559, 559, 489, + /* 2870 */ 559, 559, 492, 559, 559, 559, 496, 497, 498, 499, + /* 2880 */ 500, 501, 559, 503, 442, 381, 444, 559, 559, 559, + /* 2890 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 2900 */ 396, 381, 559, 559, 559, 559, 559, 559, 559, 559, + /* 2910 */ 489, 559, 559, 492, 559, 559, 396, 496, 497, 498, + /* 2920 */ 499, 500, 501, 559, 503, 559, 559, 559, 424, 559, + /* 2930 */ 559, 489, 559, 559, 492, 559, 559, 559, 496, 497, + /* 2940 */ 498, 499, 500, 501, 424, 503, 442, 559, 444, 559, + /* 2950 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 2960 */ 559, 559, 442, 381, 444, 559, 559, 559, 559, 559, + /* 2970 */ 559, 559, 559, 559, 559, 559, 559, 559, 396, 559, + /* 2980 */ 559, 559, 381, 559, 559, 559, 559, 559, 559, 559, + /* 2990 */ 559, 559, 559, 489, 559, 559, 492, 396, 559, 559, + /* 3000 */ 496, 497, 498, 499, 500, 501, 424, 503, 559, 489, + /* 3010 */ 559, 559, 492, 559, 559, 559, 496, 497, 498, 499, + /* 3020 */ 500, 501, 559, 503, 442, 424, 444, 559, 559, 559, + /* 3030 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 3040 */ 559, 559, 559, 442, 559, 444, 559, 559, 559, 559, + /* 3050 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 3060 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 3070 */ 559, 489, 559, 559, 492, 559, 559, 559, 496, 497, + /* 3080 */ 498, 499, 500, 501, 559, 503, 559, 559, 559, 559, + /* 3090 */ 489, 559, 559, 492, 559, 559, 559, 496, 497, 498, + /* 3100 */ 499, 500, 501, 559, 503, 559, 559, 559, 559, 559, + /* 3110 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 3120 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 3130 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, /* 3140 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, - /* 3150 */ 559, 396, 559, 559, 559, 559, 559, 381, 559, 559, - /* 3160 */ 424, 559, 559, 559, 559, 559, 559, 559, 559, 559, - /* 3170 */ 559, 559, 396, 559, 559, 559, 559, 559, 442, 424, - /* 3180 */ 444, 559, 559, 559, 489, 559, 559, 492, 559, 559, - /* 3190 */ 559, 496, 497, 498, 499, 500, 501, 442, 503, 444, - /* 3200 */ 424, 559, 559, 559, 559, 559, 559, 559, 559, 559, - /* 3210 */ 559, 559, 559, 559, 559, 559, 559, 559, 442, 559, - /* 3220 */ 444, 559, 559, 381, 559, 489, 559, 559, 492, 559, - /* 3230 */ 559, 559, 496, 497, 498, 499, 500, 501, 396, 503, - /* 3240 */ 559, 559, 559, 559, 489, 559, 381, 492, 559, 559, - /* 3250 */ 559, 496, 497, 498, 499, 500, 501, 559, 503, 559, - /* 3260 */ 559, 396, 559, 381, 559, 489, 424, 559, 492, 559, - /* 3270 */ 559, 559, 496, 497, 498, 499, 500, 501, 396, 503, - /* 3280 */ 559, 559, 559, 559, 442, 559, 444, 559, 559, 424, - /* 3290 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, - /* 3300 */ 559, 559, 559, 559, 559, 559, 424, 442, 559, 444, - /* 3310 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, - /* 3320 */ 559, 559, 559, 559, 442, 559, 444, 559, 559, 559, - /* 3330 */ 559, 489, 559, 559, 492, 559, 559, 559, 496, 497, - /* 3340 */ 498, 499, 500, 501, 559, 503, 559, 559, 559, 559, - /* 3350 */ 559, 559, 559, 559, 489, 559, 559, 492, 559, 559, - /* 3360 */ 559, 496, 497, 498, 499, 500, 501, 559, 503, 559, - /* 3370 */ 559, 489, 559, 559, 492, 559, 559, 559, 496, 497, - /* 3380 */ 498, 499, 500, 501, 559, 503, 378, 378, 378, 378, + /* 3150 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 3160 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 3170 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 3180 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, + /* 3190 */ 559, 559, 559, 559, 559, 559, 559, 559, 559, 378, + /* 3200 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3210 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3220 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3230 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3240 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3250 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3260 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3270 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3280 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3290 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3300 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3310 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3320 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3330 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3340 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3350 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3360 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3370 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 3380 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3390 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3400 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3410 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, @@ -1291,283 +1263,255 @@ static const YYCODETYPE yy_lookahead[] = { /* 3450 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3460 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3470 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3480 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3490 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3500 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3510 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3520 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3530 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3540 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3550 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3560 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3570 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3580 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3590 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3600 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3610 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3620 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3630 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3640 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3650 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3660 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3670 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3680 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3690 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3700 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3710 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3720 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3730 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3740 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3750 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, - /* 3760 */ 378, 378, 378, 378, + /* 3480 */ 378, 378, 378, }; -#define YY_SHIFT_COUNT (976) +#define YY_SHIFT_COUNT (977) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2653) +#define YY_SHIFT_MAX (2809) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 1307, 0, 261, 0, 523, 523, 523, 523, 523, 523, - /* 10 */ 523, 523, 523, 523, 523, 523, 784, 1045, 1045, 1306, - /* 20 */ 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, - /* 30 */ 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, - /* 40 */ 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, - /* 50 */ 443, 466, 131, 198, 132, 185, 132, 132, 198, 198, - /* 60 */ 132, 1182, 132, 260, 1182, 367, 132, 184, 1571, 134, - /* 70 */ 134, 259, 259, 221, 1571, 1571, 614, 614, 134, 135, - /* 80 */ 135, 457, 182, 182, 143, 727, 259, 259, 259, 259, - /* 90 */ 259, 259, 259, 259, 259, 259, 259, 300, 649, 815, - /* 100 */ 259, 259, 647, 184, 259, 300, 259, 184, 259, 259, - /* 110 */ 259, 259, 184, 259, 259, 259, 184, 259, 184, 184, - /* 120 */ 184, 216, 216, 436, 436, 1139, 535, 14, 213, 375, - /* 130 */ 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, - /* 140 */ 375, 375, 375, 375, 375, 375, 375, 375, 574, 619, - /* 150 */ 135, 457, 644, 644, 524, 268, 268, 268, 826, 826, - /* 160 */ 40, 74, 524, 647, 184, 609, 184, 184, 620, 184, - /* 170 */ 184, 847, 184, 847, 847, 788, 1032, 436, 436, 436, - /* 180 */ 436, 436, 436, 1699, 1904, 69, 58, 100, 100, 15, - /* 190 */ 159, 161, 258, 565, 356, 196, 810, 724, 724, 972, - /* 200 */ 57, 781, 781, 781, 703, 781, 699, 934, 1233, 1049, - /* 210 */ 1343, 671, 779, 1185, 1185, 1203, 1279, 1279, 1081, 1325, - /* 220 */ 311, 1185, 74, 1337, 1583, 1623, 1626, 1418, 647, 1626, - /* 230 */ 647, 1443, 1623, 1638, 1613, 1638, 1613, 1477, 1623, 1638, - /* 240 */ 1623, 1613, 1477, 1477, 1477, 1568, 1560, 1623, 1623, 1578, - /* 250 */ 1623, 1623, 1623, 1673, 1651, 1673, 1651, 1626, 647, 647, - /* 260 */ 1690, 647, 1696, 1709, 647, 1696, 647, 1716, 647, 1721, - /* 270 */ 647, 647, 1623, 647, 1673, 184, 184, 184, 184, 184, - /* 280 */ 184, 184, 184, 184, 184, 184, 1623, 1032, 1032, 1673, - /* 290 */ 847, 847, 847, 1523, 1661, 1626, 221, 1759, 1563, 1567, - /* 300 */ 1690, 221, 1337, 1623, 847, 1483, 1486, 1483, 1486, 1481, - /* 310 */ 1593, 1483, 1491, 1490, 1509, 1337, 1515, 1528, 1492, 1496, - /* 320 */ 1502, 1638, 1807, 1708, 1536, 1696, 221, 221, 1486, 847, - /* 330 */ 847, 847, 847, 1486, 847, 1662, 221, 847, 1721, 221, - /* 340 */ 1762, 847, 1685, 1721, 221, 788, 221, 1638, 847, 847, - /* 350 */ 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, - /* 360 */ 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, - /* 370 */ 1773, 847, 1623, 221, 1879, 1872, 1875, 1876, 1673, 3386, - /* 380 */ 3386, 3386, 3386, 3386, 3386, 3386, 3386, 3386, 3386, 3386, - /* 390 */ 3386, 39, 1221, 21, 817, 693, 757, 1015, 674, 957, - /* 400 */ 974, 583, 861, 889, 889, 889, 889, 889, 889, 889, - /* 410 */ 889, 889, 959, 67, 256, 22, 964, 964, 204, 97, - /* 420 */ 648, 771, 218, 218, 339, 631, 218, 1168, 428, 831, - /* 430 */ 858, 1002, 1002, 1004, 32, 681, 1004, 1004, 1004, 1332, - /* 440 */ 1216, 1257, 1239, 1336, 1245, 691, 1371, 1244, 1271, 1322, - /* 450 */ 1324, 1372, 1355, 1362, 337, 1439, 1441, 1446, 1195, 1287, - /* 460 */ 1354, 994, 1363, 1374, 1402, 1422, 1313, 1088, 1303, 1433, - /* 470 */ 1440, 1465, 1474, 1469, 1292, 1471, 1411, 1476, 1480, 1484, - /* 480 */ 1487, 1494, 1459, 1498, 1512, 1516, 1518, 1522, 1524, 1527, - /* 490 */ 1529, 1534, 1576, 1517, 1547, 1549, 1557, 1558, 1564, 1134, - /* 500 */ 1387, 1378, 1431, 1467, 1588, 1550, 1489, 1954, 1955, 1960, - /* 510 */ 1915, 1963, 1929, 1724, 1932, 1933, 1934, 1743, 1987, 1956, - /* 520 */ 1957, 1749, 1961, 1998, 2008, 1753, 2013, 1979, 2014, 1980, - /* 530 */ 2017, 1997, 2020, 1985, 1785, 2023, 1802, 2026, 1804, 1805, - /* 540 */ 1811, 1815, 2031, 2032, 2033, 1823, 1825, 2036, 2037, 1881, - /* 550 */ 1989, 1990, 2042, 2007, 2044, 2045, 2011, 1994, 2049, 1999, - /* 560 */ 2052, 2006, 2055, 2056, 2057, 2018, 2068, 2070, 2071, 2072, - /* 570 */ 2073, 2074, 1900, 2040, 2077, 1903, 2079, 2080, 2081, 2082, - /* 580 */ 2083, 2084, 2086, 2089, 2090, 2091, 2092, 2093, 2094, 2095, - /* 590 */ 2096, 2097, 2098, 2099, 2100, 2101, 2051, 2107, 2061, 2109, - /* 600 */ 2110, 2112, 2113, 2115, 2116, 2117, 2124, 2126, 2106, 2127, - /* 610 */ 1947, 2129, 1974, 2136, 1982, 2138, 2145, 2111, 2102, 2125, - /* 620 */ 2103, 2134, 2088, 2148, 2105, 2114, 2152, 2108, 2157, 2118, - /* 630 */ 2159, 2160, 2128, 2121, 2119, 2161, 2130, 2131, 2123, 2162, - /* 640 */ 2135, 2137, 2140, 2165, 2143, 2169, 2141, 2146, 2139, 2142, - /* 650 */ 2144, 2156, 2147, 2174, 2149, 2158, 2180, 2181, 2182, 2187, - /* 660 */ 2170, 1983, 2192, 2142, 2150, 2200, 2142, 2164, 2209, 2213, - /* 670 */ 2151, 2216, 2217, 2183, 2166, 2177, 2218, 2186, 2171, 2179, - /* 680 */ 2224, 2190, 2178, 2189, 2228, 2198, 2185, 2191, 2236, 2237, - /* 690 */ 2238, 2241, 2242, 2243, 2132, 2153, 2208, 2225, 2248, 2227, - /* 700 */ 2214, 2220, 2221, 2223, 2226, 2229, 2230, 2231, 2232, 2219, - /* 710 */ 2239, 2233, 2234, 2249, 2244, 2254, 2253, 2263, 2255, 2264, - /* 720 */ 2256, 2240, 2281, 2270, 2258, 2295, 2297, 2298, 2265, 2299, - /* 730 */ 2266, 2300, 2267, 2304, 2284, 2290, 2275, 2282, 2285, 2204, - /* 740 */ 2207, 2323, 2168, 2154, 2163, 2210, 2122, 2142, 2273, 2326, - /* 750 */ 2175, 2291, 2306, 2329, 2155, 2308, 2188, 2172, 2331, 2332, - /* 760 */ 2193, 2167, 2194, 2173, 2330, 2301, 2034, 2257, 2235, 2269, - /* 770 */ 2261, 2303, 2307, 2272, 2319, 2222, 2327, 2245, 2276, 2309, - /* 780 */ 2320, 2277, 2274, 2279, 2280, 2288, 2325, 2346, 2347, 2292, - /* 790 */ 2345, 2078, 2317, 2289, 2355, 2293, 2364, 2294, 2296, 2333, - /* 800 */ 2373, 2196, 2377, 2378, 2379, 2380, 2381, 2382, 2310, 2311, - /* 810 */ 2358, 2176, 2390, 2360, 2424, 2425, 2314, 2384, 2315, 2316, - /* 820 */ 2318, 2321, 2247, 2328, 2430, 2391, 2250, 2434, 2322, 2335, - /* 830 */ 2251, 2396, 2259, 2408, 2334, 2195, 2339, 2443, 2432, 2215, - /* 840 */ 2349, 2352, 2356, 2357, 2365, 2367, 2368, 2370, 2422, 2374, - /* 850 */ 2387, 2437, 2388, 2468, 2252, 2392, 2393, 2497, 2389, 2394, - /* 860 */ 2324, 2459, 2395, 2398, 2489, 2400, 2142, 2461, 2402, 2403, - /* 870 */ 2404, 2406, 2409, 2401, 2491, 2501, 2503, 2302, 2411, 2495, - /* 880 */ 2496, 2418, 2419, 2498, 2421, 2423, 2502, 2356, 2426, 2504, - /* 890 */ 2357, 2427, 2505, 2365, 2429, 2511, 2367, 2413, 2414, 2415, - /* 900 */ 2416, 2438, 2521, 2440, 2520, 2444, 2521, 2521, 2515, 2482, - /* 910 */ 2485, 2539, 2527, 2530, 2531, 2532, 2533, 2534, 2535, 2536, - /* 920 */ 2537, 2538, 2540, 2499, 2469, 2500, 2470, 2550, 2548, 2549, - /* 930 */ 2551, 2564, 2552, 2553, 2554, 2509, 2219, 2556, 2239, 2558, - /* 940 */ 2559, 2561, 2562, 2577, 2570, 2610, 2575, 2560, 2569, 2615, - /* 950 */ 2588, 2581, 2593, 2638, 2603, 2586, 2600, 2641, 2609, 2592, - /* 960 */ 2604, 2647, 2613, 2650, 2629, 2616, 2653, 2632, 2622, 2620, - /* 970 */ 2621, 2637, 2639, 2640, 2643, 2642, 2646, + /* 0 */ 347, 0, 83, 0, 346, 346, 346, 346, 346, 346, + /* 10 */ 346, 346, 346, 346, 346, 346, 429, 691, 691, 774, + /* 20 */ 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, + /* 30 */ 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, + /* 40 */ 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, + /* 50 */ 116, 465, 1050, 88, 140, 385, 140, 140, 88, 88, + /* 60 */ 140, 1186, 140, 950, 1186, 79, 140, 51, 1310, 341, + /* 70 */ 341, 102, 102, 87, 1310, 1310, 702, 702, 341, 5, + /* 80 */ 5, 435, 220, 220, 61, 186, 102, 102, 102, 102, + /* 90 */ 102, 102, 102, 102, 102, 102, 102, 340, 449, 543, + /* 100 */ 102, 102, 496, 51, 102, 340, 102, 51, 102, 102, + /* 110 */ 102, 102, 51, 102, 102, 102, 51, 102, 51, 51, + /* 120 */ 51, 39, 39, 524, 524, 603, 1074, 236, 648, 687, + /* 130 */ 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, + /* 140 */ 687, 687, 687, 687, 687, 687, 687, 687, 21, 53, + /* 150 */ 5, 435, 1135, 1135, 497, 694, 694, 694, 450, 450, + /* 160 */ 374, 903, 497, 496, 51, 624, 51, 51, 535, 51, + /* 170 */ 51, 711, 51, 711, 711, 693, 982, 524, 524, 524, + /* 180 */ 524, 524, 524, 1440, 302, 406, 1040, 606, 606, 1005, + /* 190 */ 192, 244, 273, 612, 428, 751, 958, 29, 29, 829, + /* 200 */ 343, 1084, 1084, 1084, 963, 1084, 949, 969, 613, 927, + /* 210 */ 1429, 567, 1224, 1212, 1212, 1260, 1189, 1189, 1102, 890, + /* 220 */ 640, 1212, 903, 1456, 1705, 1744, 1746, 1535, 496, 1746, + /* 230 */ 496, 1565, 1744, 1763, 1743, 1763, 1743, 1617, 1744, 1763, + /* 240 */ 1744, 1743, 1617, 1617, 1617, 1704, 1709, 1744, 1744, 1714, + /* 250 */ 1744, 1744, 1744, 1818, 1791, 1818, 1791, 1746, 496, 496, + /* 260 */ 1825, 496, 1836, 1838, 496, 1836, 496, 1841, 496, 1842, + /* 270 */ 496, 496, 1744, 496, 1818, 51, 51, 51, 51, 51, + /* 280 */ 51, 51, 51, 51, 51, 51, 1744, 982, 982, 1818, + /* 290 */ 711, 711, 711, 1645, 1782, 1746, 87, 1889, 1694, 1697, + /* 300 */ 1825, 87, 1456, 1744, 711, 1610, 1612, 1610, 1612, 1613, + /* 310 */ 1721, 1610, 1609, 1622, 1642, 1456, 1648, 1653, 1625, 1635, + /* 320 */ 1631, 1763, 1945, 1851, 1678, 1836, 87, 87, 1612, 711, + /* 330 */ 711, 711, 711, 1612, 711, 1787, 87, 711, 1842, 87, + /* 340 */ 1883, 711, 1805, 1842, 87, 693, 87, 1763, 711, 711, + /* 350 */ 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + /* 360 */ 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + /* 370 */ 1891, 711, 1744, 87, 1986, 2005, 2014, 2012, 1818, 3105, + /* 380 */ 3105, 3105, 3105, 3105, 3105, 3105, 3105, 3105, 3105, 3105, + /* 390 */ 3105, 993, 1737, 490, 736, 1483, 769, 858, 85, 846, + /* 400 */ 1349, 492, 851, 1053, 1053, 1053, 1053, 1053, 1053, 1053, + /* 410 */ 1053, 1053, 478, 49, 1109, 15, 210, 210, 517, 593, + /* 420 */ 591, 225, 607, 607, 1022, 1118, 607, 304, 734, 1154, + /* 430 */ 308, 840, 840, 1088, 1268, 651, 1088, 1088, 1088, 1383, + /* 440 */ 904, 13, 1473, 1300, 107, 1345, 1450, 1293, 1392, 1397, + /* 450 */ 1401, 795, 1488, 1489, 1523, 1544, 1549, 1563, 1241, 1443, + /* 460 */ 1457, 1256, 1476, 1487, 1500, 1525, 1403, 453, 1263, 1539, + /* 470 */ 1562, 1564, 1604, 1574, 1446, 1579, 1095, 1586, 1596, 1598, + /* 480 */ 1600, 1603, 1605, 1611, 1626, 1634, 1644, 1647, 1650, 1661, + /* 490 */ 1663, 1669, 1673, 1618, 1654, 1660, 1666, 1668, 1670, 1472, + /* 500 */ 1027, 1382, 1511, 1681, 1713, 1606, 1696, 2085, 2086, 2087, + /* 510 */ 2041, 2092, 2058, 1853, 2061, 2062, 2063, 1857, 2101, 2067, + /* 520 */ 2068, 1862, 2070, 2107, 2108, 1867, 2112, 2077, 2114, 2079, + /* 530 */ 2116, 2097, 2120, 2088, 1884, 2123, 1907, 2133, 1910, 1911, + /* 540 */ 1920, 1923, 2140, 2141, 2142, 1932, 1934, 2146, 2147, 1990, + /* 550 */ 2098, 2099, 2151, 2117, 2152, 2154, 2119, 2103, 2160, 2110, + /* 560 */ 2162, 2122, 2171, 2172, 2173, 2124, 2174, 2177, 2178, 2179, + /* 570 */ 2180, 2181, 2007, 2159, 2197, 2024, 2201, 2202, 2205, 2207, + /* 580 */ 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, + /* 590 */ 2224, 2225, 2226, 2229, 2230, 2231, 2136, 2188, 2175, 2232, + /* 600 */ 2234, 2235, 2236, 2237, 2238, 2239, 2240, 2241, 2198, 2221, + /* 610 */ 2084, 2243, 2093, 2244, 2096, 2249, 2253, 2233, 2167, 2246, + /* 620 */ 2204, 2257, 2203, 2272, 2206, 2242, 2273, 2218, 2275, 2220, + /* 630 */ 2277, 2279, 2245, 2251, 2247, 2280, 2248, 2254, 2263, 2283, + /* 640 */ 2262, 2255, 2269, 2285, 2281, 2287, 2223, 2271, 2256, 2265, + /* 650 */ 2276, 2310, 2278, 2290, 2286, 2282, 2293, 2332, 2333, 2334, + /* 660 */ 2291, 2129, 2337, 2265, 2288, 2338, 2265, 2292, 2342, 2345, + /* 670 */ 2289, 2346, 2347, 2318, 2302, 2315, 2361, 2326, 2309, 2320, + /* 680 */ 2366, 2331, 2314, 2325, 2370, 2335, 2319, 2330, 2376, 2377, + /* 690 */ 2388, 2390, 2391, 2393, 2258, 2259, 2360, 2373, 2397, 2379, + /* 700 */ 2362, 2363, 2367, 2368, 2374, 2375, 2385, 2387, 2389, 2369, + /* 710 */ 2394, 2392, 2395, 2384, 2396, 2409, 2402, 2426, 2407, 2430, + /* 720 */ 2411, 2378, 2436, 2415, 2403, 2438, 2443, 2444, 2410, 2445, + /* 730 */ 2412, 2447, 2413, 2450, 2429, 2432, 2418, 2422, 2423, 2341, + /* 740 */ 2348, 2460, 2268, 2252, 2250, 2349, 2260, 2265, 2416, 2462, + /* 750 */ 2295, 2433, 2448, 2466, 2261, 2449, 2296, 2294, 2482, 2485, + /* 760 */ 2298, 2303, 2299, 2312, 2483, 2472, 2222, 2398, 2400, 2405, + /* 770 */ 2401, 2486, 2487, 2406, 2473, 2414, 2476, 2419, 2408, 2496, + /* 780 */ 2498, 2417, 2420, 2424, 2425, 2427, 2499, 2467, 2490, 2431, + /* 790 */ 2503, 2266, 2455, 2428, 2509, 2435, 2511, 2439, 2451, 2542, + /* 800 */ 2515, 2267, 2518, 2528, 2529, 2530, 2533, 2536, 2457, 2458, + /* 810 */ 2500, 2300, 2543, 2524, 2577, 2578, 2464, 2540, 2469, 2470, + /* 820 */ 2474, 2475, 2399, 2477, 2587, 2547, 2404, 2593, 2478, 2481, + /* 830 */ 2437, 2553, 2452, 2565, 2489, 2328, 2492, 2604, 2585, 2356, + /* 840 */ 2493, 2494, 2497, 2501, 2502, 2505, 2506, 2507, 2562, 2510, + /* 850 */ 2513, 2563, 2508, 2596, 2364, 2517, 2525, 2622, 2526, 2535, + /* 860 */ 2456, 2600, 2544, 2521, 2626, 2538, 2550, 2265, 2575, 2552, + /* 870 */ 2554, 2546, 2555, 2556, 2548, 2646, 2650, 2652, 2446, 2561, + /* 880 */ 2644, 2645, 2567, 2573, 2655, 2580, 2576, 2660, 2497, 2581, + /* 890 */ 2662, 2501, 2583, 2664, 2502, 2586, 2665, 2505, 2566, 2568, + /* 900 */ 2569, 2570, 2589, 2676, 2595, 2677, 2608, 2676, 2676, 2702, + /* 910 */ 2649, 2651, 2705, 2692, 2693, 2694, 2695, 2696, 2697, 2698, + /* 920 */ 2699, 2700, 2701, 2706, 2656, 2634, 2663, 2635, 2713, 2711, + /* 930 */ 2712, 2714, 2727, 2715, 2716, 2717, 2672, 2369, 2720, 2394, + /* 940 */ 2721, 2722, 2724, 2728, 2741, 2729, 2772, 2738, 2723, 2731, + /* 950 */ 2778, 2743, 2726, 2737, 2782, 2748, 2733, 2744, 2785, 2754, + /* 960 */ 2745, 2747, 2792, 2769, 2806, 2786, 2771, 2809, 2788, 2779, + /* 970 */ 2775, 2777, 2793, 2795, 2796, 2797, 2799, 2794, }; #define YY_REDUCE_COUNT (390) -#define YY_REDUCE_MIN (-503) -#define YY_REDUCE_MAX (2882) +#define YY_REDUCE_MIN (-514) +#define YY_REDUCE_MAX (2601) static const short yy_reduce_ofst[] = { - /* 0 */ -184, -339, -148, 158, 253, 418, 448, 636, 678, 714, - /* 10 */ 985, 1198, 1225, 572, 1365, 1434, 1475, 1562, 1622, 1643, - /* 20 */ 1707, 1787, 1816, 1849, 1865, 1959, 1978, 1995, 2104, 2120, - /* 30 */ 2133, 2184, 2246, 2262, 2283, 2313, 2375, 2397, 2457, 2488, - /* 40 */ 2566, 2597, 2626, 2695, 2736, 2755, 2776, 2842, 2865, 2882, - /* 50 */ -341, 162, -150, -14, 334, 570, 677, 863, -335, -64, - /* 60 */ 883, -85, -356, -363, -401, 50, 190, 193, -427, -439, - /* 70 */ -81, -378, -103, -193, 52, 54, -387, -331, 234, -389, - /* 80 */ 293, 98, -67, 410, -275, 362, 417, 432, 444, 454, - /* 90 */ -394, -223, 462, 479, 527, 597, -175, -78, -380, 353, - /* 100 */ 701, 734, 487, 452, 746, 446, 758, 236, 767, 769, - /* 110 */ 776, 794, 578, 806, 837, 842, 409, 848, 476, 774, - /* 120 */ 661, -503, -503, -315, -409, -239, 102, -35, 504, -27, - /* 130 */ -3, 229, 243, 549, 652, 698, 799, 819, 853, 912, - /* 140 */ 918, 940, 942, 948, 952, 953, 958, 960, 486, -153, - /* 150 */ 573, 209, 560, 690, 705, -153, 16, 305, 676, 733, - /* 160 */ 553, -244, 838, 823, 60, 530, 580, 900, 359, 160, - /* 170 */ 719, 320, 903, 901, 913, 939, 962, -415, 744, 829, - /* 180 */ 1053, 1062, 1066, 685, 875, 1110, 1040, 977, 977, 951, - /* 190 */ 966, 983, 980, 1161, 977, 1174, 1174, 1187, 1190, 1210, - /* 200 */ 1154, 1067, 1068, 1069, 1144, 1070, 1174, 1162, 1218, 1128, - /* 210 */ 1223, 1179, 1148, 1171, 1172, 1174, 1099, 1100, 1080, 1115, - /* 220 */ 1102, 1181, 1222, 1175, 1150, 1250, 1167, 1166, 1248, 1173, - /* 230 */ 1251, 1183, 1262, 1263, 1211, 1265, 1213, 1220, 1275, 1276, - /* 240 */ 1280, 1226, 1228, 1230, 1231, 1274, 1277, 1288, 1290, 1283, - /* 250 */ 1291, 1296, 1297, 1314, 1312, 1317, 1315, 1229, 1311, 1316, - /* 260 */ 1267, 1323, 1333, 1249, 1327, 1335, 1330, 1281, 1334, 1289, - /* 270 */ 1339, 1341, 1352, 1344, 1361, 1326, 1331, 1342, 1345, 1346, - /* 280 */ 1347, 1348, 1349, 1350, 1351, 1353, 1356, 1370, 1373, 1368, - /* 290 */ 1318, 1338, 1340, 1284, 1299, 1278, 1376, 1304, 1308, 1319, - /* 300 */ 1357, 1388, 1328, 1396, 1358, 1255, 1364, 1258, 1366, 1261, - /* 310 */ 1264, 1268, 1266, 1269, 1282, 1360, 1286, 1298, 1273, 1293, - /* 320 */ 1295, 1436, 1375, 1301, 1320, 1447, 1445, 1448, 1381, 1407, - /* 330 */ 1410, 1413, 1417, 1391, 1425, 1414, 1470, 1427, 1419, 1479, - /* 340 */ 1369, 1442, 1429, 1432, 1488, 1466, 1495, 1493, 1449, 1450, - /* 350 */ 1452, 1454, 1458, 1460, 1463, 1464, 1468, 1472, 1473, 1478, - /* 360 */ 1482, 1485, 1497, 1499, 1500, 1503, 1504, 1505, 1508, 1510, - /* 370 */ 1506, 1511, 1513, 1507, 1530, 1525, 1531, 1532, 1537, 1456, - /* 380 */ 1514, 1519, 1457, 1521, 1533, 1538, 1539, 1535, 1541, 1526, - /* 390 */ 1572, + /* 0 */ -240, -366, -203, -19, 324, 421, 749, 787, 811, 893, + /* 10 */ 932, 971, 1038, 1169, 1208, 1247, -317, 1296, 1329, 1391, + /* 20 */ 1471, 1531, 1558, 1629, 1667, 1693, 1762, 1803, 1822, 1852, + /* 30 */ 1886, 1916, 1976, 1998, 2011, 2060, 2138, 2157, 2187, 2219, + /* 40 */ 2270, 2297, 2359, 2380, 2421, 2442, 2504, 2520, 2582, 2601, + /* 50 */ -311, 23, 327, -363, 666, 1021, 1061, 1072, -191, -147, + /* 60 */ 1100, -383, -514, -232, -375, -504, -66, -41, -426, -441, + /* 70 */ -437, 139, 163, -17, -423, -353, -384, -333, -214, -308, + /* 80 */ 348, -110, -224, -114, -352, 57, 393, 396, 473, 519, + /* 90 */ -206, 434, 614, 740, 746, 782, 441, 34, 189, -31, + /* 100 */ 791, 821, -402, -11, 866, 433, 945, -332, 955, 984, + /* 110 */ 991, 1002, 509, 1030, 1069, 1092, 26, 1116, 765, 381, + /* 120 */ 557, 242, 242, 582, -278, -261, 97, -248, -13, -338, + /* 130 */ 466, 525, 762, 776, 862, 863, 896, 901, 911, 912, + /* 140 */ 935, 939, 946, 974, 978, 985, 994, 1019, -196, -99, + /* 150 */ 122, 581, 650, 825, 818, -99, 312, 319, 423, 550, + /* 160 */ 462, 52, 920, 801, -86, 701, 177, 797, 254, 284, + /* 170 */ 815, 836, 813, 876, 970, 1031, 987, -425, -414, 554, + /* 180 */ 578, 597, 725, 689, 761, 848, 852, 881, 881, 865, + /* 190 */ 986, 1025, 1042, 1185, 881, 1162, 1162, 1196, 1215, 1204, + /* 200 */ 1147, 1089, 1099, 1168, 1248, 1176, 1162, 1270, 1328, 1238, + /* 210 */ 1334, 1290, 1257, 1279, 1281, 1162, 1213, 1223, 1187, 1225, + /* 220 */ 1222, 1301, 1342, 1291, 1272, 1370, 1287, 1284, 1373, 1294, + /* 230 */ 1374, 1309, 1386, 1393, 1347, 1408, 1355, 1360, 1414, 1415, + /* 240 */ 1417, 1359, 1365, 1366, 1368, 1411, 1416, 1427, 1436, 1428, + /* 250 */ 1441, 1442, 1447, 1453, 1452, 1458, 1455, 1369, 1444, 1449, + /* 260 */ 1406, 1451, 1460, 1389, 1459, 1463, 1461, 1405, 1464, 1409, + /* 270 */ 1465, 1466, 1477, 1467, 1485, 1454, 1462, 1469, 1474, 1475, + /* 280 */ 1478, 1479, 1480, 1481, 1484, 1486, 1482, 1490, 1491, 1493, + /* 290 */ 1434, 1437, 1492, 1412, 1418, 1431, 1505, 1435, 1445, 1448, + /* 300 */ 1494, 1515, 1495, 1524, 1498, 1387, 1468, 1388, 1496, 1394, + /* 310 */ 1404, 1395, 1410, 1413, 1421, 1497, 1420, 1424, 1399, 1425, + /* 320 */ 1430, 1566, 1499, 1470, 1502, 1582, 1578, 1581, 1522, 1543, + /* 330 */ 1545, 1546, 1547, 1528, 1550, 1532, 1591, 1553, 1541, 1597, + /* 340 */ 1501, 1559, 1551, 1554, 1614, 1585, 1615, 1616, 1569, 1571, + /* 350 */ 1576, 1577, 1580, 1584, 1593, 1594, 1595, 1599, 1601, 1602, + /* 360 */ 1607, 1620, 1623, 1624, 1627, 1628, 1630, 1633, 1636, 1637, + /* 370 */ 1608, 1638, 1651, 1619, 1656, 1659, 1655, 1671, 1676, 1621, + /* 380 */ 1641, 1588, 1587, 1632, 1639, 1664, 1665, 1658, 1672, 1674, + /* 390 */ 1702, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 10 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 20 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 30 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 40 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 50 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 60 */ 2580, 2204, 2204, 2536, 2204, 2204, 2204, 2204, 2204, 2204, - /* 70 */ 2204, 2204, 2204, 2308, 2204, 2204, 2204, 2204, 2204, 2543, - /* 80 */ 2543, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 90 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 100 */ 2204, 2204, 2310, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 110 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 120 */ 2204, 2832, 2204, 2958, 2621, 2204, 2204, 2861, 2204, 2204, - /* 130 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 140 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2844, - /* 150 */ 2204, 2204, 2281, 2281, 2204, 2844, 2844, 2844, 2804, 2804, - /* 160 */ 2308, 2204, 2204, 2310, 2204, 2623, 2204, 2204, 2204, 2204, - /* 170 */ 2204, 2204, 2204, 2204, 2204, 2452, 2234, 2204, 2204, 2204, - /* 180 */ 2204, 2204, 2204, 2606, 2204, 2204, 2890, 2836, 2837, 2952, - /* 190 */ 2204, 2893, 2855, 2204, 2850, 2204, 2204, 2204, 2204, 2204, - /* 200 */ 2880, 2204, 2204, 2204, 2204, 2204, 2204, 2548, 2204, 2649, - /* 210 */ 2204, 2395, 2600, 2204, 2204, 2204, 2204, 2204, 2936, 2834, - /* 220 */ 2874, 2204, 2204, 2884, 2204, 2204, 2204, 2637, 2310, 2204, - /* 230 */ 2310, 2593, 2531, 2204, 2541, 2204, 2541, 2538, 2204, 2204, - /* 240 */ 2204, 2541, 2538, 2538, 2538, 2384, 2380, 2204, 2204, 2378, - /* 250 */ 2204, 2204, 2204, 2204, 2264, 2204, 2264, 2204, 2310, 2310, - /* 260 */ 2204, 2310, 2204, 2204, 2310, 2204, 2310, 2204, 2310, 2204, - /* 270 */ 2310, 2310, 2204, 2310, 2204, 2204, 2204, 2204, 2204, 2204, - /* 280 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 290 */ 2204, 2204, 2204, 2635, 2616, 2204, 2308, 2204, 2604, 2602, - /* 300 */ 2204, 2308, 2884, 2204, 2204, 2906, 2901, 2906, 2901, 2920, - /* 310 */ 2916, 2906, 2925, 2922, 2886, 2884, 2867, 2863, 2955, 2942, - /* 320 */ 2938, 2204, 2204, 2872, 2870, 2204, 2308, 2308, 2901, 2204, - /* 330 */ 2204, 2204, 2204, 2901, 2204, 2204, 2308, 2204, 2204, 2308, - /* 340 */ 2204, 2204, 2204, 2204, 2308, 2204, 2308, 2204, 2204, 2204, - /* 350 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 360 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 370 */ 2414, 2204, 2204, 2308, 2204, 2236, 2238, 2248, 2204, 2595, - /* 380 */ 2958, 2621, 2626, 2576, 2576, 2455, 2455, 2958, 2455, 2311, - /* 390 */ 2209, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 400 */ 2204, 2204, 2204, 2919, 2918, 2755, 2204, 2808, 2807, 2806, - /* 410 */ 2797, 2754, 2409, 2204, 2204, 2204, 2753, 2752, 2204, 2204, - /* 420 */ 2204, 2204, 2399, 2396, 2204, 2204, 2423, 2204, 2204, 2204, - /* 430 */ 2204, 2567, 2566, 2746, 2204, 2204, 2747, 2745, 2744, 2204, - /* 440 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 450 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 460 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2939, 2943, 2204, - /* 470 */ 2204, 2204, 2833, 2204, 2204, 2204, 2725, 2204, 2204, 2204, - /* 480 */ 2204, 2204, 2693, 2688, 2679, 2670, 2685, 2676, 2664, 2682, - /* 490 */ 2673, 2661, 2658, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 500 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 510 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 520 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 530 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 540 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2537, - /* 550 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 560 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 570 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 580 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 590 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 600 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 610 */ 2204, 2204, 2204, 2204, 2552, 2204, 2204, 2204, 2204, 2204, - /* 620 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 630 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 640 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2253, 2732, - /* 650 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 660 */ 2204, 2204, 2204, 2735, 2204, 2204, 2736, 2204, 2204, 2204, - /* 670 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 680 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 690 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 700 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2355, - /* 710 */ 2354, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 720 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 730 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2737, - /* 740 */ 2204, 2204, 2204, 2204, 2620, 2204, 2204, 2727, 2204, 2204, - /* 750 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 760 */ 2204, 2204, 2204, 2204, 2935, 2887, 2204, 2204, 2204, 2204, - /* 770 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 780 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2725, 2204, - /* 790 */ 2917, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2933, 2204, - /* 800 */ 2937, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2843, 2839, - /* 810 */ 2204, 2204, 2835, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 820 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 830 */ 2204, 2204, 2204, 2794, 2204, 2204, 2204, 2828, 2204, 2204, - /* 840 */ 2204, 2204, 2451, 2450, 2449, 2448, 2204, 2204, 2204, 2204, - /* 850 */ 2204, 2204, 2737, 2204, 2740, 2204, 2204, 2204, 2204, 2204, - /* 860 */ 2204, 2204, 2204, 2204, 2204, 2204, 2724, 2204, 2779, 2778, - /* 870 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 880 */ 2204, 2445, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 890 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2429, 2427, 2426, - /* 900 */ 2425, 2204, 2462, 2204, 2204, 2204, 2458, 2457, 2204, 2204, - /* 910 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 920 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2329, 2204, 2204, - /* 930 */ 2204, 2204, 2204, 2204, 2204, 2204, 2321, 2204, 2320, 2204, - /* 940 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 950 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, - /* 960 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2204, 2233, 2204, - /* 970 */ 2204, 2204, 2204, 2204, 2204, 2204, 2204, + /* 0 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 10 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 20 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 30 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 40 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 50 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 60 */ 2581, 2205, 2205, 2537, 2205, 2205, 2205, 2205, 2205, 2205, + /* 70 */ 2205, 2205, 2205, 2309, 2205, 2205, 2205, 2205, 2205, 2544, + /* 80 */ 2544, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 90 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 100 */ 2205, 2205, 2311, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 110 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 120 */ 2205, 2833, 2205, 2959, 2622, 2205, 2205, 2862, 2205, 2205, + /* 130 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 140 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2845, + /* 150 */ 2205, 2205, 2282, 2282, 2205, 2845, 2845, 2845, 2805, 2805, + /* 160 */ 2309, 2205, 2205, 2311, 2205, 2624, 2205, 2205, 2205, 2205, + /* 170 */ 2205, 2205, 2205, 2205, 2205, 2453, 2235, 2205, 2205, 2205, + /* 180 */ 2205, 2205, 2205, 2607, 2205, 2205, 2891, 2837, 2838, 2953, + /* 190 */ 2205, 2894, 2856, 2205, 2851, 2205, 2205, 2205, 2205, 2205, + /* 200 */ 2881, 2205, 2205, 2205, 2205, 2205, 2205, 2549, 2205, 2650, + /* 210 */ 2205, 2396, 2601, 2205, 2205, 2205, 2205, 2205, 2937, 2835, + /* 220 */ 2875, 2205, 2205, 2885, 2205, 2205, 2205, 2638, 2311, 2205, + /* 230 */ 2311, 2594, 2532, 2205, 2542, 2205, 2542, 2539, 2205, 2205, + /* 240 */ 2205, 2542, 2539, 2539, 2539, 2385, 2381, 2205, 2205, 2379, + /* 250 */ 2205, 2205, 2205, 2205, 2265, 2205, 2265, 2205, 2311, 2311, + /* 260 */ 2205, 2311, 2205, 2205, 2311, 2205, 2311, 2205, 2311, 2205, + /* 270 */ 2311, 2311, 2205, 2311, 2205, 2205, 2205, 2205, 2205, 2205, + /* 280 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 290 */ 2205, 2205, 2205, 2636, 2617, 2205, 2309, 2205, 2605, 2603, + /* 300 */ 2205, 2309, 2885, 2205, 2205, 2907, 2902, 2907, 2902, 2921, + /* 310 */ 2917, 2907, 2926, 2923, 2887, 2885, 2868, 2864, 2956, 2943, + /* 320 */ 2939, 2205, 2205, 2873, 2871, 2205, 2309, 2309, 2902, 2205, + /* 330 */ 2205, 2205, 2205, 2902, 2205, 2205, 2309, 2205, 2205, 2309, + /* 340 */ 2205, 2205, 2205, 2205, 2309, 2205, 2309, 2205, 2205, 2205, + /* 350 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 360 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 370 */ 2415, 2205, 2205, 2309, 2205, 2237, 2239, 2249, 2205, 2596, + /* 380 */ 2959, 2622, 2627, 2577, 2577, 2456, 2456, 2959, 2456, 2312, + /* 390 */ 2210, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 400 */ 2205, 2205, 2205, 2920, 2919, 2756, 2205, 2809, 2808, 2807, + /* 410 */ 2798, 2755, 2410, 2205, 2205, 2205, 2754, 2753, 2205, 2205, + /* 420 */ 2205, 2205, 2400, 2397, 2205, 2205, 2424, 2205, 2205, 2205, + /* 430 */ 2205, 2568, 2567, 2747, 2205, 2205, 2748, 2746, 2745, 2205, + /* 440 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 450 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 460 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2940, 2944, 2205, + /* 470 */ 2205, 2205, 2834, 2205, 2205, 2205, 2726, 2205, 2205, 2205, + /* 480 */ 2205, 2205, 2694, 2689, 2680, 2671, 2686, 2677, 2665, 2683, + /* 490 */ 2674, 2662, 2659, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 500 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 510 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 520 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 530 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 540 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2538, + /* 550 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 560 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 570 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 580 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 590 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 600 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 610 */ 2205, 2205, 2205, 2205, 2553, 2205, 2205, 2205, 2205, 2205, + /* 620 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 630 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 640 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2254, 2733, + /* 650 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 660 */ 2205, 2205, 2205, 2736, 2205, 2205, 2737, 2205, 2205, 2205, + /* 670 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 680 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 690 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 700 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2356, + /* 710 */ 2355, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 720 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 730 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2738, + /* 740 */ 2205, 2205, 2205, 2205, 2621, 2205, 2205, 2728, 2205, 2205, + /* 750 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 760 */ 2205, 2205, 2205, 2205, 2936, 2888, 2205, 2205, 2205, 2205, + /* 770 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 780 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2726, 2205, + /* 790 */ 2918, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2934, 2205, + /* 800 */ 2938, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2844, 2840, + /* 810 */ 2205, 2205, 2836, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 820 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 830 */ 2205, 2205, 2205, 2795, 2205, 2205, 2205, 2829, 2205, 2205, + /* 840 */ 2205, 2205, 2452, 2451, 2450, 2449, 2205, 2205, 2205, 2205, + /* 850 */ 2205, 2205, 2738, 2205, 2741, 2205, 2205, 2205, 2205, 2205, + /* 860 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2725, 2205, 2780, + /* 870 */ 2779, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 880 */ 2205, 2205, 2446, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 890 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2430, 2428, + /* 900 */ 2427, 2426, 2205, 2463, 2205, 2205, 2205, 2459, 2458, 2205, + /* 910 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 920 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2330, 2205, + /* 930 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2322, 2205, 2321, + /* 940 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 950 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, + /* 960 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2234, + /* 970 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1700,7 +1644,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* BWLIMIT => nothing */ 0, /* START => nothing */ 0, /* TIMESTAMP => nothing */ - 327, /* END => ABORT */ + 328, /* END => ABORT */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ @@ -1713,6 +1657,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* NK_EQ => nothing */ 0, /* USING => nothing */ 0, /* TAGS => nothing */ + 328, /* FILE => ABORT */ 0, /* BOOL => nothing */ 0, /* TINYINT => nothing */ 0, /* SMALLINT => nothing */ @@ -1772,7 +1717,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* VNODES => nothing */ 0, /* ALIVE => nothing */ 0, /* VIEWS => nothing */ - 327, /* VIEW => ABORT */ + 328, /* VIEW => ABORT */ 0, /* COMPACTS => nothing */ 0, /* NORMAL => nothing */ 0, /* CHILD => nothing */ @@ -1815,7 +1760,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* PAUSE => nothing */ 0, /* RESUME => nothing */ 0, /* PRIMARY => nothing */ - 327, /* KEY => ABORT */ + 328, /* KEY => ABORT */ 0, /* TRIGGER => nothing */ 0, /* AT_ONCE => nothing */ 0, /* WINDOW_CLOSE => nothing */ @@ -1879,7 +1824,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* LEFT => nothing */ 0, /* RIGHT => nothing */ 0, /* OUTER => nothing */ - 327, /* SEMI => ABORT */ + 328, /* SEMI => ABORT */ 0, /* ANTI => nothing */ 0, /* ASOF => nothing */ 0, /* WINDOW => nothing */ @@ -1915,53 +1860,52 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ABORT => nothing */ - 327, /* AFTER => ABORT */ - 327, /* ATTACH => ABORT */ - 327, /* BEFORE => ABORT */ - 327, /* BEGIN => ABORT */ - 327, /* BITAND => ABORT */ - 327, /* BITNOT => ABORT */ - 327, /* BITOR => ABORT */ - 327, /* BLOCKS => ABORT */ - 327, /* CHANGE => ABORT */ - 327, /* COMMA => ABORT */ - 327, /* CONCAT => ABORT */ - 327, /* CONFLICT => ABORT */ - 327, /* COPY => ABORT */ - 327, /* DEFERRED => ABORT */ - 327, /* DELIMITERS => ABORT */ - 327, /* DETACH => ABORT */ - 327, /* DIVIDE => ABORT */ - 327, /* DOT => ABORT */ - 327, /* EACH => ABORT */ - 327, /* FAIL => ABORT */ - 327, /* FILE => ABORT */ - 327, /* FOR => ABORT */ - 327, /* GLOB => ABORT */ - 327, /* ID => ABORT */ - 327, /* IMMEDIATE => ABORT */ - 327, /* IMPORT => ABORT */ - 327, /* INITIALLY => ABORT */ - 327, /* INSTEAD => ABORT */ - 327, /* ISNULL => ABORT */ - 327, /* MODULES => ABORT */ - 327, /* NK_BITNOT => ABORT */ - 327, /* NK_SEMI => ABORT */ - 327, /* NOTNULL => ABORT */ - 327, /* OF => ABORT */ - 327, /* PLUS => ABORT */ - 327, /* PRIVILEGE => ABORT */ - 327, /* RAISE => ABORT */ - 327, /* RESTRICT => ABORT */ - 327, /* ROW => ABORT */ - 327, /* STAR => ABORT */ - 327, /* STATEMENT => ABORT */ - 327, /* STRICT => ABORT */ - 327, /* STRING => ABORT */ - 327, /* TIMES => ABORT */ - 327, /* VALUES => ABORT */ - 327, /* VARIABLE => ABORT */ - 327, /* WAL => ABORT */ + 328, /* AFTER => ABORT */ + 328, /* ATTACH => ABORT */ + 328, /* BEFORE => ABORT */ + 328, /* BEGIN => ABORT */ + 328, /* BITAND => ABORT */ + 328, /* BITNOT => ABORT */ + 328, /* BITOR => ABORT */ + 328, /* BLOCKS => ABORT */ + 328, /* CHANGE => ABORT */ + 328, /* COMMA => ABORT */ + 328, /* CONCAT => ABORT */ + 328, /* CONFLICT => ABORT */ + 328, /* COPY => ABORT */ + 328, /* DEFERRED => ABORT */ + 328, /* DELIMITERS => ABORT */ + 328, /* DETACH => ABORT */ + 328, /* DIVIDE => ABORT */ + 328, /* DOT => ABORT */ + 328, /* EACH => ABORT */ + 328, /* FAIL => ABORT */ + 328, /* FOR => ABORT */ + 328, /* GLOB => ABORT */ + 328, /* ID => ABORT */ + 328, /* IMMEDIATE => ABORT */ + 328, /* IMPORT => ABORT */ + 328, /* INITIALLY => ABORT */ + 328, /* INSTEAD => ABORT */ + 328, /* ISNULL => ABORT */ + 328, /* MODULES => ABORT */ + 328, /* NK_BITNOT => ABORT */ + 328, /* NK_SEMI => ABORT */ + 328, /* NOTNULL => ABORT */ + 328, /* OF => ABORT */ + 328, /* PLUS => ABORT */ + 328, /* PRIVILEGE => ABORT */ + 328, /* RAISE => ABORT */ + 328, /* RESTRICT => ABORT */ + 328, /* ROW => ABORT */ + 328, /* STAR => ABORT */ + 328, /* STATEMENT => ABORT */ + 328, /* STRICT => ABORT */ + 328, /* STRING => ABORT */ + 328, /* TIMES => ABORT */ + 328, /* VALUES => ABORT */ + 328, /* VARIABLE => ABORT */ + 328, /* WAL => ABORT */ 0, /* ENCODE => nothing */ 0, /* COMPRESS => nothing */ 0, /* LEVEL => nothing */ @@ -2179,229 +2123,229 @@ static const char *const yyTokenName[] = { /* 123 */ "NK_EQ", /* 124 */ "USING", /* 125 */ "TAGS", - /* 126 */ "BOOL", - /* 127 */ "TINYINT", - /* 128 */ "SMALLINT", - /* 129 */ "INT", - /* 130 */ "INTEGER", - /* 131 */ "BIGINT", - /* 132 */ "FLOAT", - /* 133 */ "DOUBLE", - /* 134 */ "BINARY", - /* 135 */ "NCHAR", - /* 136 */ "UNSIGNED", - /* 137 */ "JSON", - /* 138 */ "VARCHAR", - /* 139 */ "MEDIUMBLOB", - /* 140 */ "BLOB", - /* 141 */ "VARBINARY", - /* 142 */ "GEOMETRY", - /* 143 */ "DECIMAL", - /* 144 */ "COMMENT", - /* 145 */ "MAX_DELAY", - /* 146 */ "WATERMARK", - /* 147 */ "ROLLUP", - /* 148 */ "TTL", - /* 149 */ "SMA", - /* 150 */ "DELETE_MARK", - /* 151 */ "FIRST", - /* 152 */ "LAST", - /* 153 */ "SHOW", - /* 154 */ "FULL", - /* 155 */ "PRIVILEGES", - /* 156 */ "DATABASES", - /* 157 */ "TABLES", - /* 158 */ "STABLES", - /* 159 */ "MNODES", - /* 160 */ "QNODES", - /* 161 */ "ARBGROUPS", - /* 162 */ "FUNCTIONS", - /* 163 */ "INDEXES", - /* 164 */ "ACCOUNTS", - /* 165 */ "APPS", - /* 166 */ "CONNECTIONS", - /* 167 */ "LICENCES", - /* 168 */ "GRANTS", - /* 169 */ "LOGS", - /* 170 */ "MACHINES", - /* 171 */ "ENCRYPTIONS", - /* 172 */ "QUERIES", - /* 173 */ "SCORES", - /* 174 */ "TOPICS", - /* 175 */ "VARIABLES", - /* 176 */ "BNODES", - /* 177 */ "SNODES", - /* 178 */ "TRANSACTIONS", - /* 179 */ "DISTRIBUTED", - /* 180 */ "CONSUMERS", - /* 181 */ "SUBSCRIPTIONS", - /* 182 */ "VNODES", - /* 183 */ "ALIVE", - /* 184 */ "VIEWS", - /* 185 */ "VIEW", - /* 186 */ "COMPACTS", - /* 187 */ "NORMAL", - /* 188 */ "CHILD", - /* 189 */ "LIKE", - /* 190 */ "TBNAME", - /* 191 */ "QTAGS", - /* 192 */ "AS", - /* 193 */ "SYSTEM", - /* 194 */ "TSMA", - /* 195 */ "INTERVAL", - /* 196 */ "RECURSIVE", - /* 197 */ "TSMAS", - /* 198 */ "FUNCTION", - /* 199 */ "INDEX", - /* 200 */ "COUNT", - /* 201 */ "LAST_ROW", - /* 202 */ "META", - /* 203 */ "ONLY", - /* 204 */ "TOPIC", - /* 205 */ "CONSUMER", - /* 206 */ "GROUP", - /* 207 */ "DESC", - /* 208 */ "DESCRIBE", - /* 209 */ "RESET", - /* 210 */ "QUERY", - /* 211 */ "CACHE", - /* 212 */ "EXPLAIN", - /* 213 */ "ANALYZE", - /* 214 */ "VERBOSE", - /* 215 */ "NK_BOOL", - /* 216 */ "RATIO", - /* 217 */ "NK_FLOAT", - /* 218 */ "OUTPUTTYPE", - /* 219 */ "AGGREGATE", - /* 220 */ "BUFSIZE", - /* 221 */ "LANGUAGE", - /* 222 */ "REPLACE", - /* 223 */ "STREAM", - /* 224 */ "INTO", - /* 225 */ "PAUSE", - /* 226 */ "RESUME", - /* 227 */ "PRIMARY", - /* 228 */ "KEY", - /* 229 */ "TRIGGER", - /* 230 */ "AT_ONCE", - /* 231 */ "WINDOW_CLOSE", - /* 232 */ "IGNORE", - /* 233 */ "EXPIRED", - /* 234 */ "FILL_HISTORY", - /* 235 */ "UPDATE", - /* 236 */ "SUBTABLE", - /* 237 */ "UNTREATED", - /* 238 */ "KILL", - /* 239 */ "CONNECTION", - /* 240 */ "TRANSACTION", - /* 241 */ "BALANCE", - /* 242 */ "VGROUP", - /* 243 */ "LEADER", - /* 244 */ "MERGE", - /* 245 */ "REDISTRIBUTE", - /* 246 */ "SPLIT", - /* 247 */ "DELETE", - /* 248 */ "INSERT", - /* 249 */ "NK_BIN", - /* 250 */ "NK_HEX", - /* 251 */ "NULL", - /* 252 */ "NK_QUESTION", - /* 253 */ "NK_ALIAS", - /* 254 */ "NK_ARROW", - /* 255 */ "ROWTS", - /* 256 */ "QSTART", - /* 257 */ "QEND", - /* 258 */ "QDURATION", - /* 259 */ "WSTART", - /* 260 */ "WEND", - /* 261 */ "WDURATION", - /* 262 */ "IROWTS", - /* 263 */ "ISFILLED", - /* 264 */ "CAST", - /* 265 */ "NOW", - /* 266 */ "TODAY", - /* 267 */ "TIMEZONE", - /* 268 */ "CLIENT_VERSION", - /* 269 */ "SERVER_VERSION", - /* 270 */ "SERVER_STATUS", - /* 271 */ "CURRENT_USER", - /* 272 */ "CASE", - /* 273 */ "WHEN", - /* 274 */ "THEN", - /* 275 */ "ELSE", - /* 276 */ "BETWEEN", - /* 277 */ "IS", - /* 278 */ "NK_LT", - /* 279 */ "NK_GT", - /* 280 */ "NK_LE", - /* 281 */ "NK_GE", - /* 282 */ "NK_NE", - /* 283 */ "MATCH", - /* 284 */ "NMATCH", - /* 285 */ "CONTAINS", - /* 286 */ "IN", - /* 287 */ "JOIN", - /* 288 */ "INNER", - /* 289 */ "LEFT", - /* 290 */ "RIGHT", - /* 291 */ "OUTER", - /* 292 */ "SEMI", - /* 293 */ "ANTI", - /* 294 */ "ASOF", - /* 295 */ "WINDOW", - /* 296 */ "WINDOW_OFFSET", - /* 297 */ "JLIMIT", - /* 298 */ "SELECT", - /* 299 */ "NK_HINT", - /* 300 */ "DISTINCT", - /* 301 */ "WHERE", - /* 302 */ "PARTITION", - /* 303 */ "BY", - /* 304 */ "SESSION", - /* 305 */ "STATE_WINDOW", - /* 306 */ "EVENT_WINDOW", - /* 307 */ "COUNT_WINDOW", - /* 308 */ "SLIDING", - /* 309 */ "FILL", - /* 310 */ "VALUE", - /* 311 */ "VALUE_F", - /* 312 */ "NONE", - /* 313 */ "PREV", - /* 314 */ "NULL_F", - /* 315 */ "LINEAR", - /* 316 */ "NEXT", - /* 317 */ "HAVING", - /* 318 */ "RANGE", - /* 319 */ "EVERY", - /* 320 */ "ORDER", - /* 321 */ "SLIMIT", - /* 322 */ "SOFFSET", - /* 323 */ "LIMIT", - /* 324 */ "OFFSET", - /* 325 */ "ASC", - /* 326 */ "NULLS", - /* 327 */ "ABORT", - /* 328 */ "AFTER", - /* 329 */ "ATTACH", - /* 330 */ "BEFORE", - /* 331 */ "BEGIN", - /* 332 */ "BITAND", - /* 333 */ "BITNOT", - /* 334 */ "BITOR", - /* 335 */ "BLOCKS", - /* 336 */ "CHANGE", - /* 337 */ "COMMA", - /* 338 */ "CONCAT", - /* 339 */ "CONFLICT", - /* 340 */ "COPY", - /* 341 */ "DEFERRED", - /* 342 */ "DELIMITERS", - /* 343 */ "DETACH", - /* 344 */ "DIVIDE", - /* 345 */ "DOT", - /* 346 */ "EACH", - /* 347 */ "FAIL", - /* 348 */ "FILE", + /* 126 */ "FILE", + /* 127 */ "BOOL", + /* 128 */ "TINYINT", + /* 129 */ "SMALLINT", + /* 130 */ "INT", + /* 131 */ "INTEGER", + /* 132 */ "BIGINT", + /* 133 */ "FLOAT", + /* 134 */ "DOUBLE", + /* 135 */ "BINARY", + /* 136 */ "NCHAR", + /* 137 */ "UNSIGNED", + /* 138 */ "JSON", + /* 139 */ "VARCHAR", + /* 140 */ "MEDIUMBLOB", + /* 141 */ "BLOB", + /* 142 */ "VARBINARY", + /* 143 */ "GEOMETRY", + /* 144 */ "DECIMAL", + /* 145 */ "COMMENT", + /* 146 */ "MAX_DELAY", + /* 147 */ "WATERMARK", + /* 148 */ "ROLLUP", + /* 149 */ "TTL", + /* 150 */ "SMA", + /* 151 */ "DELETE_MARK", + /* 152 */ "FIRST", + /* 153 */ "LAST", + /* 154 */ "SHOW", + /* 155 */ "FULL", + /* 156 */ "PRIVILEGES", + /* 157 */ "DATABASES", + /* 158 */ "TABLES", + /* 159 */ "STABLES", + /* 160 */ "MNODES", + /* 161 */ "QNODES", + /* 162 */ "ARBGROUPS", + /* 163 */ "FUNCTIONS", + /* 164 */ "INDEXES", + /* 165 */ "ACCOUNTS", + /* 166 */ "APPS", + /* 167 */ "CONNECTIONS", + /* 168 */ "LICENCES", + /* 169 */ "GRANTS", + /* 170 */ "LOGS", + /* 171 */ "MACHINES", + /* 172 */ "ENCRYPTIONS", + /* 173 */ "QUERIES", + /* 174 */ "SCORES", + /* 175 */ "TOPICS", + /* 176 */ "VARIABLES", + /* 177 */ "BNODES", + /* 178 */ "SNODES", + /* 179 */ "TRANSACTIONS", + /* 180 */ "DISTRIBUTED", + /* 181 */ "CONSUMERS", + /* 182 */ "SUBSCRIPTIONS", + /* 183 */ "VNODES", + /* 184 */ "ALIVE", + /* 185 */ "VIEWS", + /* 186 */ "VIEW", + /* 187 */ "COMPACTS", + /* 188 */ "NORMAL", + /* 189 */ "CHILD", + /* 190 */ "LIKE", + /* 191 */ "TBNAME", + /* 192 */ "QTAGS", + /* 193 */ "AS", + /* 194 */ "SYSTEM", + /* 195 */ "TSMA", + /* 196 */ "INTERVAL", + /* 197 */ "RECURSIVE", + /* 198 */ "TSMAS", + /* 199 */ "FUNCTION", + /* 200 */ "INDEX", + /* 201 */ "COUNT", + /* 202 */ "LAST_ROW", + /* 203 */ "META", + /* 204 */ "ONLY", + /* 205 */ "TOPIC", + /* 206 */ "CONSUMER", + /* 207 */ "GROUP", + /* 208 */ "DESC", + /* 209 */ "DESCRIBE", + /* 210 */ "RESET", + /* 211 */ "QUERY", + /* 212 */ "CACHE", + /* 213 */ "EXPLAIN", + /* 214 */ "ANALYZE", + /* 215 */ "VERBOSE", + /* 216 */ "NK_BOOL", + /* 217 */ "RATIO", + /* 218 */ "NK_FLOAT", + /* 219 */ "OUTPUTTYPE", + /* 220 */ "AGGREGATE", + /* 221 */ "BUFSIZE", + /* 222 */ "LANGUAGE", + /* 223 */ "REPLACE", + /* 224 */ "STREAM", + /* 225 */ "INTO", + /* 226 */ "PAUSE", + /* 227 */ "RESUME", + /* 228 */ "PRIMARY", + /* 229 */ "KEY", + /* 230 */ "TRIGGER", + /* 231 */ "AT_ONCE", + /* 232 */ "WINDOW_CLOSE", + /* 233 */ "IGNORE", + /* 234 */ "EXPIRED", + /* 235 */ "FILL_HISTORY", + /* 236 */ "UPDATE", + /* 237 */ "SUBTABLE", + /* 238 */ "UNTREATED", + /* 239 */ "KILL", + /* 240 */ "CONNECTION", + /* 241 */ "TRANSACTION", + /* 242 */ "BALANCE", + /* 243 */ "VGROUP", + /* 244 */ "LEADER", + /* 245 */ "MERGE", + /* 246 */ "REDISTRIBUTE", + /* 247 */ "SPLIT", + /* 248 */ "DELETE", + /* 249 */ "INSERT", + /* 250 */ "NK_BIN", + /* 251 */ "NK_HEX", + /* 252 */ "NULL", + /* 253 */ "NK_QUESTION", + /* 254 */ "NK_ALIAS", + /* 255 */ "NK_ARROW", + /* 256 */ "ROWTS", + /* 257 */ "QSTART", + /* 258 */ "QEND", + /* 259 */ "QDURATION", + /* 260 */ "WSTART", + /* 261 */ "WEND", + /* 262 */ "WDURATION", + /* 263 */ "IROWTS", + /* 264 */ "ISFILLED", + /* 265 */ "CAST", + /* 266 */ "NOW", + /* 267 */ "TODAY", + /* 268 */ "TIMEZONE", + /* 269 */ "CLIENT_VERSION", + /* 270 */ "SERVER_VERSION", + /* 271 */ "SERVER_STATUS", + /* 272 */ "CURRENT_USER", + /* 273 */ "CASE", + /* 274 */ "WHEN", + /* 275 */ "THEN", + /* 276 */ "ELSE", + /* 277 */ "BETWEEN", + /* 278 */ "IS", + /* 279 */ "NK_LT", + /* 280 */ "NK_GT", + /* 281 */ "NK_LE", + /* 282 */ "NK_GE", + /* 283 */ "NK_NE", + /* 284 */ "MATCH", + /* 285 */ "NMATCH", + /* 286 */ "CONTAINS", + /* 287 */ "IN", + /* 288 */ "JOIN", + /* 289 */ "INNER", + /* 290 */ "LEFT", + /* 291 */ "RIGHT", + /* 292 */ "OUTER", + /* 293 */ "SEMI", + /* 294 */ "ANTI", + /* 295 */ "ASOF", + /* 296 */ "WINDOW", + /* 297 */ "WINDOW_OFFSET", + /* 298 */ "JLIMIT", + /* 299 */ "SELECT", + /* 300 */ "NK_HINT", + /* 301 */ "DISTINCT", + /* 302 */ "WHERE", + /* 303 */ "PARTITION", + /* 304 */ "BY", + /* 305 */ "SESSION", + /* 306 */ "STATE_WINDOW", + /* 307 */ "EVENT_WINDOW", + /* 308 */ "COUNT_WINDOW", + /* 309 */ "SLIDING", + /* 310 */ "FILL", + /* 311 */ "VALUE", + /* 312 */ "VALUE_F", + /* 313 */ "NONE", + /* 314 */ "PREV", + /* 315 */ "NULL_F", + /* 316 */ "LINEAR", + /* 317 */ "NEXT", + /* 318 */ "HAVING", + /* 319 */ "RANGE", + /* 320 */ "EVERY", + /* 321 */ "ORDER", + /* 322 */ "SLIMIT", + /* 323 */ "SOFFSET", + /* 324 */ "LIMIT", + /* 325 */ "OFFSET", + /* 326 */ "ASC", + /* 327 */ "NULLS", + /* 328 */ "ABORT", + /* 329 */ "AFTER", + /* 330 */ "ATTACH", + /* 331 */ "BEFORE", + /* 332 */ "BEGIN", + /* 333 */ "BITAND", + /* 334 */ "BITNOT", + /* 335 */ "BITOR", + /* 336 */ "BLOCKS", + /* 337 */ "CHANGE", + /* 338 */ "COMMA", + /* 339 */ "CONCAT", + /* 340 */ "CONFLICT", + /* 341 */ "COPY", + /* 342 */ "DEFERRED", + /* 343 */ "DELIMITERS", + /* 344 */ "DETACH", + /* 345 */ "DIVIDE", + /* 346 */ "DOT", + /* 347 */ "EACH", + /* 348 */ "FAIL", /* 349 */ "FOR", /* 350 */ "GLOB", /* 351 */ "ID", @@ -2822,7 +2766,7 @@ static const char *const yyRuleName[] = { /* 200 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", /* 201 */ "multi_create_clause ::= create_from_file_clause", /* 202 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options", - /* 203 */ "create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP NK_STRING", + /* 203 */ "create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING", /* 204 */ "multi_drop_clause ::= drop_table_clause", /* 205 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", /* 206 */ "drop_table_clause ::= exists_opt full_table_name", @@ -3591,7 +3535,7 @@ static void yy_destructor( { #line 7 "sql.y" nodesDestroyNode((yypminor->yy54)); -#line 3594 "sql.c" +#line 3538 "sql.c" } break; case 379: /* account_options */ @@ -3603,7 +3547,7 @@ static void yy_destructor( { #line 54 "sql.y" -#line 3606 "sql.c" +#line 3550 "sql.c" } break; case 383: /* ip_range_list */ @@ -3645,7 +3589,7 @@ static void yy_destructor( { #line 85 "sql.y" nodesDestroyList((yypminor->yy652)); -#line 3648 "sql.c" +#line 3592 "sql.c" } break; case 386: /* is_import_opt */ @@ -3654,7 +3598,7 @@ static void yy_destructor( { #line 99 "sql.y" -#line 3657 "sql.c" +#line 3601 "sql.c" } break; case 388: /* user_name */ @@ -3680,7 +3624,7 @@ static void yy_destructor( { #line 1084 "sql.y" -#line 3683 "sql.c" +#line 3627 "sql.c" } break; case 390: /* privileges */ @@ -3689,14 +3633,14 @@ static void yy_destructor( { #line 131 "sql.y" -#line 3692 "sql.c" +#line 3636 "sql.c" } break; case 391: /* priv_level */ { #line 148 "sql.y" -#line 3699 "sql.c" +#line 3643 "sql.c" } break; case 400: /* force_opt */ @@ -3712,7 +3656,7 @@ static void yy_destructor( { #line 180 "sql.y" -#line 3715 "sql.c" +#line 3659 "sql.c" } break; case 413: /* alter_db_option */ @@ -3720,7 +3664,7 @@ static void yy_destructor( { #line 288 "sql.y" -#line 3723 "sql.c" +#line 3667 "sql.c" } break; case 425: /* type_name */ @@ -3728,7 +3672,7 @@ static void yy_destructor( { #line 427 "sql.y" -#line 3731 "sql.c" +#line 3675 "sql.c" } break; case 446: /* db_kind_opt */ @@ -3736,21 +3680,21 @@ static void yy_destructor( { #line 606 "sql.y" -#line 3739 "sql.c" +#line 3683 "sql.c" } break; case 447: /* table_kind_db_name_cond_opt */ { #line 571 "sql.y" -#line 3746 "sql.c" +#line 3690 "sql.c" } break; case 456: /* tsma_func_list */ { #line 625 "sql.y" nodesDestroyNode((yypminor->yy54)); -#line 3753 "sql.c" +#line 3697 "sql.c" } break; case 511: /* compare_op */ @@ -3758,42 +3702,42 @@ static void yy_destructor( { #line 1282 "sql.y" -#line 3761 "sql.c" +#line 3705 "sql.c" } break; case 524: /* join_type */ { #line 1363 "sql.y" -#line 3768 "sql.c" +#line 3712 "sql.c" } break; case 525: /* join_subtype */ { #line 1371 "sql.y" -#line 3775 "sql.c" +#line 3719 "sql.c" } break; case 546: /* fill_mode */ { #line 1487 "sql.y" -#line 3782 "sql.c" +#line 3726 "sql.c" } break; case 557: /* ordering_specification_opt */ { #line 1572 "sql.y" -#line 3789 "sql.c" +#line 3733 "sql.c" } break; case 558: /* null_ordering_opt */ { #line 1578 "sql.y" -#line 3796 "sql.c" +#line 3740 "sql.c" } break; /********* End destructor definitions *****************************************/ @@ -4285,7 +4229,7 @@ static const YYCODETYPE yyRuleInfoLhs[] = { 419, /* (200) multi_create_clause ::= multi_create_clause create_subtable_clause */ 419, /* (201) multi_create_clause ::= create_from_file_clause */ 428, /* (202) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ - 429, /* (203) create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP NK_STRING */ + 429, /* (203) create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING */ 421, /* (204) multi_drop_clause ::= drop_table_clause */ 421, /* (205) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ 433, /* (206) drop_table_clause ::= exists_opt full_table_name */ @@ -5046,7 +4990,7 @@ static const signed char yyRuleInfoNRhs[] = { -2, /* (200) multi_create_clause ::= multi_create_clause create_subtable_clause */ -1, /* (201) multi_create_clause ::= create_from_file_clause */ -10, /* (202) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ - -7, /* (203) create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP NK_STRING */ + -8, /* (203) create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING */ -1, /* (204) multi_drop_clause ::= drop_table_clause */ -3, /* (205) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ -2, /* (206) drop_table_clause ::= exists_opt full_table_name */ @@ -5643,19 +5587,19 @@ static YYACTIONTYPE yy_reduce( case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ #line 50 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } -#line 5646 "sql.c" +#line 5590 "sql.c" yy_destructor(yypParser,379,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ #line 51 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } -#line 5652 "sql.c" +#line 5596 "sql.c" yy_destructor(yypParser,380,&yymsp[0].minor); break; case 2: /* account_options ::= */ #line 55 "sql.y" { } -#line 5658 "sql.c" +#line 5602 "sql.c" break; case 3: /* account_options ::= account_options PPS literal */ case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); @@ -5669,7 +5613,7 @@ static YYACTIONTYPE yy_reduce( { yy_destructor(yypParser,379,&yymsp[-2].minor); #line 56 "sql.y" { } -#line 5672 "sql.c" +#line 5616 "sql.c" yy_destructor(yypParser,381,&yymsp[0].minor); } break; @@ -5677,14 +5621,14 @@ static YYACTIONTYPE yy_reduce( { yy_destructor(yypParser,382,&yymsp[0].minor); #line 68 "sql.y" { } -#line 5680 "sql.c" +#line 5624 "sql.c" } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,380,&yymsp[-1].minor); #line 69 "sql.y" { } -#line 5687 "sql.c" +#line 5631 "sql.c" yy_destructor(yypParser,382,&yymsp[0].minor); } break; @@ -5700,25 +5644,25 @@ static YYACTIONTYPE yy_reduce( case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); #line 73 "sql.y" { } -#line 5703 "sql.c" +#line 5647 "sql.c" yy_destructor(yypParser,381,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ #line 86 "sql.y" { yylhsminor.yy652 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } -#line 5709 "sql.c" +#line 5653 "sql.c" yymsp[0].minor.yy652 = yylhsminor.yy652; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ #line 87 "sql.y" { yylhsminor.yy652 = addNodeToList(pCxt, yymsp[-2].minor.yy652, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } -#line 5715 "sql.c" +#line 5659 "sql.c" yymsp[-2].minor.yy652 = yylhsminor.yy652; break; case 26: /* white_list ::= HOST ip_range_list */ #line 91 "sql.y" { yymsp[-1].minor.yy652 = yymsp[0].minor.yy652; } -#line 5721 "sql.c" +#line 5665 "sql.c" break; case 27: /* white_list_opt ::= */ case 207: /* specific_cols_opt ::= */ yytestcase(yyruleno==207); @@ -5731,7 +5675,7 @@ static YYACTIONTYPE yy_reduce( case 729: /* order_by_clause_opt ::= */ yytestcase(yyruleno==729); #line 95 "sql.y" { yymsp[1].minor.yy652 = NULL; } -#line 5734 "sql.c" +#line 5678 "sql.c" break; case 28: /* white_list_opt ::= white_list */ case 246: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==246); @@ -5739,21 +5683,21 @@ static YYACTIONTYPE yy_reduce( case 587: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==587); #line 96 "sql.y" { yylhsminor.yy652 = yymsp[0].minor.yy652; } -#line 5742 "sql.c" +#line 5686 "sql.c" yymsp[0].minor.yy652 = yylhsminor.yy652; break; case 29: /* is_import_opt ::= */ case 31: /* is_createdb_opt ::= */ yytestcase(yyruleno==31); #line 100 "sql.y" { yymsp[1].minor.yy535 = 0; } -#line 5749 "sql.c" +#line 5693 "sql.c" break; case 30: /* is_import_opt ::= IS_IMPORT NK_INTEGER */ case 32: /* is_createdb_opt ::= CREATEDB NK_INTEGER */ yytestcase(yyruleno==32); case 42: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ yytestcase(yyruleno==42); #line 101 "sql.y" { yymsp[-1].minor.yy535 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } -#line 5756 "sql.c" +#line 5700 "sql.c" break; case 33: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt is_createdb_opt is_import_opt white_list_opt */ #line 109 "sql.y" @@ -5761,118 +5705,118 @@ static YYACTIONTYPE yy_reduce( pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-6].minor.yy837, &yymsp[-4].minor.yy0, yymsp[-3].minor.yy535, yymsp[-1].minor.yy535, yymsp[-2].minor.yy535); pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy652); } -#line 5764 "sql.c" +#line 5708 "sql.c" break; case 34: /* cmd ::= ALTER USER user_name PASS NK_STRING */ #line 113 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy837, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } -#line 5769 "sql.c" +#line 5713 "sql.c" break; case 35: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ #line 114 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy837, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } -#line 5774 "sql.c" +#line 5718 "sql.c" break; case 36: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ #line 115 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy837, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } -#line 5779 "sql.c" +#line 5723 "sql.c" break; case 37: /* cmd ::= ALTER USER user_name CREATEDB NK_INTEGER */ #line 116 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy837, TSDB_ALTER_USER_CREATEDB, &yymsp[0].minor.yy0); } -#line 5784 "sql.c" +#line 5728 "sql.c" break; case 38: /* cmd ::= ALTER USER user_name ADD white_list */ #line 117 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy837, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy652); } -#line 5789 "sql.c" +#line 5733 "sql.c" break; case 39: /* cmd ::= ALTER USER user_name DROP white_list */ #line 118 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy837, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy652); } -#line 5794 "sql.c" +#line 5738 "sql.c" break; case 40: /* cmd ::= DROP USER user_name */ #line 119 "sql.y" { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy837); } -#line 5799 "sql.c" +#line 5743 "sql.c" break; case 41: /* sysinfo_opt ::= */ #line 123 "sql.y" { yymsp[1].minor.yy535 = 1; } -#line 5804 "sql.c" +#line 5748 "sql.c" break; case 43: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ #line 127 "sql.y" { pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy495, &yymsp[0].minor.yy837, yymsp[-2].minor.yy54); } -#line 5809 "sql.c" +#line 5753 "sql.c" break; case 44: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ #line 128 "sql.y" { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy495, &yymsp[0].minor.yy837, yymsp[-2].minor.yy54); } -#line 5814 "sql.c" +#line 5758 "sql.c" break; case 45: /* privileges ::= ALL */ #line 132 "sql.y" { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALL; } -#line 5819 "sql.c" +#line 5763 "sql.c" break; case 46: /* privileges ::= priv_type_list */ case 48: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==48); #line 133 "sql.y" { yylhsminor.yy909 = yymsp[0].minor.yy909; } -#line 5825 "sql.c" +#line 5769 "sql.c" yymsp[0].minor.yy909 = yylhsminor.yy909; break; case 47: /* privileges ::= SUBSCRIBE */ #line 134 "sql.y" { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_SUBSCRIBE; } -#line 5831 "sql.c" +#line 5775 "sql.c" break; case 49: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ #line 139 "sql.y" { yylhsminor.yy909 = yymsp[-2].minor.yy909 | yymsp[0].minor.yy909; } -#line 5836 "sql.c" +#line 5780 "sql.c" yymsp[-2].minor.yy909 = yylhsminor.yy909; break; case 50: /* priv_type ::= READ */ #line 143 "sql.y" { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_READ; } -#line 5842 "sql.c" +#line 5786 "sql.c" break; case 51: /* priv_type ::= WRITE */ #line 144 "sql.y" { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_WRITE; } -#line 5847 "sql.c" +#line 5791 "sql.c" break; case 52: /* priv_type ::= ALTER */ #line 145 "sql.y" { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALTER; } -#line 5852 "sql.c" +#line 5796 "sql.c" break; case 53: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ #line 149 "sql.y" { yylhsminor.yy495.first = yymsp[-2].minor.yy0; yylhsminor.yy495.second = yymsp[0].minor.yy0; } -#line 5857 "sql.c" +#line 5801 "sql.c" yymsp[-2].minor.yy495 = yylhsminor.yy495; break; case 54: /* priv_level ::= db_name NK_DOT NK_STAR */ #line 150 "sql.y" { yylhsminor.yy495.first = yymsp[-2].minor.yy837; yylhsminor.yy495.second = yymsp[0].minor.yy0; } -#line 5863 "sql.c" +#line 5807 "sql.c" yymsp[-2].minor.yy495 = yylhsminor.yy495; break; case 55: /* priv_level ::= db_name NK_DOT table_name */ #line 151 "sql.y" { yylhsminor.yy495.first = yymsp[-2].minor.yy837; yylhsminor.yy495.second = yymsp[0].minor.yy837; } -#line 5869 "sql.c" +#line 5813 "sql.c" yymsp[-2].minor.yy495 = yylhsminor.yy495; break; case 56: /* priv_level ::= topic_name */ #line 152 "sql.y" { yylhsminor.yy495.first = yymsp[0].minor.yy837; yylhsminor.yy495.second = nil_token; } -#line 5875 "sql.c" +#line 5819 "sql.c" yymsp[0].minor.yy495 = yylhsminor.yy495; break; case 57: /* with_opt ::= */ @@ -5896,7 +5840,7 @@ static YYACTIONTYPE yy_reduce( case 735: /* limit_clause_opt ::= */ yytestcase(yyruleno==735); #line 154 "sql.y" { yymsp[1].minor.yy54 = NULL; } -#line 5899 "sql.c" +#line 5843 "sql.c" break; case 58: /* with_opt ::= WITH search_condition */ case 628: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==628); @@ -5905,67 +5849,67 @@ static YYACTIONTYPE yy_reduce( case 714: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==714); #line 155 "sql.y" { yymsp[-1].minor.yy54 = yymsp[0].minor.yy54; } -#line 5908 "sql.c" +#line 5852 "sql.c" break; case 59: /* cmd ::= CREATE ENCRYPT_KEY NK_STRING */ #line 158 "sql.y" { pCxt->pRootNode = createEncryptKeyStmt(pCxt, &yymsp[0].minor.yy0); } -#line 5913 "sql.c" +#line 5857 "sql.c" break; case 60: /* cmd ::= CREATE DNODE dnode_endpoint */ #line 161 "sql.y" { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy837, NULL); } -#line 5918 "sql.c" +#line 5862 "sql.c" break; case 61: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ #line 162 "sql.y" { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy0); } -#line 5923 "sql.c" +#line 5867 "sql.c" break; case 62: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ #line 163 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy325, false); } -#line 5928 "sql.c" +#line 5872 "sql.c" break; case 63: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ #line 164 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy837, yymsp[0].minor.yy325, false); } -#line 5933 "sql.c" +#line 5877 "sql.c" break; case 64: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ #line 165 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy325); } -#line 5938 "sql.c" +#line 5882 "sql.c" break; case 65: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ #line 166 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy837, false, yymsp[0].minor.yy325); } -#line 5943 "sql.c" +#line 5887 "sql.c" break; case 66: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ #line 167 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } -#line 5948 "sql.c" +#line 5892 "sql.c" break; case 67: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ #line 168 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 5953 "sql.c" +#line 5897 "sql.c" break; case 68: /* cmd ::= ALTER ALL DNODES NK_STRING */ #line 169 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } -#line 5958 "sql.c" +#line 5902 "sql.c" break; case 69: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ #line 170 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 5963 "sql.c" +#line 5907 "sql.c" break; case 70: /* cmd ::= RESTORE DNODE NK_INTEGER */ #line 171 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } -#line 5968 "sql.c" +#line 5912 "sql.c" break; case 71: /* dnode_endpoint ::= NK_STRING */ case 72: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==72); @@ -6003,7 +5947,7 @@ static YYACTIONTYPE yy_reduce( case 585: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==585); #line 175 "sql.y" { yylhsminor.yy837 = yymsp[0].minor.yy0; } -#line 6006 "sql.c" +#line 5950 "sql.c" yymsp[0].minor.yy837 = yylhsminor.yy837; break; case 74: /* force_opt ::= */ @@ -6017,7 +5961,7 @@ static YYACTIONTYPE yy_reduce( case 667: /* set_quantifier_opt ::= */ yytestcase(yyruleno==667); #line 181 "sql.y" { yymsp[1].minor.yy325 = false; } -#line 6020 "sql.c" +#line 5964 "sql.c" break; case 75: /* force_opt ::= FORCE */ case 76: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==76); @@ -6027,260 +5971,260 @@ static YYACTIONTYPE yy_reduce( case 668: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==668); #line 182 "sql.y" { yymsp[0].minor.yy325 = true; } -#line 6030 "sql.c" +#line 5974 "sql.c" break; case 77: /* cmd ::= ALTER CLUSTER NK_STRING */ #line 189 "sql.y" { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 6035 "sql.c" +#line 5979 "sql.c" break; case 78: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ #line 190 "sql.y" { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 6040 "sql.c" +#line 5984 "sql.c" break; case 79: /* cmd ::= ALTER LOCAL NK_STRING */ #line 193 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 6045 "sql.c" +#line 5989 "sql.c" break; case 80: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ #line 194 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 6050 "sql.c" +#line 5994 "sql.c" break; case 81: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ #line 197 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } -#line 6055 "sql.c" +#line 5999 "sql.c" break; case 82: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ #line 198 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } -#line 6060 "sql.c" +#line 6004 "sql.c" break; case 83: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ #line 199 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } -#line 6065 "sql.c" +#line 6009 "sql.c" break; case 84: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ #line 202 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } -#line 6070 "sql.c" +#line 6014 "sql.c" break; case 85: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ #line 203 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } -#line 6075 "sql.c" +#line 6019 "sql.c" break; case 86: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ #line 206 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } -#line 6080 "sql.c" +#line 6024 "sql.c" break; case 87: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ #line 207 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } -#line 6085 "sql.c" +#line 6029 "sql.c" break; case 88: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ #line 210 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } -#line 6090 "sql.c" +#line 6034 "sql.c" break; case 89: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ #line 211 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } -#line 6095 "sql.c" +#line 6039 "sql.c" break; case 90: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ #line 212 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } -#line 6100 "sql.c" +#line 6044 "sql.c" break; case 91: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ #line 215 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } -#line 6105 "sql.c" +#line 6049 "sql.c" break; case 92: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ #line 218 "sql.y" { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy325, &yymsp[-1].minor.yy837, yymsp[0].minor.yy54); } -#line 6110 "sql.c" +#line 6054 "sql.c" break; case 93: /* cmd ::= DROP DATABASE exists_opt db_name */ #line 219 "sql.y" { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy325, &yymsp[0].minor.yy837); } -#line 6115 "sql.c" +#line 6059 "sql.c" break; case 94: /* cmd ::= USE db_name */ #line 220 "sql.y" { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy837); } -#line 6120 "sql.c" +#line 6064 "sql.c" break; case 95: /* cmd ::= ALTER DATABASE db_name alter_db_options */ #line 221 "sql.y" { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy837, yymsp[0].minor.yy54); } -#line 6125 "sql.c" +#line 6069 "sql.c" break; case 96: /* cmd ::= FLUSH DATABASE db_name */ #line 222 "sql.y" { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy837); } -#line 6130 "sql.c" +#line 6074 "sql.c" break; case 97: /* cmd ::= TRIM DATABASE db_name speed_opt */ #line 223 "sql.y" { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy837, yymsp[0].minor.yy332); } -#line 6135 "sql.c" +#line 6079 "sql.c" break; case 98: /* cmd ::= S3MIGRATE DATABASE db_name */ #line 224 "sql.y" { pCxt->pRootNode = createS3MigrateDatabaseStmt(pCxt, &yymsp[0].minor.yy837); } -#line 6140 "sql.c" +#line 6084 "sql.c" break; case 99: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ #line 225 "sql.y" { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy837, yymsp[-1].minor.yy54, yymsp[0].minor.yy54); } -#line 6145 "sql.c" +#line 6089 "sql.c" break; case 100: /* not_exists_opt ::= IF NOT EXISTS */ #line 229 "sql.y" { yymsp[-2].minor.yy325 = true; } -#line 6150 "sql.c" +#line 6094 "sql.c" break; case 102: /* exists_opt ::= IF EXISTS */ case 400: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==400); case 431: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==431); #line 234 "sql.y" { yymsp[-1].minor.yy325 = true; } -#line 6157 "sql.c" +#line 6101 "sql.c" break; case 104: /* db_options ::= */ #line 237 "sql.y" { yymsp[1].minor.yy54 = createDefaultDatabaseOptions(pCxt); } -#line 6162 "sql.c" +#line 6106 "sql.c" break; case 105: /* db_options ::= db_options BUFFER NK_INTEGER */ #line 238 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } -#line 6167 "sql.c" +#line 6111 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 106: /* db_options ::= db_options CACHEMODEL NK_STRING */ #line 239 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } -#line 6173 "sql.c" +#line 6117 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 107: /* db_options ::= db_options CACHESIZE NK_INTEGER */ #line 240 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } -#line 6179 "sql.c" +#line 6123 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 108: /* db_options ::= db_options COMP NK_INTEGER */ #line 241 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_COMP, &yymsp[0].minor.yy0); } -#line 6185 "sql.c" +#line 6129 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 109: /* db_options ::= db_options DURATION NK_INTEGER */ case 110: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==110); #line 242 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } -#line 6192 "sql.c" +#line 6136 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 111: /* db_options ::= db_options MAXROWS NK_INTEGER */ #line 244 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } -#line 6198 "sql.c" +#line 6142 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 112: /* db_options ::= db_options MINROWS NK_INTEGER */ #line 245 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } -#line 6204 "sql.c" +#line 6148 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 113: /* db_options ::= db_options KEEP integer_list */ case 114: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==114); #line 246 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_KEEP, yymsp[0].minor.yy652); } -#line 6211 "sql.c" +#line 6155 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 115: /* db_options ::= db_options PAGES NK_INTEGER */ #line 248 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } -#line 6217 "sql.c" +#line 6161 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 116: /* db_options ::= db_options PAGESIZE NK_INTEGER */ #line 249 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } -#line 6223 "sql.c" +#line 6167 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 117: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ #line 250 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } -#line 6229 "sql.c" +#line 6173 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 118: /* db_options ::= db_options PRECISION NK_STRING */ #line 251 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } -#line 6235 "sql.c" +#line 6179 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 119: /* db_options ::= db_options REPLICA NK_INTEGER */ #line 252 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } -#line 6241 "sql.c" +#line 6185 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 120: /* db_options ::= db_options VGROUPS NK_INTEGER */ #line 254 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } -#line 6247 "sql.c" +#line 6191 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 121: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ #line 255 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } -#line 6253 "sql.c" +#line 6197 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 122: /* db_options ::= db_options RETENTIONS retention_list */ #line 256 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_RETENTIONS, yymsp[0].minor.yy652); } -#line 6259 "sql.c" +#line 6203 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 123: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ #line 257 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } -#line 6265 "sql.c" +#line 6209 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 124: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ #line 258 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_WAL, &yymsp[0].minor.yy0); } -#line 6271 "sql.c" +#line 6215 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 125: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ #line 259 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } -#line 6277 "sql.c" +#line 6221 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 126: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ #line 260 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } -#line 6283 "sql.c" +#line 6227 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 127: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ @@ -6290,13 +6234,13 @@ static YYACTIONTYPE yy_reduce( t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-3].minor.yy54, DB_OPTION_WAL_RETENTION_PERIOD, &t); } -#line 6293 "sql.c" +#line 6237 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 128: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ #line 266 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } -#line 6299 "sql.c" +#line 6243 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 129: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ @@ -6306,137 +6250,137 @@ static YYACTIONTYPE yy_reduce( t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-3].minor.yy54, DB_OPTION_WAL_RETENTION_SIZE, &t); } -#line 6309 "sql.c" +#line 6253 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 130: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ #line 272 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } -#line 6315 "sql.c" +#line 6259 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 131: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ #line 273 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } -#line 6321 "sql.c" +#line 6265 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 132: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ #line 274 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } -#line 6327 "sql.c" +#line 6271 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 133: /* db_options ::= db_options TABLE_PREFIX signed */ #line 275 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy54); } -#line 6333 "sql.c" +#line 6277 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 134: /* db_options ::= db_options TABLE_SUFFIX signed */ #line 276 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy54); } -#line 6339 "sql.c" +#line 6283 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 135: /* db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */ #line 277 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_S3_CHUNKSIZE, &yymsp[0].minor.yy0); } -#line 6345 "sql.c" +#line 6289 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 136: /* db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */ case 137: /* db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==137); #line 278 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_S3_KEEPLOCAL, &yymsp[0].minor.yy0); } -#line 6352 "sql.c" +#line 6296 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 138: /* db_options ::= db_options S3_COMPACT NK_INTEGER */ #line 280 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_S3_COMPACT, &yymsp[0].minor.yy0); } -#line 6358 "sql.c" +#line 6302 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 139: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ #line 281 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } -#line 6364 "sql.c" +#line 6308 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 140: /* db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */ #line 282 "sql.y" { yylhsminor.yy54 = setDatabaseOption(pCxt, yymsp[-2].minor.yy54, DB_OPTION_ENCRYPT_ALGORITHM, &yymsp[0].minor.yy0); } -#line 6370 "sql.c" +#line 6314 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 141: /* alter_db_options ::= alter_db_option */ #line 284 "sql.y" { yylhsminor.yy54 = createAlterDatabaseOptions(pCxt); yylhsminor.yy54 = setAlterDatabaseOption(pCxt, yylhsminor.yy54, &yymsp[0].minor.yy663); } -#line 6376 "sql.c" +#line 6320 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 142: /* alter_db_options ::= alter_db_options alter_db_option */ #line 285 "sql.y" { yylhsminor.yy54 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy54, &yymsp[0].minor.yy663); } -#line 6382 "sql.c" +#line 6326 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 143: /* alter_db_option ::= BUFFER NK_INTEGER */ #line 289 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6388 "sql.c" +#line 6332 "sql.c" break; case 144: /* alter_db_option ::= CACHEMODEL NK_STRING */ #line 290 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6393 "sql.c" +#line 6337 "sql.c" break; case 145: /* alter_db_option ::= CACHESIZE NK_INTEGER */ #line 291 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6398 "sql.c" +#line 6342 "sql.c" break; case 146: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ #line 292 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6403 "sql.c" +#line 6347 "sql.c" break; case 147: /* alter_db_option ::= KEEP integer_list */ case 148: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==148); #line 293 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_KEEP; yymsp[-1].minor.yy663.pList = yymsp[0].minor.yy652; } -#line 6409 "sql.c" +#line 6353 "sql.c" break; case 149: /* alter_db_option ::= PAGES NK_INTEGER */ #line 295 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_PAGES; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6414 "sql.c" +#line 6358 "sql.c" break; case 150: /* alter_db_option ::= REPLICA NK_INTEGER */ #line 296 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6419 "sql.c" +#line 6363 "sql.c" break; case 151: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ #line 298 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_WAL; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6424 "sql.c" +#line 6368 "sql.c" break; case 152: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ #line 299 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6429 "sql.c" +#line 6373 "sql.c" break; case 153: /* alter_db_option ::= MINROWS NK_INTEGER */ #line 300 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6434 "sql.c" +#line 6378 "sql.c" break; case 154: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ #line 301 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6439 "sql.c" +#line 6383 "sql.c" break; case 155: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ #line 302 "sql.y" @@ -6445,12 +6389,12 @@ static YYACTIONTYPE yy_reduce( t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy663.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy663.val = t; } -#line 6448 "sql.c" +#line 6392 "sql.c" break; case 156: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ #line 307 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6453 "sql.c" +#line 6397 "sql.c" break; case 157: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ #line 308 "sql.y" @@ -6459,52 +6403,52 @@ static YYACTIONTYPE yy_reduce( t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy663.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy663.val = t; } -#line 6462 "sql.c" +#line 6406 "sql.c" break; case 158: /* alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */ case 159: /* alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==159); #line 313 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_S3_KEEPLOCAL; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6468 "sql.c" +#line 6412 "sql.c" break; case 160: /* alter_db_option ::= S3_COMPACT NK_INTEGER */ #line 315 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_S3_COMPACT, yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6473 "sql.c" +#line 6417 "sql.c" break; case 161: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ #line 316 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6478 "sql.c" +#line 6422 "sql.c" break; case 162: /* alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */ #line 317 "sql.y" { yymsp[-1].minor.yy663.type = DB_OPTION_ENCRYPT_ALGORITHM; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6483 "sql.c" +#line 6427 "sql.c" break; case 163: /* integer_list ::= NK_INTEGER */ #line 321 "sql.y" { yylhsminor.yy652 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 6488 "sql.c" +#line 6432 "sql.c" yymsp[0].minor.yy652 = yylhsminor.yy652; break; case 164: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 445: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==445); #line 322 "sql.y" { yylhsminor.yy652 = addNodeToList(pCxt, yymsp[-2].minor.yy652, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 6495 "sql.c" +#line 6439 "sql.c" yymsp[-2].minor.yy652 = yylhsminor.yy652; break; case 165: /* variable_list ::= NK_VARIABLE */ #line 326 "sql.y" { yylhsminor.yy652 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 6501 "sql.c" +#line 6445 "sql.c" yymsp[0].minor.yy652 = yylhsminor.yy652; break; case 166: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ #line 327 "sql.y" { yylhsminor.yy652 = addNodeToList(pCxt, yymsp[-2].minor.yy652, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 6507 "sql.c" +#line 6451 "sql.c" yymsp[-2].minor.yy652 = yylhsminor.yy652; break; case 167: /* retention_list ::= retention */ @@ -6527,7 +6471,7 @@ static YYACTIONTYPE yy_reduce( case 742: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==742); #line 331 "sql.y" { yylhsminor.yy652 = createNodeList(pCxt, yymsp[0].minor.yy54); } -#line 6530 "sql.c" +#line 6474 "sql.c" yymsp[0].minor.yy652 = yylhsminor.yy652; break; case 168: /* retention_list ::= retention_list NK_COMMA retention */ @@ -6547,431 +6491,431 @@ static YYACTIONTYPE yy_reduce( case 743: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==743); #line 332 "sql.y" { yylhsminor.yy652 = addNodeToList(pCxt, yymsp[-2].minor.yy652, yymsp[0].minor.yy54); } -#line 6550 "sql.c" +#line 6494 "sql.c" yymsp[-2].minor.yy652 = yylhsminor.yy652; break; case 169: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ case 170: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==170); #line 334 "sql.y" { yylhsminor.yy54 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 6557 "sql.c" +#line 6501 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 171: /* speed_opt ::= */ case 395: /* bufsize_opt ::= */ yytestcase(yyruleno==395); #line 339 "sql.y" { yymsp[1].minor.yy332 = 0; } -#line 6564 "sql.c" +#line 6508 "sql.c" break; case 172: /* speed_opt ::= BWLIMIT NK_INTEGER */ case 396: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==396); #line 340 "sql.y" { yymsp[-1].minor.yy332 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } -#line 6570 "sql.c" +#line 6514 "sql.c" break; case 174: /* start_opt ::= START WITH NK_INTEGER */ case 178: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==178); #line 343 "sql.y" { yymsp[-2].minor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } -#line 6576 "sql.c" +#line 6520 "sql.c" break; case 175: /* start_opt ::= START WITH NK_STRING */ case 179: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==179); #line 344 "sql.y" { yymsp[-2].minor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } -#line 6582 "sql.c" +#line 6526 "sql.c" break; case 176: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 180: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==180); #line 345 "sql.y" { yymsp[-3].minor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } -#line 6588 "sql.c" +#line 6532 "sql.c" break; case 181: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 183: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==183); #line 354 "sql.y" { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy325, yymsp[-5].minor.yy54, yymsp[-3].minor.yy652, yymsp[-1].minor.yy652, yymsp[0].minor.yy54); } -#line 6594 "sql.c" +#line 6538 "sql.c" break; case 182: /* cmd ::= CREATE TABLE multi_create_clause */ #line 355 "sql.y" { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy652); } -#line 6599 "sql.c" +#line 6543 "sql.c" break; case 184: /* cmd ::= DROP TABLE multi_drop_clause */ #line 358 "sql.y" { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy652); } -#line 6604 "sql.c" +#line 6548 "sql.c" break; case 185: /* cmd ::= DROP STABLE exists_opt full_table_name */ #line 359 "sql.y" { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy325, yymsp[0].minor.yy54); } -#line 6609 "sql.c" +#line 6553 "sql.c" break; case 186: /* cmd ::= ALTER TABLE alter_table_clause */ case 447: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==447); case 448: /* cmd ::= insert_query */ yytestcase(yyruleno==448); #line 361 "sql.y" { pCxt->pRootNode = yymsp[0].minor.yy54; } -#line 6616 "sql.c" +#line 6560 "sql.c" break; case 187: /* cmd ::= ALTER STABLE alter_table_clause */ #line 362 "sql.y" { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy54); } -#line 6621 "sql.c" +#line 6565 "sql.c" break; case 188: /* alter_table_clause ::= full_table_name alter_table_options */ #line 364 "sql.y" { yylhsminor.yy54 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy54, yymsp[0].minor.yy54); } -#line 6626 "sql.c" +#line 6570 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 189: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name column_options */ #line 366 "sql.y" { yylhsminor.yy54 = createAlterTableAddModifyColOptions2(pCxt, yymsp[-5].minor.yy54, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-2].minor.yy837, yymsp[-1].minor.yy84, yymsp[0].minor.yy54); } -#line 6632 "sql.c" +#line 6576 "sql.c" yymsp[-5].minor.yy54 = yylhsminor.yy54; break; case 190: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ #line 367 "sql.y" { yylhsminor.yy54 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy54, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy837); } -#line 6638 "sql.c" +#line 6582 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 191: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ #line 369 "sql.y" { yylhsminor.yy54 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy54, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy837, yymsp[0].minor.yy84); } -#line 6644 "sql.c" +#line 6588 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 192: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */ #line 371 "sql.y" { yylhsminor.yy54 = createAlterTableAddModifyColOptions(pCxt, yymsp[-4].minor.yy54, TSDB_ALTER_TABLE_UPDATE_COLUMN_COMPRESS, &yymsp[-1].minor.yy837, yymsp[0].minor.yy54); } -#line 6650 "sql.c" +#line 6594 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 193: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ #line 373 "sql.y" { yylhsminor.yy54 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy54, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy837, &yymsp[0].minor.yy837); } -#line 6656 "sql.c" +#line 6600 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 194: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ #line 375 "sql.y" { yylhsminor.yy54 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy54, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy837, yymsp[0].minor.yy84); } -#line 6662 "sql.c" +#line 6606 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 195: /* alter_table_clause ::= full_table_name DROP TAG column_name */ #line 376 "sql.y" { yylhsminor.yy54 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy54, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy837); } -#line 6668 "sql.c" +#line 6612 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 196: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ #line 378 "sql.y" { yylhsminor.yy54 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy54, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy837, yymsp[0].minor.yy84); } -#line 6674 "sql.c" +#line 6618 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 197: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ #line 380 "sql.y" { yylhsminor.yy54 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy54, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy837, &yymsp[0].minor.yy837); } -#line 6680 "sql.c" +#line 6624 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 198: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ #line 382 "sql.y" { yylhsminor.yy54 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy54, &yymsp[-2].minor.yy837, yymsp[0].minor.yy54); } -#line 6686 "sql.c" +#line 6630 "sql.c" yymsp[-5].minor.yy54 = yylhsminor.yy54; break; case 200: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 595: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==595); #line 387 "sql.y" { yylhsminor.yy652 = addNodeToList(pCxt, yymsp[-1].minor.yy652, yymsp[0].minor.yy54); } -#line 6693 "sql.c" +#line 6637 "sql.c" yymsp[-1].minor.yy652 = yylhsminor.yy652; break; case 202: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ #line 392 "sql.y" { yylhsminor.yy54 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy325, yymsp[-8].minor.yy54, yymsp[-6].minor.yy54, yymsp[-5].minor.yy652, yymsp[-2].minor.yy652, yymsp[0].minor.yy54); } -#line 6699 "sql.c" +#line 6643 "sql.c" yymsp[-9].minor.yy54 = yylhsminor.yy54; break; - case 203: /* create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP NK_STRING */ + case 203: /* create_from_file_clause ::= not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING */ #line 395 "sql.y" -{ yylhsminor.yy54 = createCreateSubTableFromFileClause(pCxt, yymsp[-6].minor.yy325, yymsp[-4].minor.yy54, yymsp[-2].minor.yy652, &yymsp[0].minor.yy0); } -#line 6705 "sql.c" - yymsp[-6].minor.yy54 = yylhsminor.yy54; +{ yylhsminor.yy54 = createCreateSubTableFromFileClause(pCxt, yymsp[-7].minor.yy325, yymsp[-5].minor.yy54, yymsp[-3].minor.yy652, &yymsp[0].minor.yy0); } +#line 6649 "sql.c" + yymsp[-7].minor.yy54 = yylhsminor.yy54; break; case 206: /* drop_table_clause ::= exists_opt full_table_name */ #line 402 "sql.y" { yylhsminor.yy54 = createDropTableClause(pCxt, yymsp[-1].minor.yy325, yymsp[0].minor.yy54); } -#line 6711 "sql.c" +#line 6655 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 208: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 410: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==410); #line 407 "sql.y" { yymsp[-2].minor.yy652 = yymsp[-1].minor.yy652; } -#line 6718 "sql.c" +#line 6662 "sql.c" break; case 209: /* full_table_name ::= table_name */ case 351: /* full_tsma_name ::= tsma_name */ yytestcase(yyruleno==351); #line 409 "sql.y" { yylhsminor.yy54 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy837, NULL); } -#line 6724 "sql.c" +#line 6668 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 210: /* full_table_name ::= db_name NK_DOT table_name */ case 352: /* full_tsma_name ::= db_name NK_DOT tsma_name */ yytestcase(yyruleno==352); #line 410 "sql.y" { yylhsminor.yy54 = createRealTableNode(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy837, NULL); } -#line 6731 "sql.c" +#line 6675 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 213: /* tag_def ::= column_name type_name */ #line 416 "sql.y" { yylhsminor.yy54 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy837, yymsp[0].minor.yy84, NULL); } -#line 6737 "sql.c" +#line 6681 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 216: /* column_def ::= column_name type_name column_options */ #line 424 "sql.y" { yylhsminor.yy54 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy837, yymsp[-1].minor.yy84, yymsp[0].minor.yy54); } -#line 6743 "sql.c" +#line 6687 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 217: /* type_name ::= BOOL */ #line 428 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_BOOL); } -#line 6749 "sql.c" +#line 6693 "sql.c" break; case 218: /* type_name ::= TINYINT */ #line 429 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_TINYINT); } -#line 6754 "sql.c" +#line 6698 "sql.c" break; case 219: /* type_name ::= SMALLINT */ #line 430 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_SMALLINT); } -#line 6759 "sql.c" +#line 6703 "sql.c" break; case 220: /* type_name ::= INT */ case 221: /* type_name ::= INTEGER */ yytestcase(yyruleno==221); #line 431 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_INT); } -#line 6765 "sql.c" +#line 6709 "sql.c" break; case 222: /* type_name ::= BIGINT */ #line 433 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_BIGINT); } -#line 6770 "sql.c" +#line 6714 "sql.c" break; case 223: /* type_name ::= FLOAT */ #line 434 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_FLOAT); } -#line 6775 "sql.c" +#line 6719 "sql.c" break; case 224: /* type_name ::= DOUBLE */ #line 435 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_DOUBLE); } -#line 6780 "sql.c" +#line 6724 "sql.c" break; case 225: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ #line 436 "sql.y" { yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } -#line 6785 "sql.c" +#line 6729 "sql.c" break; case 226: /* type_name ::= TIMESTAMP */ #line 437 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } -#line 6790 "sql.c" +#line 6734 "sql.c" break; case 227: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ #line 438 "sql.y" { yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } -#line 6795 "sql.c" +#line 6739 "sql.c" break; case 228: /* type_name ::= TINYINT UNSIGNED */ #line 439 "sql.y" { yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_UTINYINT); } -#line 6800 "sql.c" +#line 6744 "sql.c" break; case 229: /* type_name ::= SMALLINT UNSIGNED */ #line 440 "sql.y" { yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_USMALLINT); } -#line 6805 "sql.c" +#line 6749 "sql.c" break; case 230: /* type_name ::= INT UNSIGNED */ #line 441 "sql.y" { yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_UINT); } -#line 6810 "sql.c" +#line 6754 "sql.c" break; case 231: /* type_name ::= BIGINT UNSIGNED */ #line 442 "sql.y" { yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_UBIGINT); } -#line 6815 "sql.c" +#line 6759 "sql.c" break; case 232: /* type_name ::= JSON */ #line 443 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_JSON); } -#line 6820 "sql.c" +#line 6764 "sql.c" break; case 233: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ #line 444 "sql.y" { yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } -#line 6825 "sql.c" +#line 6769 "sql.c" break; case 234: /* type_name ::= MEDIUMBLOB */ #line 445 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } -#line 6830 "sql.c" +#line 6774 "sql.c" break; case 235: /* type_name ::= BLOB */ #line 446 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_BLOB); } -#line 6835 "sql.c" +#line 6779 "sql.c" break; case 236: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ #line 447 "sql.y" { yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } -#line 6840 "sql.c" +#line 6784 "sql.c" break; case 237: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ #line 448 "sql.y" { yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } -#line 6845 "sql.c" +#line 6789 "sql.c" break; case 238: /* type_name ::= DECIMAL */ #line 449 "sql.y" { yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_DECIMAL); } -#line 6850 "sql.c" +#line 6794 "sql.c" break; case 239: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ #line 450 "sql.y" { yymsp[-3].minor.yy84 = createDataType(TSDB_DATA_TYPE_DECIMAL); } -#line 6855 "sql.c" +#line 6799 "sql.c" break; case 240: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ #line 451 "sql.y" { yymsp[-5].minor.yy84 = createDataType(TSDB_DATA_TYPE_DECIMAL); } -#line 6860 "sql.c" +#line 6804 "sql.c" break; case 241: /* type_name_default_len ::= BINARY */ #line 455 "sql.y" { yymsp[0].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); } -#line 6865 "sql.c" +#line 6809 "sql.c" break; case 242: /* type_name_default_len ::= NCHAR */ #line 456 "sql.y" { yymsp[0].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); } -#line 6870 "sql.c" +#line 6814 "sql.c" break; case 243: /* type_name_default_len ::= VARCHAR */ #line 457 "sql.y" { yymsp[0].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); } -#line 6875 "sql.c" +#line 6819 "sql.c" break; case 244: /* type_name_default_len ::= VARBINARY */ #line 458 "sql.y" { yymsp[0].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); } -#line 6880 "sql.c" +#line 6824 "sql.c" break; case 247: /* tags_def ::= TAGS NK_LP tag_def_list NK_RP */ case 418: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==418); #line 467 "sql.y" { yymsp[-3].minor.yy652 = yymsp[-1].minor.yy652; } -#line 6886 "sql.c" +#line 6830 "sql.c" break; case 248: /* table_options ::= */ #line 469 "sql.y" { yymsp[1].minor.yy54 = createDefaultTableOptions(pCxt); } -#line 6891 "sql.c" +#line 6835 "sql.c" break; case 249: /* table_options ::= table_options COMMENT NK_STRING */ #line 470 "sql.y" { yylhsminor.yy54 = setTableOption(pCxt, yymsp[-2].minor.yy54, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } -#line 6896 "sql.c" +#line 6840 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 250: /* table_options ::= table_options MAX_DELAY duration_list */ #line 471 "sql.y" { yylhsminor.yy54 = setTableOption(pCxt, yymsp[-2].minor.yy54, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy652); } -#line 6902 "sql.c" +#line 6846 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 251: /* table_options ::= table_options WATERMARK duration_list */ #line 472 "sql.y" { yylhsminor.yy54 = setTableOption(pCxt, yymsp[-2].minor.yy54, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy652); } -#line 6908 "sql.c" +#line 6852 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 252: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ #line 473 "sql.y" { yylhsminor.yy54 = setTableOption(pCxt, yymsp[-4].minor.yy54, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy652); } -#line 6914 "sql.c" +#line 6858 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 253: /* table_options ::= table_options TTL NK_INTEGER */ #line 474 "sql.y" { yylhsminor.yy54 = setTableOption(pCxt, yymsp[-2].minor.yy54, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } -#line 6920 "sql.c" +#line 6864 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 254: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ #line 475 "sql.y" { yylhsminor.yy54 = setTableOption(pCxt, yymsp[-4].minor.yy54, TABLE_OPTION_SMA, yymsp[-1].minor.yy652); } -#line 6926 "sql.c" +#line 6870 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 255: /* table_options ::= table_options DELETE_MARK duration_list */ #line 476 "sql.y" { yylhsminor.yy54 = setTableOption(pCxt, yymsp[-2].minor.yy54, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy652); } -#line 6932 "sql.c" +#line 6876 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 256: /* alter_table_options ::= alter_table_option */ #line 478 "sql.y" { yylhsminor.yy54 = createAlterTableOptions(pCxt); yylhsminor.yy54 = setTableOption(pCxt, yylhsminor.yy54, yymsp[0].minor.yy663.type, &yymsp[0].minor.yy663.val); } -#line 6938 "sql.c" +#line 6882 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 257: /* alter_table_options ::= alter_table_options alter_table_option */ #line 479 "sql.y" { yylhsminor.yy54 = setTableOption(pCxt, yymsp[-1].minor.yy54, yymsp[0].minor.yy663.type, &yymsp[0].minor.yy663.val); } -#line 6944 "sql.c" +#line 6888 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 258: /* alter_table_option ::= COMMENT NK_STRING */ #line 483 "sql.y" { yymsp[-1].minor.yy663.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6950 "sql.c" +#line 6894 "sql.c" break; case 259: /* alter_table_option ::= TTL NK_INTEGER */ #line 484 "sql.y" { yymsp[-1].minor.yy663.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy663.val = yymsp[0].minor.yy0; } -#line 6955 "sql.c" +#line 6899 "sql.c" break; case 260: /* duration_list ::= duration_literal */ case 547: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==547); #line 488 "sql.y" { yylhsminor.yy652 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy54)); } -#line 6961 "sql.c" +#line 6905 "sql.c" yymsp[0].minor.yy652 = yylhsminor.yy652; break; case 261: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 548: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==548); #line 489 "sql.y" { yylhsminor.yy652 = addNodeToList(pCxt, yymsp[-2].minor.yy652, releaseRawExprNode(pCxt, yymsp[0].minor.yy54)); } -#line 6968 "sql.c" +#line 6912 "sql.c" yymsp[-2].minor.yy652 = yylhsminor.yy652; break; case 264: /* rollup_func_name ::= function_name */ #line 496 "sql.y" { yylhsminor.yy54 = createFunctionNode(pCxt, &yymsp[0].minor.yy837, NULL); } -#line 6974 "sql.c" +#line 6918 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 265: /* rollup_func_name ::= FIRST */ @@ -6979,35 +6923,35 @@ static YYACTIONTYPE yy_reduce( case 340: /* tag_item ::= QTAGS */ yytestcase(yyruleno==340); #line 497 "sql.y" { yylhsminor.yy54 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 6982 "sql.c" +#line 6926 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 269: /* col_name ::= column_name */ case 341: /* tag_item ::= column_name */ yytestcase(yyruleno==341); #line 505 "sql.y" { yylhsminor.yy54 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy837); } -#line 6989 "sql.c" +#line 6933 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 270: /* cmd ::= SHOW DNODES */ #line 508 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } -#line 6995 "sql.c" +#line 6939 "sql.c" break; case 271: /* cmd ::= SHOW USERS */ #line 509 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } -#line 7000 "sql.c" +#line 6944 "sql.c" break; case 272: /* cmd ::= SHOW USERS FULL */ #line 510 "sql.y" { pCxt->pRootNode = createShowStmtWithFull(pCxt, QUERY_NODE_SHOW_USERS_FULL_STMT); } -#line 7005 "sql.c" +#line 6949 "sql.c" break; case 273: /* cmd ::= SHOW USER PRIVILEGES */ #line 511 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } -#line 7010 "sql.c" +#line 6954 "sql.c" break; case 274: /* cmd ::= SHOW db_kind_opt DATABASES */ #line 512 "sql.y" @@ -7015,634 +6959,634 @@ static YYACTIONTYPE yy_reduce( pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy719); } -#line 7018 "sql.c" +#line 6962 "sql.c" break; case 275: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ #line 516 "sql.y" { pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy579, yymsp[0].minor.yy54, OP_TYPE_LIKE); } -#line 7025 "sql.c" +#line 6969 "sql.c" break; case 276: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ #line 519 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy54, yymsp[0].minor.yy54, OP_TYPE_LIKE); } -#line 7030 "sql.c" +#line 6974 "sql.c" break; case 277: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ #line 520 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy54, NULL, OP_TYPE_LIKE); } -#line 7035 "sql.c" +#line 6979 "sql.c" break; case 278: /* cmd ::= SHOW MNODES */ #line 521 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } -#line 7040 "sql.c" +#line 6984 "sql.c" break; case 279: /* cmd ::= SHOW QNODES */ #line 523 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } -#line 7045 "sql.c" +#line 6989 "sql.c" break; case 280: /* cmd ::= SHOW ARBGROUPS */ #line 524 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); } -#line 7050 "sql.c" +#line 6994 "sql.c" break; case 281: /* cmd ::= SHOW FUNCTIONS */ #line 525 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } -#line 7055 "sql.c" +#line 6999 "sql.c" break; case 282: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ #line 526 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy54, yymsp[-1].minor.yy54, OP_TYPE_EQUAL); } -#line 7060 "sql.c" +#line 7004 "sql.c" break; case 283: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ #line 527 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy837), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy837), OP_TYPE_EQUAL); } -#line 7065 "sql.c" +#line 7009 "sql.c" break; case 284: /* cmd ::= SHOW STREAMS */ #line 528 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } -#line 7070 "sql.c" +#line 7014 "sql.c" break; case 285: /* cmd ::= SHOW ACCOUNTS */ #line 529 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } -#line 7075 "sql.c" +#line 7019 "sql.c" break; case 286: /* cmd ::= SHOW APPS */ #line 530 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } -#line 7080 "sql.c" +#line 7024 "sql.c" break; case 287: /* cmd ::= SHOW CONNECTIONS */ #line 531 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } -#line 7085 "sql.c" +#line 7029 "sql.c" break; case 288: /* cmd ::= SHOW LICENCES */ case 289: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==289); #line 532 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } -#line 7091 "sql.c" +#line 7035 "sql.c" break; case 290: /* cmd ::= SHOW GRANTS FULL */ #line 534 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); } -#line 7096 "sql.c" +#line 7040 "sql.c" break; case 291: /* cmd ::= SHOW GRANTS LOGS */ #line 535 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); } -#line 7101 "sql.c" +#line 7045 "sql.c" break; case 292: /* cmd ::= SHOW CLUSTER MACHINES */ #line 536 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); } -#line 7106 "sql.c" +#line 7050 "sql.c" break; case 293: /* cmd ::= SHOW CREATE DATABASE db_name */ #line 537 "sql.y" { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy837); } -#line 7111 "sql.c" +#line 7055 "sql.c" break; case 294: /* cmd ::= SHOW CREATE TABLE full_table_name */ #line 538 "sql.y" { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy54); } -#line 7116 "sql.c" +#line 7060 "sql.c" break; case 295: /* cmd ::= SHOW CREATE STABLE full_table_name */ #line 539 "sql.y" { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy54); } -#line 7122 "sql.c" +#line 7066 "sql.c" break; case 296: /* cmd ::= SHOW ENCRYPTIONS */ #line 541 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ENCRYPTIONS_STMT); } -#line 7127 "sql.c" +#line 7071 "sql.c" break; case 297: /* cmd ::= SHOW QUERIES */ #line 542 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } -#line 7132 "sql.c" +#line 7076 "sql.c" break; case 298: /* cmd ::= SHOW SCORES */ #line 543 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } -#line 7137 "sql.c" +#line 7081 "sql.c" break; case 299: /* cmd ::= SHOW TOPICS */ #line 544 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } -#line 7142 "sql.c" +#line 7086 "sql.c" break; case 300: /* cmd ::= SHOW VARIABLES */ case 301: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==301); #line 545 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } -#line 7148 "sql.c" +#line 7092 "sql.c" break; case 302: /* cmd ::= SHOW LOCAL VARIABLES */ #line 547 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } -#line 7153 "sql.c" +#line 7097 "sql.c" break; case 303: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ #line 548 "sql.y" { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy54); } -#line 7158 "sql.c" +#line 7102 "sql.c" break; case 304: /* cmd ::= SHOW BNODES */ #line 549 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } -#line 7163 "sql.c" +#line 7107 "sql.c" break; case 305: /* cmd ::= SHOW SNODES */ #line 550 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } -#line 7168 "sql.c" +#line 7112 "sql.c" break; case 306: /* cmd ::= SHOW CLUSTER */ #line 551 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } -#line 7173 "sql.c" +#line 7117 "sql.c" break; case 307: /* cmd ::= SHOW TRANSACTIONS */ #line 552 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } -#line 7178 "sql.c" +#line 7122 "sql.c" break; case 308: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ #line 553 "sql.y" { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy54); } -#line 7183 "sql.c" +#line 7127 "sql.c" break; case 309: /* cmd ::= SHOW CONSUMERS */ #line 554 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } -#line 7188 "sql.c" +#line 7132 "sql.c" break; case 310: /* cmd ::= SHOW SUBSCRIPTIONS */ #line 555 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } -#line 7193 "sql.c" +#line 7137 "sql.c" break; case 311: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ #line 556 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy54, yymsp[-1].minor.yy54, OP_TYPE_EQUAL); } -#line 7198 "sql.c" +#line 7142 "sql.c" break; case 312: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ #line 557 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy837), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy837), OP_TYPE_EQUAL); } -#line 7203 "sql.c" +#line 7147 "sql.c" break; case 313: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ #line 558 "sql.y" { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy54, yymsp[0].minor.yy54, yymsp[-3].minor.yy652); } -#line 7208 "sql.c" +#line 7152 "sql.c" break; case 314: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ #line 559 "sql.y" { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy837), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy837), yymsp[-4].minor.yy652); } -#line 7213 "sql.c" +#line 7157 "sql.c" break; case 315: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ #line 560 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } -#line 7218 "sql.c" +#line 7162 "sql.c" break; case 316: /* cmd ::= SHOW VNODES */ #line 561 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } -#line 7223 "sql.c" +#line 7167 "sql.c" break; case 317: /* cmd ::= SHOW db_name_cond_opt ALIVE */ #line 563 "sql.y" { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy54, QUERY_NODE_SHOW_DB_ALIVE_STMT); } -#line 7228 "sql.c" +#line 7172 "sql.c" break; case 318: /* cmd ::= SHOW CLUSTER ALIVE */ #line 564 "sql.y" { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } -#line 7233 "sql.c" +#line 7177 "sql.c" break; case 319: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ #line 565 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy54, yymsp[0].minor.yy54, OP_TYPE_LIKE); } -#line 7238 "sql.c" +#line 7182 "sql.c" break; case 320: /* cmd ::= SHOW CREATE VIEW full_table_name */ #line 566 "sql.y" { pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy54); } -#line 7243 "sql.c" +#line 7187 "sql.c" break; case 321: /* cmd ::= SHOW COMPACTS */ #line 567 "sql.y" { pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); } -#line 7248 "sql.c" +#line 7192 "sql.c" break; case 322: /* cmd ::= SHOW COMPACT NK_INTEGER */ #line 568 "sql.y" { pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 7253 "sql.c" +#line 7197 "sql.c" break; case 323: /* table_kind_db_name_cond_opt ::= */ #line 572 "sql.y" { yymsp[1].minor.yy579.kind = SHOW_KIND_ALL; yymsp[1].minor.yy579.dbName = nil_token; } -#line 7258 "sql.c" +#line 7202 "sql.c" break; case 324: /* table_kind_db_name_cond_opt ::= table_kind */ #line 573 "sql.y" { yylhsminor.yy579.kind = yymsp[0].minor.yy719; yylhsminor.yy579.dbName = nil_token; } -#line 7263 "sql.c" +#line 7207 "sql.c" yymsp[0].minor.yy579 = yylhsminor.yy579; break; case 325: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ #line 574 "sql.y" { yylhsminor.yy579.kind = SHOW_KIND_ALL; yylhsminor.yy579.dbName = yymsp[-1].minor.yy837; } -#line 7269 "sql.c" +#line 7213 "sql.c" yymsp[-1].minor.yy579 = yylhsminor.yy579; break; case 326: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ #line 575 "sql.y" { yylhsminor.yy579.kind = yymsp[-2].minor.yy719; yylhsminor.yy579.dbName = yymsp[-1].minor.yy837; } -#line 7275 "sql.c" +#line 7219 "sql.c" yymsp[-2].minor.yy579 = yylhsminor.yy579; break; case 327: /* table_kind ::= NORMAL */ #line 579 "sql.y" { yymsp[0].minor.yy719 = SHOW_KIND_TABLES_NORMAL; } -#line 7281 "sql.c" +#line 7225 "sql.c" break; case 328: /* table_kind ::= CHILD */ #line 580 "sql.y" { yymsp[0].minor.yy719 = SHOW_KIND_TABLES_CHILD; } -#line 7286 "sql.c" +#line 7230 "sql.c" break; case 329: /* db_name_cond_opt ::= */ case 334: /* from_db_opt ::= */ yytestcase(yyruleno==334); #line 582 "sql.y" { yymsp[1].minor.yy54 = createDefaultDatabaseCondValue(pCxt); } -#line 7292 "sql.c" +#line 7236 "sql.c" break; case 330: /* db_name_cond_opt ::= db_name NK_DOT */ #line 583 "sql.y" { yylhsminor.yy54 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy837); } -#line 7297 "sql.c" +#line 7241 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 332: /* like_pattern_opt ::= LIKE NK_STRING */ #line 586 "sql.y" { yymsp[-1].minor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } -#line 7303 "sql.c" +#line 7247 "sql.c" break; case 333: /* table_name_cond ::= table_name */ #line 588 "sql.y" { yylhsminor.yy54 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy837); } -#line 7308 "sql.c" +#line 7252 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 335: /* from_db_opt ::= FROM db_name */ #line 591 "sql.y" { yymsp[-1].minor.yy54 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy837); } -#line 7314 "sql.c" +#line 7258 "sql.c" break; case 339: /* tag_item ::= TBNAME */ #line 599 "sql.y" { yylhsminor.yy54 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } -#line 7319 "sql.c" +#line 7263 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 342: /* tag_item ::= column_name column_alias */ #line 602 "sql.y" { yylhsminor.yy54 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy837), &yymsp[0].minor.yy837); } -#line 7325 "sql.c" +#line 7269 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 343: /* tag_item ::= column_name AS column_alias */ #line 603 "sql.y" { yylhsminor.yy54 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy837), &yymsp[0].minor.yy837); } -#line 7331 "sql.c" +#line 7275 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 344: /* db_kind_opt ::= */ #line 607 "sql.y" { yymsp[1].minor.yy719 = SHOW_KIND_ALL; } -#line 7337 "sql.c" +#line 7281 "sql.c" break; case 345: /* db_kind_opt ::= USER */ #line 608 "sql.y" { yymsp[0].minor.yy719 = SHOW_KIND_DATABASES_USER; } -#line 7342 "sql.c" +#line 7286 "sql.c" break; case 346: /* db_kind_opt ::= SYSTEM */ #line 609 "sql.y" { yymsp[0].minor.yy719 = SHOW_KIND_DATABASES_SYSTEM; } -#line 7347 "sql.c" +#line 7291 "sql.c" break; case 347: /* cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ #line 615 "sql.y" { pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-8].minor.yy325, &yymsp[-7].minor.yy837, yymsp[-4].minor.yy54, yymsp[-5].minor.yy54, releaseRawExprNode(pCxt, yymsp[-1].minor.yy54)); } -#line 7352 "sql.c" +#line 7296 "sql.c" break; case 348: /* cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ #line 617 "sql.y" { pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-7].minor.yy325, &yymsp[-6].minor.yy837, NULL, yymsp[-4].minor.yy54, releaseRawExprNode(pCxt, yymsp[-1].minor.yy54)); } -#line 7357 "sql.c" +#line 7301 "sql.c" break; case 349: /* cmd ::= DROP TSMA exists_opt full_tsma_name */ #line 618 "sql.y" { pCxt->pRootNode = createDropTSMAStmt(pCxt, yymsp[-1].minor.yy325, yymsp[0].minor.yy54); } -#line 7362 "sql.c" +#line 7306 "sql.c" break; case 350: /* cmd ::= SHOW db_name_cond_opt TSMAS */ #line 619 "sql.y" { pCxt->pRootNode = createShowTSMASStmt(pCxt, yymsp[-1].minor.yy54); } -#line 7367 "sql.c" +#line 7311 "sql.c" break; case 353: /* tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ #line 626 "sql.y" { yymsp[-3].minor.yy54 = createTSMAOptions(pCxt, yymsp[-1].minor.yy652); } -#line 7372 "sql.c" +#line 7316 "sql.c" break; case 354: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ #line 630 "sql.y" { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy325, yymsp[-3].minor.yy54, yymsp[-1].minor.yy54, NULL, yymsp[0].minor.yy54); } -#line 7377 "sql.c" +#line 7321 "sql.c" break; case 355: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ #line 632 "sql.y" { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy325, yymsp[-5].minor.yy54, yymsp[-3].minor.yy54, yymsp[-1].minor.yy652, NULL); } -#line 7382 "sql.c" +#line 7326 "sql.c" break; case 356: /* cmd ::= DROP INDEX exists_opt full_index_name */ #line 633 "sql.y" { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy325, yymsp[0].minor.yy54); } -#line 7387 "sql.c" +#line 7331 "sql.c" break; case 357: /* full_index_name ::= index_name */ #line 635 "sql.y" { yylhsminor.yy54 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy837); } -#line 7392 "sql.c" +#line 7336 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 358: /* full_index_name ::= db_name NK_DOT index_name */ #line 636 "sql.y" { yylhsminor.yy54 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy837); } -#line 7398 "sql.c" +#line 7342 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 359: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ #line 639 "sql.y" { yymsp[-9].minor.yy54 = createIndexOption(pCxt, yymsp[-7].minor.yy652, releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), NULL, yymsp[-1].minor.yy54, yymsp[0].minor.yy54); } -#line 7404 "sql.c" +#line 7348 "sql.c" break; case 360: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ #line 642 "sql.y" { yymsp[-11].minor.yy54 = createIndexOption(pCxt, yymsp[-9].minor.yy652, releaseRawExprNode(pCxt, yymsp[-5].minor.yy54), releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), yymsp[-1].minor.yy54, yymsp[0].minor.yy54); } -#line 7409 "sql.c" +#line 7353 "sql.c" break; case 363: /* func ::= sma_func_name NK_LP expression_list NK_RP */ #line 649 "sql.y" { yylhsminor.yy54 = createFunctionNode(pCxt, &yymsp[-3].minor.yy837, yymsp[-1].minor.yy652); } -#line 7414 "sql.c" +#line 7358 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 364: /* sma_func_name ::= function_name */ case 638: /* alias_opt ::= table_alias */ yytestcase(yyruleno==638); #line 653 "sql.y" { yylhsminor.yy837 = yymsp[0].minor.yy837; } -#line 7421 "sql.c" +#line 7365 "sql.c" yymsp[0].minor.yy837 = yylhsminor.yy837; break; case 369: /* sma_stream_opt ::= */ case 419: /* stream_options ::= */ yytestcase(yyruleno==419); #line 659 "sql.y" { yymsp[1].minor.yy54 = createStreamOptions(pCxt); } -#line 7428 "sql.c" +#line 7372 "sql.c" break; case 370: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ #line 660 "sql.y" { ((SStreamOptions*)yymsp[-2].minor.yy54)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = yymsp[-2].minor.yy54; } -#line 7433 "sql.c" +#line 7377 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 371: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ #line 661 "sql.y" { ((SStreamOptions*)yymsp[-2].minor.yy54)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = yymsp[-2].minor.yy54; } -#line 7439 "sql.c" +#line 7383 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 372: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ #line 662 "sql.y" { ((SStreamOptions*)yymsp[-2].minor.yy54)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = yymsp[-2].minor.yy54; } -#line 7445 "sql.c" +#line 7389 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 373: /* with_meta ::= AS */ #line 667 "sql.y" { yymsp[0].minor.yy332 = 0; } -#line 7451 "sql.c" +#line 7395 "sql.c" break; case 374: /* with_meta ::= WITH META AS */ #line 668 "sql.y" { yymsp[-2].minor.yy332 = 1; } -#line 7456 "sql.c" +#line 7400 "sql.c" break; case 375: /* with_meta ::= ONLY META AS */ #line 669 "sql.y" { yymsp[-2].minor.yy332 = 2; } -#line 7461 "sql.c" +#line 7405 "sql.c" break; case 376: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ #line 671 "sql.y" { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy325, &yymsp[-2].minor.yy837, yymsp[0].minor.yy54); } -#line 7466 "sql.c" +#line 7410 "sql.c" break; case 377: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ #line 673 "sql.y" { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy325, &yymsp[-3].minor.yy837, &yymsp[0].minor.yy837, yymsp[-2].minor.yy332); } -#line 7471 "sql.c" +#line 7415 "sql.c" break; case 378: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ #line 675 "sql.y" { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy325, &yymsp[-4].minor.yy837, yymsp[-1].minor.yy54, yymsp[-3].minor.yy332, yymsp[0].minor.yy54); } -#line 7476 "sql.c" +#line 7420 "sql.c" break; case 379: /* cmd ::= DROP TOPIC exists_opt topic_name */ #line 677 "sql.y" { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy325, &yymsp[0].minor.yy837); } -#line 7481 "sql.c" +#line 7425 "sql.c" break; case 380: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ #line 678 "sql.y" { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy325, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy837); } -#line 7486 "sql.c" +#line 7430 "sql.c" break; case 381: /* cmd ::= DESC full_table_name */ case 382: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==382); #line 681 "sql.y" { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy54); } -#line 7492 "sql.c" +#line 7436 "sql.c" break; case 383: /* cmd ::= RESET QUERY CACHE */ #line 685 "sql.y" { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } -#line 7497 "sql.c" +#line 7441 "sql.c" break; case 384: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 385: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==385); #line 688 "sql.y" { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy325, yymsp[-1].minor.yy54, yymsp[0].minor.yy54); } -#line 7503 "sql.c" +#line 7447 "sql.c" break; case 388: /* explain_options ::= */ #line 696 "sql.y" { yymsp[1].minor.yy54 = createDefaultExplainOptions(pCxt); } -#line 7508 "sql.c" +#line 7452 "sql.c" break; case 389: /* explain_options ::= explain_options VERBOSE NK_BOOL */ #line 697 "sql.y" { yylhsminor.yy54 = setExplainVerbose(pCxt, yymsp[-2].minor.yy54, &yymsp[0].minor.yy0); } -#line 7513 "sql.c" +#line 7457 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 390: /* explain_options ::= explain_options RATIO NK_FLOAT */ #line 698 "sql.y" { yylhsminor.yy54 = setExplainRatio(pCxt, yymsp[-2].minor.yy54, &yymsp[0].minor.yy0); } -#line 7519 "sql.c" +#line 7463 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 391: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ #line 703 "sql.y" { pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy325, yymsp[-9].minor.yy325, &yymsp[-6].minor.yy837, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy84, yymsp[-1].minor.yy332, &yymsp[0].minor.yy837, yymsp[-10].minor.yy325); } -#line 7525 "sql.c" +#line 7469 "sql.c" break; case 392: /* cmd ::= DROP FUNCTION exists_opt function_name */ #line 704 "sql.y" { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy325, &yymsp[0].minor.yy837); } -#line 7530 "sql.c" +#line 7474 "sql.c" break; case 397: /* language_opt ::= */ case 442: /* on_vgroup_id ::= */ yytestcase(yyruleno==442); #line 718 "sql.y" { yymsp[1].minor.yy837 = nil_token; } -#line 7536 "sql.c" +#line 7480 "sql.c" break; case 398: /* language_opt ::= LANGUAGE NK_STRING */ case 443: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==443); #line 719 "sql.y" { yymsp[-1].minor.yy837 = yymsp[0].minor.yy0; } -#line 7542 "sql.c" +#line 7486 "sql.c" break; case 401: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ #line 728 "sql.y" { pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy325, yymsp[-2].minor.yy54, &yymsp[-1].minor.yy0, yymsp[0].minor.yy54); } -#line 7547 "sql.c" +#line 7491 "sql.c" break; case 402: /* cmd ::= DROP VIEW exists_opt full_view_name */ #line 729 "sql.y" { pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy325, yymsp[0].minor.yy54); } -#line 7552 "sql.c" +#line 7496 "sql.c" break; case 403: /* full_view_name ::= view_name */ #line 731 "sql.y" { yylhsminor.yy54 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy837); } -#line 7557 "sql.c" +#line 7501 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 404: /* full_view_name ::= db_name NK_DOT view_name */ #line 732 "sql.y" { yylhsminor.yy54 = createViewNode(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy837); } -#line 7563 "sql.c" +#line 7507 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 405: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ #line 737 "sql.y" { pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy325, &yymsp[-8].minor.yy837, yymsp[-5].minor.yy54, yymsp[-7].minor.yy54, yymsp[-3].minor.yy652, yymsp[-2].minor.yy54, yymsp[0].minor.yy54, yymsp[-4].minor.yy652); } -#line 7569 "sql.c" +#line 7513 "sql.c" break; case 406: /* cmd ::= DROP STREAM exists_opt stream_name */ #line 738 "sql.y" { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy325, &yymsp[0].minor.yy837); } -#line 7574 "sql.c" +#line 7518 "sql.c" break; case 407: /* cmd ::= PAUSE STREAM exists_opt stream_name */ #line 739 "sql.y" { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy325, &yymsp[0].minor.yy837); } -#line 7579 "sql.c" +#line 7523 "sql.c" break; case 408: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ #line 740 "sql.y" { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy325, yymsp[-1].minor.yy325, &yymsp[0].minor.yy837); } -#line 7584 "sql.c" +#line 7528 "sql.c" break; case 413: /* column_stream_def ::= column_name stream_col_options */ #line 753 "sql.y" { yylhsminor.yy54 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy837, createDataType(TSDB_DATA_TYPE_NULL), yymsp[0].minor.yy54); } -#line 7589 "sql.c" +#line 7533 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 414: /* stream_col_options ::= */ case 751: /* column_options ::= */ yytestcase(yyruleno==751); #line 754 "sql.y" { yymsp[1].minor.yy54 = createDefaultColumnOptions(pCxt); } -#line 7596 "sql.c" +#line 7540 "sql.c" break; case 415: /* stream_col_options ::= stream_col_options PRIMARY KEY */ case 752: /* column_options ::= column_options PRIMARY KEY */ yytestcase(yyruleno==752); #line 755 "sql.y" { yylhsminor.yy54 = setColumnOptions(pCxt, yymsp[-2].minor.yy54, COLUMN_OPTION_PRIMARYKEY, NULL); } -#line 7602 "sql.c" +#line 7546 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 420: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 421: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==421); #line 765 "sql.y" { yylhsminor.yy54 = setStreamOptions(pCxt, yymsp[-2].minor.yy54, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } -#line 7609 "sql.c" +#line 7553 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 422: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ #line 767 "sql.y" { yylhsminor.yy54 = setStreamOptions(pCxt, yymsp[-3].minor.yy54, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy54)); } -#line 7615 "sql.c" +#line 7559 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 423: /* stream_options ::= stream_options WATERMARK duration_literal */ #line 768 "sql.y" { yylhsminor.yy54 = setStreamOptions(pCxt, yymsp[-2].minor.yy54, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy54)); } -#line 7621 "sql.c" +#line 7565 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 424: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ #line 769 "sql.y" { yylhsminor.yy54 = setStreamOptions(pCxt, yymsp[-3].minor.yy54, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } -#line 7627 "sql.c" +#line 7571 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 425: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ #line 770 "sql.y" { yylhsminor.yy54 = setStreamOptions(pCxt, yymsp[-2].minor.yy54, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } -#line 7633 "sql.c" +#line 7577 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 426: /* stream_options ::= stream_options DELETE_MARK duration_literal */ #line 771 "sql.y" { yylhsminor.yy54 = setStreamOptions(pCxt, yymsp[-2].minor.yy54, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy54)); } -#line 7639 "sql.c" +#line 7583 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 427: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ #line 772 "sql.y" { yylhsminor.yy54 = setStreamOptions(pCxt, yymsp[-3].minor.yy54, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } -#line 7645 "sql.c" +#line 7589 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 429: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ @@ -7650,84 +7594,84 @@ yymsp[0].minor.yy54); } case 719: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==719); #line 775 "sql.y" { yymsp[-3].minor.yy54 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy54); } -#line 7653 "sql.c" +#line 7597 "sql.c" break; case 432: /* cmd ::= KILL CONNECTION NK_INTEGER */ #line 783 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } -#line 7658 "sql.c" +#line 7602 "sql.c" break; case 433: /* cmd ::= KILL QUERY NK_STRING */ #line 784 "sql.y" { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } -#line 7663 "sql.c" +#line 7607 "sql.c" break; case 434: /* cmd ::= KILL TRANSACTION NK_INTEGER */ #line 785 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } -#line 7668 "sql.c" +#line 7612 "sql.c" break; case 435: /* cmd ::= KILL COMPACT NK_INTEGER */ #line 786 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); } -#line 7673 "sql.c" +#line 7617 "sql.c" break; case 436: /* cmd ::= BALANCE VGROUP */ #line 789 "sql.y" { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } -#line 7678 "sql.c" +#line 7622 "sql.c" break; case 437: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ #line 790 "sql.y" { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy837); } -#line 7683 "sql.c" +#line 7627 "sql.c" break; case 438: /* cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ #line 791 "sql.y" { pCxt->pRootNode = createBalanceVgroupLeaderDBNameStmt(pCxt, &yymsp[0].minor.yy837); } -#line 7688 "sql.c" +#line 7632 "sql.c" break; case 439: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ #line 792 "sql.y" { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 7693 "sql.c" +#line 7637 "sql.c" break; case 440: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ #line 793 "sql.y" { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy652); } -#line 7698 "sql.c" +#line 7642 "sql.c" break; case 441: /* cmd ::= SPLIT VGROUP NK_INTEGER */ #line 794 "sql.y" { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } -#line 7703 "sql.c" +#line 7647 "sql.c" break; case 444: /* dnode_list ::= DNODE NK_INTEGER */ #line 803 "sql.y" { yymsp[-1].minor.yy652 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 7708 "sql.c" +#line 7652 "sql.c" break; case 446: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ #line 810 "sql.y" { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy54, yymsp[0].minor.yy54); } -#line 7713 "sql.c" +#line 7657 "sql.c" break; case 449: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ #line 819 "sql.y" { yymsp[-6].minor.yy54 = createInsertStmt(pCxt, yymsp[-4].minor.yy54, yymsp[-2].minor.yy652, yymsp[0].minor.yy54); } -#line 7718 "sql.c" +#line 7662 "sql.c" break; case 450: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ #line 820 "sql.y" { yymsp[-3].minor.yy54 = createInsertStmt(pCxt, yymsp[-1].minor.yy54, NULL, yymsp[0].minor.yy54); } -#line 7723 "sql.c" +#line 7667 "sql.c" break; case 451: /* tags_literal ::= NK_INTEGER */ case 463: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==463); case 472: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==472); #line 823 "sql.y" { yylhsminor.yy54 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } -#line 7730 "sql.c" +#line 7674 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 452: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ @@ -7745,7 +7689,7 @@ yymsp[0].minor.yy54); } l.n = (r.z + r.n) - l.z; yylhsminor.yy54 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy54); } -#line 7748 "sql.c" +#line 7692 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 454: /* tags_literal ::= NK_PLUS NK_INTEGER */ @@ -7760,7 +7704,7 @@ yymsp[0].minor.yy54); } t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy54 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL); } -#line 7763 "sql.c" +#line 7707 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 455: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ @@ -7782,13 +7726,13 @@ yymsp[0].minor.yy54); } l.n = (r.z + r.n) - l.z; yylhsminor.yy54 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy54); } -#line 7785 "sql.c" +#line 7729 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 460: /* tags_literal ::= NK_FLOAT */ #line 870 "sql.y" { yylhsminor.yy54 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } -#line 7791 "sql.c" +#line 7735 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 461: /* tags_literal ::= NK_PLUS NK_FLOAT */ @@ -7799,31 +7743,31 @@ yymsp[0].minor.yy54); } t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy54 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL); } -#line 7802 "sql.c" +#line 7746 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 481: /* tags_literal ::= NK_STRING */ #line 977 "sql.y" { yylhsminor.yy54 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } -#line 7808 "sql.c" +#line 7752 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 484: /* tags_literal ::= NK_BOOL */ #line 990 "sql.y" { yylhsminor.yy54 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } -#line 7814 "sql.c" +#line 7758 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 485: /* tags_literal ::= NULL */ #line 991 "sql.y" { yylhsminor.yy54 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } -#line 7820 "sql.c" +#line 7764 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 486: /* tags_literal ::= literal_func */ #line 993 "sql.y" { yylhsminor.yy54 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy54); } -#line 7826 "sql.c" +#line 7770 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 487: /* tags_literal ::= literal_func NK_PLUS duration_literal */ @@ -7835,37 +7779,37 @@ yymsp[0].minor.yy54); } l.n = (r.z + r.n) - l.z; yylhsminor.yy54 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy54, yymsp[0].minor.yy54); } -#line 7838 "sql.c" +#line 7782 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 491: /* literal ::= NK_INTEGER */ #line 1013 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } -#line 7844 "sql.c" +#line 7788 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 492: /* literal ::= NK_FLOAT */ #line 1014 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } -#line 7850 "sql.c" +#line 7794 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 493: /* literal ::= NK_STRING */ #line 1015 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } -#line 7856 "sql.c" +#line 7800 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 494: /* literal ::= NK_BOOL */ #line 1016 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } -#line 7862 "sql.c" +#line 7806 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 495: /* literal ::= TIMESTAMP NK_STRING */ #line 1017 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } -#line 7868 "sql.c" +#line 7812 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 496: /* literal ::= duration_literal */ @@ -7890,19 +7834,19 @@ yymsp[0].minor.yy54); } case 727: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==727); #line 1018 "sql.y" { yylhsminor.yy54 = yymsp[0].minor.yy54; } -#line 7893 "sql.c" +#line 7837 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 497: /* literal ::= NULL */ #line 1019 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } -#line 7899 "sql.c" +#line 7843 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 498: /* literal ::= NK_QUESTION */ #line 1020 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 7905 "sql.c" +#line 7849 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 499: /* duration_literal ::= NK_VARIABLE */ @@ -7911,19 +7855,19 @@ yymsp[0].minor.yy54); } case 698: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==698); #line 1022 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 7914 "sql.c" +#line 7858 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 500: /* signed ::= NK_INTEGER */ #line 1024 "sql.y" { yylhsminor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } -#line 7920 "sql.c" +#line 7864 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 501: /* signed ::= NK_PLUS NK_INTEGER */ #line 1025 "sql.y" { yymsp[-1].minor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } -#line 7926 "sql.c" +#line 7870 "sql.c" break; case 502: /* signed ::= NK_MINUS NK_INTEGER */ #line 1026 "sql.y" @@ -7932,19 +7876,19 @@ yymsp[0].minor.yy54); } t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } -#line 7935 "sql.c" +#line 7879 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 503: /* signed ::= NK_FLOAT */ #line 1031 "sql.y" { yylhsminor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } -#line 7941 "sql.c" +#line 7885 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 504: /* signed ::= NK_PLUS NK_FLOAT */ #line 1032 "sql.y" { yymsp[-1].minor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } -#line 7947 "sql.c" +#line 7891 "sql.c" break; case 505: /* signed ::= NK_MINUS NK_FLOAT */ #line 1033 "sql.y" @@ -7953,25 +7897,25 @@ yymsp[0].minor.yy54); } t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } -#line 7956 "sql.c" +#line 7900 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 507: /* signed_literal ::= NK_STRING */ #line 1040 "sql.y" { yylhsminor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } -#line 7962 "sql.c" +#line 7906 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 508: /* signed_literal ::= NK_BOOL */ #line 1041 "sql.y" { yylhsminor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } -#line 7968 "sql.c" +#line 7912 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 509: /* signed_literal ::= TIMESTAMP NK_STRING */ #line 1042 "sql.y" { yymsp[-1].minor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } -#line 7974 "sql.c" +#line 7918 "sql.c" break; case 510: /* signed_literal ::= duration_literal */ case 512: /* signed_literal ::= literal_func */ yytestcase(yyruleno==512); @@ -7983,25 +7927,25 @@ yymsp[0].minor.yy54); } case 741: /* search_condition ::= common_expression */ yytestcase(yyruleno==741); #line 1043 "sql.y" { yylhsminor.yy54 = releaseRawExprNode(pCxt, yymsp[0].minor.yy54); } -#line 7986 "sql.c" +#line 7930 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 511: /* signed_literal ::= NULL */ #line 1044 "sql.y" { yylhsminor.yy54 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } -#line 7992 "sql.c" +#line 7936 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 513: /* signed_literal ::= NK_QUESTION */ #line 1046 "sql.y" { yylhsminor.yy54 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } -#line 7998 "sql.c" +#line 7942 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 532: /* expression ::= pseudo_column */ #line 1112 "sql.y" { yylhsminor.yy54 = yymsp[0].minor.yy54; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy54, true); } -#line 8004 "sql.c" +#line 7948 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 536: /* expression ::= NK_LP expression NK_RP */ @@ -8009,7 +7953,7 @@ yymsp[0].minor.yy54); } case 740: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==740); #line 1116 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy54)); } -#line 8012 "sql.c" +#line 7956 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 537: /* expression ::= NK_PLUS expr_or_subquery */ @@ -8018,7 +7962,7 @@ yymsp[0].minor.yy54); } SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy54)); } -#line 8021 "sql.c" +#line 7965 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 538: /* expression ::= NK_MINUS expr_or_subquery */ @@ -8027,7 +7971,7 @@ yymsp[0].minor.yy54); } SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy54), NULL)); } -#line 8030 "sql.c" +#line 7974 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 539: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ @@ -8037,7 +7981,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8040 "sql.c" +#line 7984 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 540: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ @@ -8047,7 +7991,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8050 "sql.c" +#line 7994 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 541: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ @@ -8057,7 +8001,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8060 "sql.c" +#line 8004 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 542: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ @@ -8067,7 +8011,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8070 "sql.c" +#line 8014 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 543: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ @@ -8077,7 +8021,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8080 "sql.c" +#line 8024 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 544: /* expression ::= column_reference NK_ARROW NK_STRING */ @@ -8086,7 +8030,7 @@ yymsp[0].minor.yy54); } SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } -#line 8089 "sql.c" +#line 8033 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 545: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ @@ -8096,7 +8040,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8099 "sql.c" +#line 8043 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 546: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ @@ -8106,31 +8050,31 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8109 "sql.c" +#line 8053 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 549: /* column_reference ::= column_name */ #line 1170 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy837, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy837)); } -#line 8115 "sql.c" +#line 8059 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 550: /* column_reference ::= table_name NK_DOT column_name */ #line 1171 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy837, createColumnNode(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy837)); } -#line 8121 "sql.c" +#line 8065 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 551: /* column_reference ::= NK_ALIAS */ #line 1172 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } -#line 8127 "sql.c" +#line 8071 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 552: /* column_reference ::= table_name NK_DOT NK_ALIAS */ #line 1173 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy0)); } -#line 8133 "sql.c" +#line 8077 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 553: /* pseudo_column ::= ROWTS */ @@ -8148,69 +8092,69 @@ yymsp[0].minor.yy54); } case 572: /* literal_func ::= TODAY */ yytestcase(yyruleno==572); #line 1175 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } -#line 8151 "sql.c" +#line 8095 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 555: /* pseudo_column ::= table_name NK_DOT TBNAME */ #line 1177 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy837)))); } -#line 8157 "sql.c" +#line 8101 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 565: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 566: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==566); #line 1188 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy837, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy837, yymsp[-1].minor.yy652)); } -#line 8164 "sql.c" +#line 8108 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 567: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ case 568: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==568); #line 1191 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), yymsp[-1].minor.yy84)); } -#line 8171 "sql.c" +#line 8115 "sql.c" yymsp[-5].minor.yy54 = yylhsminor.yy54; break; case 570: /* literal_func ::= noarg_func NK_LP NK_RP */ #line 1197 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy837, NULL)); } -#line 8177 "sql.c" +#line 8121 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 586: /* star_func_para_list ::= NK_STAR */ #line 1222 "sql.y" { yylhsminor.yy652 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } -#line 8183 "sql.c" +#line 8127 "sql.c" yymsp[0].minor.yy652 = yylhsminor.yy652; break; case 591: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 676: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==676); #line 1231 "sql.y" { yylhsminor.yy54 = createColumnNode(pCxt, &yymsp[-2].minor.yy837, &yymsp[0].minor.yy0); } -#line 8190 "sql.c" +#line 8134 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 592: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ #line 1234 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy652, yymsp[-1].minor.yy54)); } -#line 8196 "sql.c" +#line 8140 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 593: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ #line 1236 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), yymsp[-2].minor.yy652, yymsp[-1].minor.yy54)); } -#line 8202 "sql.c" +#line 8146 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 596: /* when_then_expr ::= WHEN common_expression THEN common_expression */ #line 1243 "sql.y" { yymsp[-3].minor.yy54 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54)); } -#line 8208 "sql.c" +#line 8152 "sql.c" break; case 598: /* case_when_else_opt ::= ELSE common_expression */ #line 1246 "sql.y" { yymsp[-1].minor.yy54 = releaseRawExprNode(pCxt, yymsp[0].minor.yy54); } -#line 8213 "sql.c" +#line 8157 "sql.c" break; case 599: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 604: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==604); @@ -8220,7 +8164,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy922, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8223 "sql.c" +#line 8167 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 600: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ @@ -8230,7 +8174,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy54), releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8233 "sql.c" +#line 8177 "sql.c" yymsp[-4].minor.yy54 = yylhsminor.yy54; break; case 601: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ @@ -8240,7 +8184,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy54), releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8243 "sql.c" +#line 8187 "sql.c" yymsp[-5].minor.yy54 = yylhsminor.yy54; break; case 602: /* predicate ::= expr_or_subquery IS NULL */ @@ -8249,7 +8193,7 @@ yymsp[0].minor.yy54); } SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), NULL)); } -#line 8252 "sql.c" +#line 8196 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 603: /* predicate ::= expr_or_subquery IS NOT NULL */ @@ -8258,78 +8202,78 @@ yymsp[0].minor.yy54); } SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), NULL)); } -#line 8261 "sql.c" +#line 8205 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 605: /* compare_op ::= NK_LT */ #line 1283 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_LOWER_THAN; } -#line 8267 "sql.c" +#line 8211 "sql.c" break; case 606: /* compare_op ::= NK_GT */ #line 1284 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_GREATER_THAN; } -#line 8272 "sql.c" +#line 8216 "sql.c" break; case 607: /* compare_op ::= NK_LE */ #line 1285 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_LOWER_EQUAL; } -#line 8277 "sql.c" +#line 8221 "sql.c" break; case 608: /* compare_op ::= NK_GE */ #line 1286 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_GREATER_EQUAL; } -#line 8282 "sql.c" +#line 8226 "sql.c" break; case 609: /* compare_op ::= NK_NE */ #line 1287 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_NOT_EQUAL; } -#line 8287 "sql.c" +#line 8231 "sql.c" break; case 610: /* compare_op ::= NK_EQ */ #line 1288 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_EQUAL; } -#line 8292 "sql.c" +#line 8236 "sql.c" break; case 611: /* compare_op ::= LIKE */ #line 1289 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_LIKE; } -#line 8297 "sql.c" +#line 8241 "sql.c" break; case 612: /* compare_op ::= NOT LIKE */ #line 1290 "sql.y" { yymsp[-1].minor.yy922 = OP_TYPE_NOT_LIKE; } -#line 8302 "sql.c" +#line 8246 "sql.c" break; case 613: /* compare_op ::= MATCH */ #line 1291 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_MATCH; } -#line 8307 "sql.c" +#line 8251 "sql.c" break; case 614: /* compare_op ::= NMATCH */ #line 1292 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_NMATCH; } -#line 8312 "sql.c" +#line 8256 "sql.c" break; case 615: /* compare_op ::= CONTAINS */ #line 1293 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_JSON_CONTAINS; } -#line 8317 "sql.c" +#line 8261 "sql.c" break; case 616: /* in_op ::= IN */ #line 1297 "sql.y" { yymsp[0].minor.yy922 = OP_TYPE_IN; } -#line 8322 "sql.c" +#line 8266 "sql.c" break; case 617: /* in_op ::= NOT IN */ #line 1298 "sql.y" { yymsp[-1].minor.yy922 = OP_TYPE_NOT_IN; } -#line 8327 "sql.c" +#line 8271 "sql.c" break; case 618: /* in_predicate_value ::= NK_LP literal_list NK_RP */ #line 1300 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy652)); } -#line 8332 "sql.c" +#line 8276 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 620: /* boolean_value_expression ::= NOT boolean_primary */ @@ -8338,7 +8282,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy54), NULL)); } -#line 8341 "sql.c" +#line 8285 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 621: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ @@ -8348,7 +8292,7 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8351 "sql.c" +#line 8295 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 622: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ @@ -8358,48 +8302,48 @@ yymsp[0].minor.yy54); } SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy54); yylhsminor.yy54 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8361 "sql.c" +#line 8305 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 630: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ #line 1333 "sql.y" { yylhsminor.yy54 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, JOIN_STYPE_NONE, yymsp[-2].minor.yy54, yymsp[0].minor.yy54, NULL); } -#line 8367 "sql.c" +#line 8311 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 633: /* table_primary ::= table_name alias_opt */ #line 1339 "sql.y" { yylhsminor.yy54 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy837, &yymsp[0].minor.yy837); } -#line 8373 "sql.c" +#line 8317 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 634: /* table_primary ::= db_name NK_DOT table_name alias_opt */ #line 1340 "sql.y" { yylhsminor.yy54 = createRealTableNode(pCxt, &yymsp[-3].minor.yy837, &yymsp[-1].minor.yy837, &yymsp[0].minor.yy837); } -#line 8379 "sql.c" +#line 8323 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 635: /* table_primary ::= subquery alias_opt */ #line 1341 "sql.y" { yylhsminor.yy54 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy54), &yymsp[0].minor.yy837); } -#line 8385 "sql.c" +#line 8329 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 637: /* alias_opt ::= */ #line 1346 "sql.y" { yymsp[1].minor.yy837 = nil_token; } -#line 8391 "sql.c" +#line 8335 "sql.c" break; case 639: /* alias_opt ::= AS table_alias */ #line 1348 "sql.y" { yymsp[-1].minor.yy837 = yymsp[0].minor.yy837; } -#line 8396 "sql.c" +#line 8340 "sql.c" break; case 640: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 641: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==641); #line 1350 "sql.y" { yymsp[-2].minor.yy54 = yymsp[-1].minor.yy54; } -#line 8402 "sql.c" +#line 8346 "sql.c" break; case 642: /* joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ #line 1356 "sql.y" @@ -8408,73 +8352,73 @@ yymsp[0].minor.yy54); } yylhsminor.yy54 = addWindowOffsetClause(pCxt, yylhsminor.yy54, yymsp[-1].minor.yy54); yylhsminor.yy54 = addJLimitClause(pCxt, yylhsminor.yy54, yymsp[0].minor.yy54); } -#line 8411 "sql.c" +#line 8355 "sql.c" yymsp[-7].minor.yy54 = yylhsminor.yy54; break; case 643: /* join_type ::= */ #line 1364 "sql.y" { yymsp[1].minor.yy230 = JOIN_TYPE_INNER; } -#line 8417 "sql.c" +#line 8361 "sql.c" break; case 644: /* join_type ::= INNER */ #line 1365 "sql.y" { yymsp[0].minor.yy230 = JOIN_TYPE_INNER; } -#line 8422 "sql.c" +#line 8366 "sql.c" break; case 645: /* join_type ::= LEFT */ #line 1366 "sql.y" { yymsp[0].minor.yy230 = JOIN_TYPE_LEFT; } -#line 8427 "sql.c" +#line 8371 "sql.c" break; case 646: /* join_type ::= RIGHT */ #line 1367 "sql.y" { yymsp[0].minor.yy230 = JOIN_TYPE_RIGHT; } -#line 8432 "sql.c" +#line 8376 "sql.c" break; case 647: /* join_type ::= FULL */ #line 1368 "sql.y" { yymsp[0].minor.yy230 = JOIN_TYPE_FULL; } -#line 8437 "sql.c" +#line 8381 "sql.c" break; case 648: /* join_subtype ::= */ #line 1372 "sql.y" { yymsp[1].minor.yy948 = JOIN_STYPE_NONE; } -#line 8442 "sql.c" +#line 8386 "sql.c" break; case 649: /* join_subtype ::= OUTER */ #line 1373 "sql.y" { yymsp[0].minor.yy948 = JOIN_STYPE_OUTER; } -#line 8447 "sql.c" +#line 8391 "sql.c" break; case 650: /* join_subtype ::= SEMI */ #line 1374 "sql.y" { yymsp[0].minor.yy948 = JOIN_STYPE_SEMI; } -#line 8452 "sql.c" +#line 8396 "sql.c" break; case 651: /* join_subtype ::= ANTI */ #line 1375 "sql.y" { yymsp[0].minor.yy948 = JOIN_STYPE_ANTI; } -#line 8457 "sql.c" +#line 8401 "sql.c" break; case 652: /* join_subtype ::= ASOF */ #line 1376 "sql.y" { yymsp[0].minor.yy948 = JOIN_STYPE_ASOF; } -#line 8462 "sql.c" +#line 8406 "sql.c" break; case 653: /* join_subtype ::= WINDOW */ #line 1377 "sql.y" { yymsp[0].minor.yy948 = JOIN_STYPE_WIN; } -#line 8467 "sql.c" +#line 8411 "sql.c" break; case 657: /* window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ #line 1384 "sql.y" { yymsp[-5].minor.yy54 = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), releaseRawExprNode(pCxt, yymsp[-1].minor.yy54)); } -#line 8472 "sql.c" +#line 8416 "sql.c" break; case 658: /* window_offset_literal ::= NK_VARIABLE */ #line 1386 "sql.y" { yylhsminor.yy54 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createTimeOffsetValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 8477 "sql.c" +#line 8421 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 659: /* window_offset_literal ::= NK_MINUS NK_VARIABLE */ @@ -8484,7 +8428,7 @@ yymsp[0].minor.yy54); } t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy54 = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t)); } -#line 8487 "sql.c" +#line 8431 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 661: /* jlimit_clause_opt ::= JLIMIT NK_INTEGER */ @@ -8492,7 +8436,7 @@ yymsp[0].minor.yy54); } case 736: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==736); #line 1394 "sql.y" { yymsp[-1].minor.yy54 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 8495 "sql.c" +#line 8439 "sql.c" break; case 662: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ #line 1400 "sql.y" @@ -8508,42 +8452,42 @@ yymsp[0].minor.yy54); } yymsp[-13].minor.yy54 = addEveryClause(pCxt, yymsp[-13].minor.yy54, yymsp[-4].minor.yy54); yymsp[-13].minor.yy54 = addFillClause(pCxt, yymsp[-13].minor.yy54, yymsp[-3].minor.yy54); } -#line 8511 "sql.c" +#line 8455 "sql.c" break; case 663: /* hint_list ::= */ #line 1415 "sql.y" { yymsp[1].minor.yy652 = createHintNodeList(pCxt, NULL); } -#line 8516 "sql.c" +#line 8460 "sql.c" break; case 664: /* hint_list ::= NK_HINT */ #line 1416 "sql.y" { yylhsminor.yy652 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } -#line 8521 "sql.c" +#line 8465 "sql.c" yymsp[0].minor.yy652 = yylhsminor.yy652; break; case 669: /* set_quantifier_opt ::= ALL */ #line 1427 "sql.y" { yymsp[0].minor.yy325 = false; } -#line 8527 "sql.c" +#line 8471 "sql.c" break; case 672: /* select_item ::= NK_STAR */ #line 1434 "sql.y" { yylhsminor.yy54 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } -#line 8532 "sql.c" +#line 8476 "sql.c" yymsp[0].minor.yy54 = yylhsminor.yy54; break; case 674: /* select_item ::= common_expression column_alias */ case 684: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==684); #line 1436 "sql.y" { yylhsminor.yy54 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy54), &yymsp[0].minor.yy837); } -#line 8539 "sql.c" +#line 8483 "sql.c" yymsp[-1].minor.yy54 = yylhsminor.yy54; break; case 675: /* select_item ::= common_expression AS column_alias */ case 685: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==685); #line 1437 "sql.y" { yylhsminor.yy54 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), &yymsp[0].minor.yy837); } -#line 8546 "sql.c" +#line 8490 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 680: /* partition_by_clause_opt ::= PARTITION BY partition_list */ @@ -8551,109 +8495,109 @@ yymsp[0].minor.yy54); } case 730: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==730); #line 1446 "sql.y" { yymsp[-2].minor.yy652 = yymsp[0].minor.yy652; } -#line 8554 "sql.c" +#line 8498 "sql.c" break; case 687: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ #line 1459 "sql.y" { yymsp[-5].minor.yy54 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), releaseRawExprNode(pCxt, yymsp[-1].minor.yy54)); } -#line 8559 "sql.c" +#line 8503 "sql.c" break; case 688: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ #line 1460 "sql.y" { yymsp[-3].minor.yy54 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy54)); } -#line 8564 "sql.c" +#line 8508 "sql.c" break; case 689: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ #line 1462 "sql.y" { yymsp[-5].minor.yy54 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), NULL, yymsp[-1].minor.yy54, yymsp[0].minor.yy54); } -#line 8569 "sql.c" +#line 8513 "sql.c" break; case 690: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ #line 1466 "sql.y" { yymsp[-7].minor.yy54 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy54), releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), yymsp[-1].minor.yy54, yymsp[0].minor.yy54); } -#line 8574 "sql.c" +#line 8518 "sql.c" break; case 691: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ #line 1468 "sql.y" { yymsp[-6].minor.yy54 = createEventWindowNode(pCxt, yymsp[-3].minor.yy54, yymsp[0].minor.yy54); } -#line 8579 "sql.c" +#line 8523 "sql.c" break; case 692: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ #line 1470 "sql.y" { yymsp[-3].minor.yy54 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } -#line 8584 "sql.c" +#line 8528 "sql.c" break; case 693: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ #line 1472 "sql.y" { yymsp[-5].minor.yy54 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } -#line 8589 "sql.c" +#line 8533 "sql.c" break; case 700: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ #line 1482 "sql.y" { yymsp[-3].minor.yy54 = createFillNode(pCxt, yymsp[-1].minor.yy478, NULL); } -#line 8594 "sql.c" +#line 8538 "sql.c" break; case 701: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ #line 1483 "sql.y" { yymsp[-5].minor.yy54 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy652)); } -#line 8599 "sql.c" +#line 8543 "sql.c" break; case 702: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ #line 1484 "sql.y" { yymsp[-5].minor.yy54 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy652)); } -#line 8604 "sql.c" +#line 8548 "sql.c" break; case 703: /* fill_mode ::= NONE */ #line 1488 "sql.y" { yymsp[0].minor.yy478 = FILL_MODE_NONE; } -#line 8609 "sql.c" +#line 8553 "sql.c" break; case 704: /* fill_mode ::= PREV */ #line 1489 "sql.y" { yymsp[0].minor.yy478 = FILL_MODE_PREV; } -#line 8614 "sql.c" +#line 8558 "sql.c" break; case 705: /* fill_mode ::= NULL */ #line 1490 "sql.y" { yymsp[0].minor.yy478 = FILL_MODE_NULL; } -#line 8619 "sql.c" +#line 8563 "sql.c" break; case 706: /* fill_mode ::= NULL_F */ #line 1491 "sql.y" { yymsp[0].minor.yy478 = FILL_MODE_NULL_F; } -#line 8624 "sql.c" +#line 8568 "sql.c" break; case 707: /* fill_mode ::= LINEAR */ #line 1492 "sql.y" { yymsp[0].minor.yy478 = FILL_MODE_LINEAR; } -#line 8629 "sql.c" +#line 8573 "sql.c" break; case 708: /* fill_mode ::= NEXT */ #line 1493 "sql.y" { yymsp[0].minor.yy478 = FILL_MODE_NEXT; } -#line 8634 "sql.c" +#line 8578 "sql.c" break; case 711: /* group_by_list ::= expr_or_subquery */ #line 1502 "sql.y" { yylhsminor.yy652 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8639 "sql.c" +#line 8583 "sql.c" yymsp[0].minor.yy652 = yylhsminor.yy652; break; case 712: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ #line 1503 "sql.y" { yylhsminor.yy652 = addNodeToList(pCxt, yymsp[-2].minor.yy652, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy54))); } -#line 8645 "sql.c" +#line 8589 "sql.c" yymsp[-2].minor.yy652 = yylhsminor.yy652; break; case 716: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ #line 1510 "sql.y" { yymsp[-5].minor.yy54 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy54), releaseRawExprNode(pCxt, yymsp[-1].minor.yy54)); } -#line 8651 "sql.c" +#line 8595 "sql.c" break; case 717: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ #line 1512 "sql.y" { yymsp[-3].minor.yy54 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy54)); } -#line 8656 "sql.c" +#line 8600 "sql.c" break; case 720: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ #line 1519 "sql.y" @@ -8662,91 +8606,91 @@ yymsp[0].minor.yy54); } yylhsminor.yy54 = addSlimitClause(pCxt, yylhsminor.yy54, yymsp[-1].minor.yy54); yylhsminor.yy54 = addLimitClause(pCxt, yylhsminor.yy54, yymsp[0].minor.yy54); } -#line 8665 "sql.c" +#line 8609 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 723: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ #line 1529 "sql.y" { yylhsminor.yy54 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy54, yymsp[0].minor.yy54); } -#line 8671 "sql.c" +#line 8615 "sql.c" yymsp[-3].minor.yy54 = yylhsminor.yy54; break; case 724: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ #line 1531 "sql.y" { yylhsminor.yy54 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy54, yymsp[0].minor.yy54); } -#line 8677 "sql.c" +#line 8621 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 733: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 737: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==737); #line 1546 "sql.y" { yymsp[-3].minor.yy54 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } -#line 8684 "sql.c" +#line 8628 "sql.c" break; case 734: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 738: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==738); #line 1547 "sql.y" { yymsp[-3].minor.yy54 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } -#line 8690 "sql.c" +#line 8634 "sql.c" break; case 739: /* subquery ::= NK_LP query_expression NK_RP */ #line 1555 "sql.y" { yylhsminor.yy54 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy54); } -#line 8695 "sql.c" +#line 8639 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 744: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ #line 1569 "sql.y" { yylhsminor.yy54 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy54), yymsp[-1].minor.yy760, yymsp[0].minor.yy503); } -#line 8701 "sql.c" +#line 8645 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 745: /* ordering_specification_opt ::= */ #line 1573 "sql.y" { yymsp[1].minor.yy760 = ORDER_ASC; } -#line 8707 "sql.c" +#line 8651 "sql.c" break; case 746: /* ordering_specification_opt ::= ASC */ #line 1574 "sql.y" { yymsp[0].minor.yy760 = ORDER_ASC; } -#line 8712 "sql.c" +#line 8656 "sql.c" break; case 747: /* ordering_specification_opt ::= DESC */ #line 1575 "sql.y" { yymsp[0].minor.yy760 = ORDER_DESC; } -#line 8717 "sql.c" +#line 8661 "sql.c" break; case 748: /* null_ordering_opt ::= */ #line 1579 "sql.y" { yymsp[1].minor.yy503 = NULL_ORDER_DEFAULT; } -#line 8722 "sql.c" +#line 8666 "sql.c" break; case 749: /* null_ordering_opt ::= NULLS FIRST */ #line 1580 "sql.y" { yymsp[-1].minor.yy503 = NULL_ORDER_FIRST; } -#line 8727 "sql.c" +#line 8671 "sql.c" break; case 750: /* null_ordering_opt ::= NULLS LAST */ #line 1581 "sql.y" { yymsp[-1].minor.yy503 = NULL_ORDER_LAST; } -#line 8732 "sql.c" +#line 8676 "sql.c" break; case 753: /* column_options ::= column_options ENCODE NK_STRING */ #line 1589 "sql.y" { yylhsminor.yy54 = setColumnOptions(pCxt, yymsp[-2].minor.yy54, COLUMN_OPTION_ENCODE, &yymsp[0].minor.yy0); } -#line 8737 "sql.c" +#line 8681 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 754: /* column_options ::= column_options COMPRESS NK_STRING */ #line 1590 "sql.y" { yylhsminor.yy54 = setColumnOptions(pCxt, yymsp[-2].minor.yy54, COLUMN_OPTION_COMPRESS, &yymsp[0].minor.yy0); } -#line 8743 "sql.c" +#line 8687 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; case 755: /* column_options ::= column_options LEVEL NK_STRING */ #line 1591 "sql.y" { yylhsminor.yy54 = setColumnOptions(pCxt, yymsp[-2].minor.yy54, COLUMN_OPTION_LEVEL, &yymsp[0].minor.yy0); } -#line 8749 "sql.c" +#line 8693 "sql.c" yymsp[-2].minor.yy54 = yylhsminor.yy54; break; default: @@ -8820,7 +8764,7 @@ static void yy_syntax_error( } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } -#line 8823 "sql.c" +#line 8767 "sql.c" /************ End %syntax_error code ******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE From 2292829e47cdc072cdcf5d4f064186a4efb03093 Mon Sep 17 00:00:00 2001 From: Shungang Li Date: Tue, 25 Jun 2024 09:43:41 +0800 Subject: [PATCH 30/36] fix: add check for memory alloc --- source/libs/parser/src/parTranslater.c | 27 ++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index b6fd0f5d0e..cc309c21f9 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -12413,10 +12413,10 @@ static int32_t rewriteCreateTable(STranslateContext* pCxt, SQuery* pQuery) { return code; } -static void addCreateTbReqIntoVgroup(SHashObj* pVgroupHashmap, const char* dbName, uint64_t suid, - const char* sTableName, const char* tableName, SArray* tagName, uint8_t tagNum, - const STag* pTag, int32_t ttl, const char* comment, bool ignoreExists, - SVgroupInfo* pVgInfo) { +static int32_t addCreateTbReqIntoVgroup(SHashObj* pVgroupHashmap, const char* dbName, uint64_t suid, + const char* sTableName, const char* tableName, SArray* tagName, uint8_t tagNum, + const STag* pTag, int32_t ttl, const char* comment, bool ignoreExists, + SVgroupInfo* pVgInfo) { struct SVCreateTbReq req = {0}; req.type = TD_CHILD_TABLE; req.name = taosStrdup(tableName); @@ -12436,6 +12436,11 @@ static void addCreateTbReqIntoVgroup(SHashObj* pVgroupHashmap, const char* dbNam req.flags |= TD_CREATE_IF_NOT_EXISTS; } + if (!req.name || !req.ctb.stbName || !req.ctb.tagName || (comment && !req.comment)) { + tdDestroySVCreateTbReq(&req); + return TSDB_CODE_OUT_OF_MEMORY; + } + SVgroupCreateTableBatch* pTableBatch = taosHashGet(pVgroupHashmap, &pVgInfo->vgId, sizeof(pVgInfo->vgId)); if (pTableBatch == NULL) { SVgroupCreateTableBatch tBatch = {0}; @@ -12449,6 +12454,8 @@ static void addCreateTbReqIntoVgroup(SHashObj* pVgroupHashmap, const char* dbNam } else { // add to the correct vgroup taosArrayPush(pTableBatch->req.pArray, &req); } + + return TSDB_CODE_SUCCESS; } static int32_t createCastFuncForTag(STranslateContext* pCxt, SNode* pNode, SDataType dt, SNode** pCast) { @@ -12638,9 +12645,9 @@ static int32_t rewriteCreateSubTable(STranslateContext* pCxt, SCreateSubTableCla } if (TSDB_CODE_SUCCESS == code) { const char* comment = pStmt->pOptions->commentNull ? NULL : pStmt->pOptions->comment; - addCreateTbReqIntoVgroup(pVgroupHashmap, pStmt->dbName, pSuperTableMeta->uid, pStmt->useTableName, pStmt->tableName, - tagName, pSuperTableMeta->tableInfo.numOfTags, pTag, pStmt->pOptions->ttl, comment, - pStmt->ignoreExists, &info); + code = addCreateTbReqIntoVgroup(pVgroupHashmap, pStmt->dbName, pSuperTableMeta->uid, pStmt->useTableName, + pStmt->tableName, tagName, pSuperTableMeta->tableInfo.numOfTags, pTag, + pStmt->pOptions->ttl, comment, pStmt->ignoreExists, &info); } else { taosMemoryFree(pTag); } @@ -12971,9 +12978,9 @@ static int32_t rewriteCreateSubTableFromFile(STranslateContext* pCxt, SCreateSub taosMemoryFree(pData->pTag); } - addCreateTbReqIntoVgroup(pVgroupHashmap, pStmt->useDbName, pSuperTableMeta->uid, pStmt->useTableName, - pData->ctbName.tname, pData->aTagNames, pSuperTableMeta->tableInfo.numOfTags, - pData->pTag, TSDB_DEFAULT_TABLE_TTL, NULL, pStmt->ignoreExists, &pData->vg); + code = addCreateTbReqIntoVgroup(pVgroupHashmap, pStmt->useDbName, pSuperTableMeta->uid, pStmt->useTableName, + pData->ctbName.tname, pData->aTagNames, pSuperTableMeta->tableInfo.numOfTags, + pData->pTag, TSDB_DEFAULT_TABLE_TTL, NULL, pStmt->ignoreExists, &pData->vg); } } From 41021285a1ac603ab80432cd062d1b73498d7dfd Mon Sep 17 00:00:00 2001 From: Shungang Li Date: Tue, 25 Jun 2024 11:36:55 +0800 Subject: [PATCH 31/36] fix: more ret check --- source/libs/parser/src/parTranslater.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index cc309c21f9..f11e4460f8 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -12665,6 +12665,10 @@ static int32_t buildTagIndexForBindTags(SMsgBuf* pMsgBuf, SCreateSubTableFromFil SSchema* pSchema = getTableTagSchema(pSuperTableMeta); SHashObj* pIdxHash = taosHashInit(16, taosGetDefaultHashFunction(TSDB_DATA_TYPE_INT), false, HASH_NO_LOCK); + if (NULL == pIdxHash) { + return TSDB_CODE_OUT_OF_MEMORY; + } + bool tbnameFound = false; SNode* pTagNode; @@ -12716,14 +12720,24 @@ static int32_t buildTagIndexForBindTags(SMsgBuf* pMsgBuf, SCreateSubTableFromFil if (code) break; - taosHashPut(pIdxHash, &idx, sizeof(idx), NULL, 0); - taosArrayPush(pStmt->aTagIndexs, &idx); + if (taosHashPut(pIdxHash, &idx, sizeof(idx), NULL, 0) < 0) { + parserError("buildTagIndexForBindTags error, failed to put idx"); + code = terrno; + goto _OUT; + } + + if (NULL == taosArrayPush(pStmt->aTagIndexs, &idx)) { + parserError("buildTagIndexForBindTags error, failed to push idx"); + code = TSDB_CODE_OUT_OF_MEMORY; + goto _OUT; + } } if (!tbnameFound) { code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_TBNAME_ERROR); } +_OUT: taosHashCleanup(pIdxHash); return code; } From 586f8094c2f1832f1c91a456d7bc05f651e07365 Mon Sep 17 00:00:00 2001 From: Shungang Li Date: Tue, 25 Jun 2024 14:10:34 +0800 Subject: [PATCH 32/36] fix: handle mac/win compile warn --- source/libs/parser/src/parTranslater.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index f11e4460f8..5ae631f2e7 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -12675,8 +12675,8 @@ static int32_t buildTagIndexForBindTags(SMsgBuf* pMsgBuf, SCreateSubTableFromFil FOREACH(pTagNode, pStmt->pSpecificTags) { int32_t idx = -1; - switch (nodeType(pTagNode)) { - case QUERY_NODE_COLUMN: { + do { + if (QUERY_NODE_COLUMN == nodeType(pTagNode)) { SColumnNode* pColNode = (SColumnNode*)pTagNode; for (int32_t index = 0; index < numOfTags; index++) { if (strlen(pSchema[index].name) == strlen(pColNode->colName) && @@ -12695,9 +12695,7 @@ static int32_t buildTagIndexForBindTags(SMsgBuf* pMsgBuf, SCreateSubTableFromFil code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_TAG_NAME_DUPLICATED, pColNode->colName); break; } - break; - } - case QUERY_NODE_FUNCTION: { + } else if (QUERY_NODE_FUNCTION == nodeType(pTagNode)) { SFunctionNode* funcNode = (SFunctionNode*)pTagNode; if (strlen("tbname") != strlen(funcNode->functionName) || strcmp("tbname", funcNode->functionName) != 0) { code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_INVALID_TAG_NAME, funcNode->functionName); @@ -12710,24 +12708,20 @@ static int32_t buildTagIndexForBindTags(SMsgBuf* pMsgBuf, SCreateSubTableFromFil code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_TAG_NAME_DUPLICATED, funcNode->functionName); break; } - break; - } - defalut: { + } else { code = generateSyntaxErrMsg(pMsgBuf, TSDB_CODE_PAR_INVALID_TAG_NAME, "invalid node type"); break; } - } + } while (0); if (code) break; if (taosHashPut(pIdxHash, &idx, sizeof(idx), NULL, 0) < 0) { - parserError("buildTagIndexForBindTags error, failed to put idx"); code = terrno; goto _OUT; } if (NULL == taosArrayPush(pStmt->aTagIndexs, &idx)) { - parserError("buildTagIndexForBindTags error, failed to push idx"); code = TSDB_CODE_OUT_OF_MEMORY; goto _OUT; } From b55337ec42d1fef9c34be063a75db41cf6f0a761 Mon Sep 17 00:00:00 2001 From: Shungang Li Date: Tue, 25 Jun 2024 14:34:59 +0800 Subject: [PATCH 33/36] feat: 'create table' ignore lines start with '#' --- source/libs/parser/src/parTranslater.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 5ae631f2e7..f699bfb31c 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -12860,6 +12860,8 @@ static int32_t parseCsvFile(SMsgBuf* pMsgBuf, SParseContext* pParseCxt, SParseFi if (readLen == 0) continue; + if (pLine[0] == '#') continue; + strtolower(pLine, pLine); pParseFileCtx->pSql = pLine; From 4235045d72ff3dcc261422e9b6065f6d873c8fb0 Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao> Date: Tue, 25 Jun 2024 14:36:21 +0800 Subject: [PATCH 34/36] adj delete range --- source/libs/executor/src/streamfilloperator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libs/executor/src/streamfilloperator.c b/source/libs/executor/src/streamfilloperator.c index 50cd5eea17..c1a38b66ba 100644 --- a/source/libs/executor/src/streamfilloperator.c +++ b/source/libs/executor/src/streamfilloperator.c @@ -790,7 +790,7 @@ static void doDeleteFillFinalize(SOperatorInfo* pOperator) { SStreamFillOperatorInfo* pInfo = pOperator->info; SStreamFillInfo* pFillInfo = pInfo->pFillInfo; int32_t size = taosArrayGetSize(pFillInfo->delRanges); - for (; pFillInfo->delIndex < size; pFillInfo->delIndex++) { + while (pFillInfo->delIndex < size) { STimeRange* range = taosArrayGet(pFillInfo->delRanges, pFillInfo->delIndex); if (pInfo->pRes->info.id.groupId != 0 && pInfo->pRes->info.id.groupId != range->groupId) { return; @@ -801,6 +801,7 @@ static void doDeleteFillFinalize(SOperatorInfo* pOperator) { getWindowInfoByKey(pAPI, pOperator->pTaskInfo->streamInfo.pState, realEnd, range->groupId, &pInfo->pFillSup->next); } setDeleteFillValueInfo(range->skey, range->ekey, pInfo->pFillSup, pInfo->pFillInfo); + pFillInfo->delIndex++; if (pInfo->pFillInfo->needFill) { doStreamFillRange(pInfo->pFillInfo, pInfo->pFillSup, pInfo->pRes); pInfo->pRes->info.id.groupId = range->groupId; From c2ad0a6ec54ac8e2b83384b4b9735a3b7f3e37aa Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 25 Jun 2024 16:53:32 +0800 Subject: [PATCH 35/36] Revert "fix(stream):fill result immediately after delete data" --- source/libs/executor/src/streamfilloperator.c | 57 +++++-------------- .../executor/src/streamtimewindowoperator.c | 34 ++++------- source/libs/stream/src/streamBackendRocksdb.c | 4 +- 3 files changed, 28 insertions(+), 67 deletions(-) diff --git a/source/libs/executor/src/streamfilloperator.c b/source/libs/executor/src/streamfilloperator.c index c1a38b66ba..1cdd7d2d87 100644 --- a/source/libs/executor/src/streamfilloperator.c +++ b/source/libs/executor/src/streamfilloperator.c @@ -172,17 +172,10 @@ void getWindowFromDiscBuf(SOperatorInfo* pOperator, TSKEY ts, uint64_t groupId, SWinKey key = {.ts = ts, .groupId = groupId}; void* curVal = NULL; int32_t curVLen = 0; - bool hasCurKey = true; int32_t code = pAPI->stateStore.streamStateFillGet(pState, &key, (void**)&curVal, &curVLen); - if (code == TSDB_CODE_SUCCESS) { - pFillSup->cur.key = key.ts; - pFillSup->cur.pRowVal = curVal; - } else { - qDebug("streamStateFillGet key failed, Data may be deleted. ts:%" PRId64 ", groupId:%" PRId64, ts, groupId); - pFillSup->cur.key = ts; - pFillSup->cur.pRowVal = NULL; - hasCurKey = false; - } + ASSERT(code == TSDB_CODE_SUCCESS); + pFillSup->cur.key = key.ts; + pFillSup->cur.pRowVal = curVal; SStreamStateCur* pCur = pAPI->stateStore.streamStateFillSeekKeyPrev(pState, &key); SWinKey preKey = {.ts = INT64_MIN, .groupId = groupId}; @@ -194,10 +187,8 @@ void getWindowFromDiscBuf(SOperatorInfo* pOperator, TSKEY ts, uint64_t groupId, pFillSup->prev.key = preKey.ts; pFillSup->prev.pRowVal = preVal; - if (hasCurKey) { - code = pAPI->stateStore.streamStateCurNext(pState, pCur); - ASSERT(code == TSDB_CODE_SUCCESS); - } + code = pAPI->stateStore.streamStateCurNext(pState, pCur); + ASSERT(code == TSDB_CODE_SUCCESS); code = pAPI->stateStore.streamStateCurNext(pState, pCur); if (code != TSDB_CODE_SUCCESS) { @@ -750,8 +741,8 @@ static void doDeleteFillResultImpl(SOperatorInfo* pOperator, TSKEY startTs, TSKE getWindowFromDiscBuf(pOperator, startTs, groupId, pInfo->pFillSup); setDeleteFillValueInfo(startTs, endTs, pInfo->pFillSup, pInfo->pFillInfo); SWinKey key = {.ts = startTs, .groupId = groupId}; - pAPI->stateStore.streamStateFillDel(pOperator->pTaskInfo->streamInfo.pState, &key); if (!pInfo->pFillInfo->needFill) { + pAPI->stateStore.streamStateFillDel(pOperator->pTaskInfo->streamInfo.pState, &key); buildDeleteResult(pOperator, startTs, endTs, groupId, pInfo->pDelRes); } else { STimeRange tw = { @@ -760,27 +751,11 @@ static void doDeleteFillResultImpl(SOperatorInfo* pOperator, TSKEY startTs, TSKE .groupId = groupId, }; taosArrayPush(pInfo->pFillInfo->delRanges, &tw); - } -} - -static void getWindowInfoByKey(SStorageAPI* pAPI, void* pState, TSKEY ts, int64_t groupId, SResultRowData* pWinData) { - SWinKey key = {.ts = ts, .groupId = groupId}; - void* val = NULL; - int32_t len = 0; - int32_t code = pAPI->stateStore.streamStateFillGet(pState, &key, (void**)&val, &len); - if (code != TSDB_CODE_SUCCESS) { - qDebug("get window info by key failed, Data may be deleted, try next window. ts:%" PRId64 ", groupId:%" PRId64, ts, - groupId); - SStreamStateCur* pCur = pAPI->stateStore.streamStateFillSeekKeyNext(pState, &key); - code = pAPI->stateStore.streamStateGetGroupKVByCur(pCur, &key, (const void**)&val, &len); - pAPI->stateStore.streamStateFreeCur(pCur); - qDebug("get window info by key ts:%" PRId64 ", groupId:%" PRId64 ", res%d", ts, groupId, code); - } - - if (code == TSDB_CODE_SUCCESS) { - resetFillWindow(pWinData); - pWinData->key = key.ts; - pWinData->pRowVal = val; + while (key.ts <= endTs) { + key.ts = taosTimeAdd(key.ts, pInfo->pFillSup->interval.sliding, pInfo->pFillSup->interval.slidingUnit, + pInfo->pFillSup->interval.precision); + tSimpleHashPut(pInfo->pFillSup->pResMap, &key, sizeof(SWinKey), NULL, 0); + } } } @@ -790,22 +765,20 @@ static void doDeleteFillFinalize(SOperatorInfo* pOperator) { SStreamFillOperatorInfo* pInfo = pOperator->info; SStreamFillInfo* pFillInfo = pInfo->pFillInfo; int32_t size = taosArrayGetSize(pFillInfo->delRanges); - while (pFillInfo->delIndex < size) { + tSimpleHashClear(pInfo->pFillSup->pResMap); + for (; pFillInfo->delIndex < size; pFillInfo->delIndex++) { STimeRange* range = taosArrayGet(pFillInfo->delRanges, pFillInfo->delIndex); if (pInfo->pRes->info.id.groupId != 0 && pInfo->pRes->info.id.groupId != range->groupId) { return; } getWindowFromDiscBuf(pOperator, range->skey, range->groupId, pInfo->pFillSup); - TSKEY realEnd = range->ekey + 1; - if (pInfo->pFillInfo->type == TSDB_FILL_NEXT && pInfo->pFillSup->next.key != realEnd) { - getWindowInfoByKey(pAPI, pOperator->pTaskInfo->streamInfo.pState, realEnd, range->groupId, &pInfo->pFillSup->next); - } setDeleteFillValueInfo(range->skey, range->ekey, pInfo->pFillSup, pInfo->pFillInfo); - pFillInfo->delIndex++; if (pInfo->pFillInfo->needFill) { doStreamFillRange(pInfo->pFillInfo, pInfo->pFillSup, pInfo->pRes); pInfo->pRes->info.id.groupId = range->groupId; } + SWinKey key = {.ts = range->skey, .groupId = range->groupId}; + pAPI->stateStore.streamStateFillDel(pOperator->pTaskInfo->streamInfo.pState, &key); } } diff --git a/source/libs/executor/src/streamtimewindowoperator.c b/source/libs/executor/src/streamtimewindowoperator.c index 5b9c018bba..4d567f729e 100644 --- a/source/libs/executor/src/streamtimewindowoperator.c +++ b/source/libs/executor/src/streamtimewindowoperator.c @@ -2632,7 +2632,7 @@ int32_t doStreamSessionEncodeOpState(void** buf, int32_t len, SOperatorInfo* pOp } // 4.dataVersion - tlen += taosEncodeFixedI64(buf, pInfo->dataVersion); + tlen += taosEncodeFixedI32(buf, pInfo->dataVersion); // 5.checksum if (isParent) { @@ -3086,17 +3086,15 @@ SOperatorInfo* createStreamSessionAggOperatorInfo(SOperatorInfo* downstream, SPh pOperator->operatorType = QUERY_NODE_PHYSICAL_PLAN_STREAM_SESSION; setOperatorInfo(pOperator, getStreamOpName(pOperator->operatorType), QUERY_NODE_PHYSICAL_PLAN_STREAM_SESSION, true, OP_NOT_OPENED, pInfo, pTaskInfo); - if (pPhyNode->type != QUERY_NODE_PHYSICAL_PLAN_STREAM_FINAL_SESSION) { - // for stream - void* buff = NULL; - int32_t len = 0; - int32_t res = - pInfo->streamAggSup.stateStore.streamStateGetInfo(pInfo->streamAggSup.pState, STREAM_SESSION_OP_CHECKPOINT_NAME, - strlen(STREAM_SESSION_OP_CHECKPOINT_NAME), &buff, &len); - if (res == TSDB_CODE_SUCCESS) { - doStreamSessionDecodeOpState(buff, len, pOperator, true); - taosMemoryFree(buff); - } + // for stream + void* buff = NULL; + int32_t len = 0; + int32_t res = + pInfo->streamAggSup.stateStore.streamStateGetInfo(pInfo->streamAggSup.pState, STREAM_SESSION_OP_CHECKPOINT_NAME, + strlen(STREAM_SESSION_OP_CHECKPOINT_NAME), &buff, &len); + if (res == TSDB_CODE_SUCCESS) { + doStreamSessionDecodeOpState(buff, len, pOperator, true); + taosMemoryFree(buff); } pOperator->fpSet = createOperatorFpSet(optrDummyOpenFn, doStreamSessionAgg, NULL, destroyStreamSessionAggOperatorInfo, optrDefaultBufFn, NULL, optrDefaultGetNextExtFn, NULL); @@ -3281,16 +3279,6 @@ SOperatorInfo* createStreamFinalSessionAggOperatorInfo(SOperatorInfo* downstream pAPI->stateStore.streamStateSetNumber(pChInfo->streamAggSup.pState, i, pInfo->primaryTsIndex); taosArrayPush(pInfo->pChildren, &pChildOp); } - - void* buff = NULL; - int32_t len = 0; - int32_t res = - pInfo->streamAggSup.stateStore.streamStateGetInfo(pInfo->streamAggSup.pState, STREAM_SESSION_OP_CHECKPOINT_NAME, - strlen(STREAM_SESSION_OP_CHECKPOINT_NAME), &buff, &len); - if (res == TSDB_CODE_SUCCESS) { - doStreamSessionDecodeOpState(buff, len, pOperator, true); - taosMemoryFree(buff); - } } if (!IS_FINAL_SESSION_OP(pOperator) || numOfChild == 0) { @@ -3633,7 +3621,7 @@ int32_t doStreamStateEncodeOpState(void** buf, int32_t len, SOperatorInfo* pOper } // 4.dataVersion - tlen += taosEncodeFixedI64(buf, pInfo->dataVersion); + tlen += taosEncodeFixedI32(buf, pInfo->dataVersion); // 5.checksum if (isParent) { diff --git a/source/libs/stream/src/streamBackendRocksdb.c b/source/libs/stream/src/streamBackendRocksdb.c index 1986cc43e9..c151193284 100644 --- a/source/libs/stream/src/streamBackendRocksdb.c +++ b/source/libs/stream/src/streamBackendRocksdb.c @@ -3422,7 +3422,7 @@ SStreamStateCur* streamStateFillSeekKeyNext_rocksdb(SStreamState* pState, const size_t kLen = 0; char* keyStr = (char*)rocksdb_iter_key(pCur->iter, &kLen); winKeyDecode((void*)&curKey, keyStr); - if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) < 0) { + if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) > 0) { return pCur; } rocksdb_iter_next(pCur->iter); @@ -3459,7 +3459,7 @@ SStreamStateCur* streamStateFillSeekKeyPrev_rocksdb(SStreamState* pState, const size_t kLen = 0; char* keyStr = (char*)rocksdb_iter_key(pCur->iter, &kLen); winKeyDecode((void*)&curKey, keyStr); - if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) > 0) { + if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) < 0) { return pCur; } rocksdb_iter_prev(pCur->iter); From 25b150af10d6b8751c0a627f8644857fb3209a96 Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao> Date: Tue, 25 Jun 2024 17:24:59 +0800 Subject: [PATCH 36/36] fix(stream):fill result immediately after delete data --- source/libs/executor/src/streamfilloperator.c | 57 ++++++++++++++----- .../executor/src/streamtimewindowoperator.c | 34 +++++++---- source/libs/stream/src/streamBackendRocksdb.c | 4 +- 3 files changed, 67 insertions(+), 28 deletions(-) diff --git a/source/libs/executor/src/streamfilloperator.c b/source/libs/executor/src/streamfilloperator.c index 1cdd7d2d87..c1a38b66ba 100644 --- a/source/libs/executor/src/streamfilloperator.c +++ b/source/libs/executor/src/streamfilloperator.c @@ -172,10 +172,17 @@ void getWindowFromDiscBuf(SOperatorInfo* pOperator, TSKEY ts, uint64_t groupId, SWinKey key = {.ts = ts, .groupId = groupId}; void* curVal = NULL; int32_t curVLen = 0; + bool hasCurKey = true; int32_t code = pAPI->stateStore.streamStateFillGet(pState, &key, (void**)&curVal, &curVLen); - ASSERT(code == TSDB_CODE_SUCCESS); - pFillSup->cur.key = key.ts; - pFillSup->cur.pRowVal = curVal; + if (code == TSDB_CODE_SUCCESS) { + pFillSup->cur.key = key.ts; + pFillSup->cur.pRowVal = curVal; + } else { + qDebug("streamStateFillGet key failed, Data may be deleted. ts:%" PRId64 ", groupId:%" PRId64, ts, groupId); + pFillSup->cur.key = ts; + pFillSup->cur.pRowVal = NULL; + hasCurKey = false; + } SStreamStateCur* pCur = pAPI->stateStore.streamStateFillSeekKeyPrev(pState, &key); SWinKey preKey = {.ts = INT64_MIN, .groupId = groupId}; @@ -187,8 +194,10 @@ void getWindowFromDiscBuf(SOperatorInfo* pOperator, TSKEY ts, uint64_t groupId, pFillSup->prev.key = preKey.ts; pFillSup->prev.pRowVal = preVal; - code = pAPI->stateStore.streamStateCurNext(pState, pCur); - ASSERT(code == TSDB_CODE_SUCCESS); + if (hasCurKey) { + code = pAPI->stateStore.streamStateCurNext(pState, pCur); + ASSERT(code == TSDB_CODE_SUCCESS); + } code = pAPI->stateStore.streamStateCurNext(pState, pCur); if (code != TSDB_CODE_SUCCESS) { @@ -741,8 +750,8 @@ static void doDeleteFillResultImpl(SOperatorInfo* pOperator, TSKEY startTs, TSKE getWindowFromDiscBuf(pOperator, startTs, groupId, pInfo->pFillSup); setDeleteFillValueInfo(startTs, endTs, pInfo->pFillSup, pInfo->pFillInfo); SWinKey key = {.ts = startTs, .groupId = groupId}; + pAPI->stateStore.streamStateFillDel(pOperator->pTaskInfo->streamInfo.pState, &key); if (!pInfo->pFillInfo->needFill) { - pAPI->stateStore.streamStateFillDel(pOperator->pTaskInfo->streamInfo.pState, &key); buildDeleteResult(pOperator, startTs, endTs, groupId, pInfo->pDelRes); } else { STimeRange tw = { @@ -751,11 +760,27 @@ static void doDeleteFillResultImpl(SOperatorInfo* pOperator, TSKEY startTs, TSKE .groupId = groupId, }; taosArrayPush(pInfo->pFillInfo->delRanges, &tw); - while (key.ts <= endTs) { - key.ts = taosTimeAdd(key.ts, pInfo->pFillSup->interval.sliding, pInfo->pFillSup->interval.slidingUnit, - pInfo->pFillSup->interval.precision); - tSimpleHashPut(pInfo->pFillSup->pResMap, &key, sizeof(SWinKey), NULL, 0); - } + } +} + +static void getWindowInfoByKey(SStorageAPI* pAPI, void* pState, TSKEY ts, int64_t groupId, SResultRowData* pWinData) { + SWinKey key = {.ts = ts, .groupId = groupId}; + void* val = NULL; + int32_t len = 0; + int32_t code = pAPI->stateStore.streamStateFillGet(pState, &key, (void**)&val, &len); + if (code != TSDB_CODE_SUCCESS) { + qDebug("get window info by key failed, Data may be deleted, try next window. ts:%" PRId64 ", groupId:%" PRId64, ts, + groupId); + SStreamStateCur* pCur = pAPI->stateStore.streamStateFillSeekKeyNext(pState, &key); + code = pAPI->stateStore.streamStateGetGroupKVByCur(pCur, &key, (const void**)&val, &len); + pAPI->stateStore.streamStateFreeCur(pCur); + qDebug("get window info by key ts:%" PRId64 ", groupId:%" PRId64 ", res%d", ts, groupId, code); + } + + if (code == TSDB_CODE_SUCCESS) { + resetFillWindow(pWinData); + pWinData->key = key.ts; + pWinData->pRowVal = val; } } @@ -765,20 +790,22 @@ static void doDeleteFillFinalize(SOperatorInfo* pOperator) { SStreamFillOperatorInfo* pInfo = pOperator->info; SStreamFillInfo* pFillInfo = pInfo->pFillInfo; int32_t size = taosArrayGetSize(pFillInfo->delRanges); - tSimpleHashClear(pInfo->pFillSup->pResMap); - for (; pFillInfo->delIndex < size; pFillInfo->delIndex++) { + while (pFillInfo->delIndex < size) { STimeRange* range = taosArrayGet(pFillInfo->delRanges, pFillInfo->delIndex); if (pInfo->pRes->info.id.groupId != 0 && pInfo->pRes->info.id.groupId != range->groupId) { return; } getWindowFromDiscBuf(pOperator, range->skey, range->groupId, pInfo->pFillSup); + TSKEY realEnd = range->ekey + 1; + if (pInfo->pFillInfo->type == TSDB_FILL_NEXT && pInfo->pFillSup->next.key != realEnd) { + getWindowInfoByKey(pAPI, pOperator->pTaskInfo->streamInfo.pState, realEnd, range->groupId, &pInfo->pFillSup->next); + } setDeleteFillValueInfo(range->skey, range->ekey, pInfo->pFillSup, pInfo->pFillInfo); + pFillInfo->delIndex++; if (pInfo->pFillInfo->needFill) { doStreamFillRange(pInfo->pFillInfo, pInfo->pFillSup, pInfo->pRes); pInfo->pRes->info.id.groupId = range->groupId; } - SWinKey key = {.ts = range->skey, .groupId = range->groupId}; - pAPI->stateStore.streamStateFillDel(pOperator->pTaskInfo->streamInfo.pState, &key); } } diff --git a/source/libs/executor/src/streamtimewindowoperator.c b/source/libs/executor/src/streamtimewindowoperator.c index 4d567f729e..5b9c018bba 100644 --- a/source/libs/executor/src/streamtimewindowoperator.c +++ b/source/libs/executor/src/streamtimewindowoperator.c @@ -2632,7 +2632,7 @@ int32_t doStreamSessionEncodeOpState(void** buf, int32_t len, SOperatorInfo* pOp } // 4.dataVersion - tlen += taosEncodeFixedI32(buf, pInfo->dataVersion); + tlen += taosEncodeFixedI64(buf, pInfo->dataVersion); // 5.checksum if (isParent) { @@ -3086,15 +3086,17 @@ SOperatorInfo* createStreamSessionAggOperatorInfo(SOperatorInfo* downstream, SPh pOperator->operatorType = QUERY_NODE_PHYSICAL_PLAN_STREAM_SESSION; setOperatorInfo(pOperator, getStreamOpName(pOperator->operatorType), QUERY_NODE_PHYSICAL_PLAN_STREAM_SESSION, true, OP_NOT_OPENED, pInfo, pTaskInfo); - // for stream - void* buff = NULL; - int32_t len = 0; - int32_t res = - pInfo->streamAggSup.stateStore.streamStateGetInfo(pInfo->streamAggSup.pState, STREAM_SESSION_OP_CHECKPOINT_NAME, - strlen(STREAM_SESSION_OP_CHECKPOINT_NAME), &buff, &len); - if (res == TSDB_CODE_SUCCESS) { - doStreamSessionDecodeOpState(buff, len, pOperator, true); - taosMemoryFree(buff); + if (pPhyNode->type != QUERY_NODE_PHYSICAL_PLAN_STREAM_FINAL_SESSION) { + // for stream + void* buff = NULL; + int32_t len = 0; + int32_t res = + pInfo->streamAggSup.stateStore.streamStateGetInfo(pInfo->streamAggSup.pState, STREAM_SESSION_OP_CHECKPOINT_NAME, + strlen(STREAM_SESSION_OP_CHECKPOINT_NAME), &buff, &len); + if (res == TSDB_CODE_SUCCESS) { + doStreamSessionDecodeOpState(buff, len, pOperator, true); + taosMemoryFree(buff); + } } pOperator->fpSet = createOperatorFpSet(optrDummyOpenFn, doStreamSessionAgg, NULL, destroyStreamSessionAggOperatorInfo, optrDefaultBufFn, NULL, optrDefaultGetNextExtFn, NULL); @@ -3279,6 +3281,16 @@ SOperatorInfo* createStreamFinalSessionAggOperatorInfo(SOperatorInfo* downstream pAPI->stateStore.streamStateSetNumber(pChInfo->streamAggSup.pState, i, pInfo->primaryTsIndex); taosArrayPush(pInfo->pChildren, &pChildOp); } + + void* buff = NULL; + int32_t len = 0; + int32_t res = + pInfo->streamAggSup.stateStore.streamStateGetInfo(pInfo->streamAggSup.pState, STREAM_SESSION_OP_CHECKPOINT_NAME, + strlen(STREAM_SESSION_OP_CHECKPOINT_NAME), &buff, &len); + if (res == TSDB_CODE_SUCCESS) { + doStreamSessionDecodeOpState(buff, len, pOperator, true); + taosMemoryFree(buff); + } } if (!IS_FINAL_SESSION_OP(pOperator) || numOfChild == 0) { @@ -3621,7 +3633,7 @@ int32_t doStreamStateEncodeOpState(void** buf, int32_t len, SOperatorInfo* pOper } // 4.dataVersion - tlen += taosEncodeFixedI32(buf, pInfo->dataVersion); + tlen += taosEncodeFixedI64(buf, pInfo->dataVersion); // 5.checksum if (isParent) { diff --git a/source/libs/stream/src/streamBackendRocksdb.c b/source/libs/stream/src/streamBackendRocksdb.c index c151193284..1986cc43e9 100644 --- a/source/libs/stream/src/streamBackendRocksdb.c +++ b/source/libs/stream/src/streamBackendRocksdb.c @@ -3422,7 +3422,7 @@ SStreamStateCur* streamStateFillSeekKeyNext_rocksdb(SStreamState* pState, const size_t kLen = 0; char* keyStr = (char*)rocksdb_iter_key(pCur->iter, &kLen); winKeyDecode((void*)&curKey, keyStr); - if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) > 0) { + if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) < 0) { return pCur; } rocksdb_iter_next(pCur->iter); @@ -3459,7 +3459,7 @@ SStreamStateCur* streamStateFillSeekKeyPrev_rocksdb(SStreamState* pState, const size_t kLen = 0; char* keyStr = (char*)rocksdb_iter_key(pCur->iter, &kLen); winKeyDecode((void*)&curKey, keyStr); - if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) < 0) { + if (winKeyCmpr(key, sizeof(*key), &curKey, sizeof(curKey)) > 0) { return pCur; } rocksdb_iter_prev(pCur->iter);