diff --git a/docs/en/14-reference/09-error-code.md b/docs/en/14-reference/09-error-code.md index e801580583..1aa62fbfce 100644 --- a/docs/en/14-reference/09-error-code.md +++ b/docs/en/14-reference/09-error-code.md @@ -559,9 +559,10 @@ This document details the server error codes that may be encountered when using ## virtual table -| Error Code | Description | Possible Error Scenarios or Reasons | Recommended Actions for Users | -|-------------|---------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------| -| 0x80006200 | Virtual table scan internal error | virtual table scan operator internal error, generally does not occur | Check error logs, contact development for handling | -| 0x80006201 | Virtual table scan invalid downstream operator type | The incorrect execution plan generated causes the downstream operator type of the virtual table scan operator to be incorrect. | Check error logs, contact development for handling | -| 0x80006202 | Virtual table prim timestamp column should not has ref | The timestamp primary key column of a virtual table should not have a data source. If it does, this error will occur during subsequent queries on the virtual table. | Check error logs, contact development for handling | -| 0x80006203 | Create virtual child table must use virtual super table | Create virtual child table using non-virtual super table | create virtual child table using virtual super table | +| Error Code | Description | Possible Error Scenarios or Reasons | Recommended Actions for Users | +|------------|---------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------| +| 0x80006200 | Virtual table scan internal error | virtual table scan operator internal error, generally does not occur | Check error logs, contact development for handling | +| 0x80006201 | Virtual table scan invalid downstream operator type | The incorrect execution plan generated causes the downstream operator type of the virtual table scan operator to be incorrect. | Check error logs, contact development for handling | +| 0x80006202 | Virtual table prim timestamp column should not has ref | The timestamp primary key column of a virtual table should not have a data source. If it does, this error will occur during subsequent queries on the virtual table. | Check error logs, contact development for handling | +| 0x80006203 | Create virtual child table must use virtual super table | Create virtual child table using non-virtual super table | create virtual child table using virtual super table | +| 0x80006204 | Virtual table not support decimal type | Create virtual table using decimal type | create virtual table without using decimal type | diff --git a/docs/zh/14-reference/09-error-code.md b/docs/zh/14-reference/09-error-code.md index 9bf3ceb933..4cf853283e 100644 --- a/docs/zh/14-reference/09-error-code.md +++ b/docs/zh/14-reference/09-error-code.md @@ -578,10 +578,11 @@ description: TDengine 服务端的错误码列表和详细说明 ## virtual table -| 错误码 | 错误描述 | 可能的出错场景或者可能的原因 | 建议用户采取的措施 | -|------------|---------------------------------------------------------|------------------------------------------------|------------------------| -| 0x80006200 | Virtual table scan 算子内部错误 | virtual table scan 算子内部逻辑错误,一般不会出现 | 具体查看client端的错误日志提示 | -| 0x80006201 | Virtual table scan invalid downstream operator type | 由于生成的执行计划不对,导致 virtual table scan 算子的下游算子类型不正确 | 保留 explain 执行计划,联系开发处理 | -| 0x80006202 | Virtual table prim timestamp column should not has ref | 虚拟表的时间戳主键列不应该有数据源,如果有,后续查询虚拟表的时候就会出现该错误 | 检查错误日志,联系开发处理 | -| 0x80006203 | Create virtual child table must use virtual super table | 虚拟子表必须建在虚拟超级表下,否则就会出现该错误 | 创建虚拟子表的时候,USING 虚拟超级表 | +| 错误码 | 错误描述 | 可能的出错场景或者可能的原因 | 建议用户采取的措施 | +|------------|---------------------------------------------------------|------------------------------------------------|----------------------------| +| 0x80006200 | Virtual table scan 算子内部错误 | virtual table scan 算子内部逻辑错误,一般不会出现 | 具体查看client端的错误日志提示 | +| 0x80006201 | Virtual table scan invalid downstream operator type | 由于生成的执行计划不对,导致 virtual table scan 算子的下游算子类型不正确 | 保留 explain 执行计划,联系开发处理 | +| 0x80006202 | Virtual table prim timestamp column should not has ref | 虚拟表的时间戳主键列不应该有数据源,如果有,后续查询虚拟表的时候就会出现该错误 | 检查错误日志,联系开发处理 | +| 0x80006203 | Create virtual child table must use virtual super table | 虚拟子表必须建在虚拟超级表下,否则就会出现该错误 | 创建虚拟子表的时候,USING 虚拟超级表 | +| 0x80006204 | Virtual table not support decimal type | 虚拟表不支持 decimal 类型 | 创建虚拟表时不使用 decimal 类型的列/tag | diff --git a/include/common/tname.h b/include/common/tname.h index c7c34310b9..5bd889ae5f 100644 --- a/include/common/tname.h +++ b/include/common/tname.h @@ -54,6 +54,8 @@ const char* tNameGetDbNameP(const SName* name); int32_t tNameGetFullDbName(const SName* name, char* dst); +int32_t tNameGetFullTableName(const SName* name, char* dst); + bool tNameIsEmpty(const SName* name); void tNameAssign(SName* dst, const SName* src); diff --git a/include/libs/executor/executor.h b/include/libs/executor/executor.h index 9665d522cd..4d35c8db7d 100644 --- a/include/libs/executor/executor.h +++ b/include/libs/executor/executor.h @@ -134,6 +134,8 @@ int32_t qUpdateTableListForStreamScanner(qTaskInfo_t tinfo, const SArray* tableI bool qIsDynamicExecTask(qTaskInfo_t tinfo); +void qDestroyOperatorParam(SOperatorParam* pParam); + void qUpdateOperatorParam(qTaskInfo_t tinfo, void* pParam); /** diff --git a/include/util/taoserror.h b/include/util/taoserror.h index 28cb7d9010..7f49dfb633 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -1070,6 +1070,7 @@ int32_t taosGetErrSize(); #define TSDB_CODE_VTABLE_SCAN_INVALID_DOWNSTREAM TAOS_DEF_ERROR_CODE(0, 0x6201) #define TSDB_CODE_VTABLE_PRIMTS_HAS_REF TAOS_DEF_ERROR_CODE(0, 0x6202) #define TSDB_CODE_VTABLE_NOT_VIRTUAL_SUPER_TABLE TAOS_DEF_ERROR_CODE(0, 0x6203) +#define TSDB_CODE_VTABLE_NOT_SUPPORT_DATA_TYPE TAOS_DEF_ERROR_CODE(0, 0x6204) #ifdef __cplusplus } #endif diff --git a/source/common/src/msg/tmsg.c b/source/common/src/msg/tmsg.c index f8a6da7378..e60da401d1 100644 --- a/source/common/src/msg/tmsg.c +++ b/source/common/src/msg/tmsg.c @@ -9486,10 +9486,11 @@ int32_t tDeserializeSOperatorParam(SDecoder *pDecoder, SOperatorParam *pOpParam) TAOS_CHECK_RETURN(tDecodeI32(pDecoder, &pOpParam->downstreamIdx)); switch (pOpParam->opType) { case QUERY_NODE_PHYSICAL_PLAN_TABLE_SCAN: { - STableScanOperatorParam *pScan = taosMemoryMalloc(sizeof(STableScanOperatorParam)); - if (NULL == pScan) { + pOpParam->value = taosMemoryMalloc(sizeof(STableScanOperatorParam)); + if (NULL == pOpParam->value) { TAOS_CHECK_RETURN(terrno); } + STableScanOperatorParam *pScan = pOpParam->value; TAOS_CHECK_RETURN(tDecodeI8(pDecoder, (int8_t *)&pScan->tableSeq)); int32_t uidNum = 0; int64_t uid = 0; @@ -9535,8 +9536,6 @@ int32_t tDeserializeSOperatorParam(SDecoder *pDecoder, SOperatorParam *pOpParam) } TAOS_CHECK_RETURN(tDecodeI64(pDecoder, &pScan->window.skey)); TAOS_CHECK_RETURN(tDecodeI64(pDecoder, &pScan->window.ekey)); - - pOpParam->value = pScan; break; } default: diff --git a/source/common/src/tname.c b/source/common/src/tname.c index b5070df5a2..2fb2e8f4d4 100644 --- a/source/common/src/tname.c +++ b/source/common/src/tname.c @@ -104,6 +104,14 @@ const char* tNameGetTableName(const SName* name) { return &name->tname[0]; } +int32_t tNameGetFullTableName(const SName* name, char* dst) { + if (name == NULL || dst == NULL) { + return TSDB_CODE_INVALID_PARA; + } + (void)snprintf(dst, TSDB_TABLE_FNAME_LEN, "%s.%s", name->dbname, name->tname); + return 0; +} + void tNameAssign(SName* dst, const SName* src) { memcpy(dst, src, sizeof(SName)); } int32_t tNameSetDbName(SName* dst, int32_t acct, const char* dbName, size_t nameLen) { @@ -230,7 +238,7 @@ static int compareKv(const void* p1, const void* p2) { } /* - * use stable name and tags to grearate child table name + * use stable name and tags to generate child table name */ int32_t buildChildTableName(RandTableName* rName) { taosArraySort(rName->tags, compareKv); diff --git a/source/libs/catalog/src/catalog.c b/source/libs/catalog/src/catalog.c index c527308598..b65db996cc 100644 --- a/source/libs/catalog/src/catalog.c +++ b/source/libs/catalog/src/catalog.c @@ -202,6 +202,7 @@ _return: int32_t ctgGetTbMeta(SCatalog* pCtg, SRequestConnInfo* pConn, SCtgTbMetaCtx* ctx, STableMeta** pTableMeta) { int32_t code = 0; + int32_t line = 0; STableMetaOutput* output = NULL; CTG_ERR_RET(ctgGetTbMetaFromCache(pCtg, ctx, pTableMeta)); @@ -224,7 +225,7 @@ int32_t ctgGetTbMeta(SCatalog* pCtg, SRequestConnInfo* pConn, SCtgTbMetaCtx* ctx goto _return; } - if (CTG_IS_META_VBOTH(output->metaType) || CTG_IS_META_VCTABLE(output->metaType)) { + if (CTG_IS_META_VBOTH(output->metaType)) { int32_t colRefSize = output->vctbMeta->numOfColRefs * sizeof(SColRef); if (output->tbMeta) { int32_t metaSize = CTG_META_SIZE(output->tbMeta); @@ -246,17 +247,14 @@ int32_t ctgGetTbMeta(SCatalog* pCtg, SRequestConnInfo* pConn, SCtgTbMetaCtx* ctx goto _return; } - if ((!CTG_IS_META_CTABLE(output->metaType)) || output->tbMeta) { + if ((!CTG_IS_META_CTABLE(output->metaType) && !CTG_IS_META_VCTABLE(output->metaType)) || output->tbMeta) { ctgError("invalid metaType:%d", output->metaType); taosMemoryFreeClear(output->vctbMeta); taosMemoryFreeClear(output->tbMeta); CTG_ERR_JRET(TSDB_CODE_CTG_INTERNAL_ERROR); } - // HANDLE ONLY CHILD TABLE META - - taosMemoryFreeClear(output->tbMeta); - taosMemoryFreeClear(output->vctbMeta); + // HANDLE ONLY (VIRTUAL) CHILD TABLE META SName stbName = *ctx->pName; TAOS_STRCPY(stbName.tname, output->tbName); @@ -269,8 +267,21 @@ int32_t ctgGetTbMeta(SCatalog* pCtg, SRequestConnInfo* pConn, SCtgTbMetaCtx* ctx ctgDebug("tb:%s, stb no longer exist, db:%s", ctx->pName->tname, output->dbFName); continue; } + if (CTG_IS_META_CTABLE(output->metaType)) { + TAOS_MEMCPY(*pTableMeta, &output->ctbMeta, sizeof(output->ctbMeta)); + } else if (CTG_IS_META_VCTABLE(output->metaType)) { + int32_t colRefSize = output->vctbMeta->numOfColRefs * sizeof(SColRef); + int32_t metaSize = CTG_META_SIZE(*pTableMeta); + (*pTableMeta) = taosMemoryRealloc(*pTableMeta, metaSize + colRefSize); + QUERY_CHECK_NULL(*pTableMeta, code , line, _return, terrno); + TAOS_MEMCPY(*pTableMeta, output->vctbMeta, sizeof(SVCTableMeta)); + (*pTableMeta)->colRef = (SColRef *)((char *)(*pTableMeta) + metaSize); + TAOS_MEMCPY((*pTableMeta)->colRef, output->vctbMeta->colRef, colRefSize); + (*pTableMeta)->numOfColRefs = output->vctbMeta->numOfColRefs; + } - TAOS_MEMCPY(*pTableMeta, &output->ctbMeta, sizeof(output->ctbMeta)); + taosMemoryFreeClear(output->tbMeta); + taosMemoryFreeClear(output->vctbMeta); break; } diff --git a/source/libs/executor/inc/dynqueryctrl.h b/source/libs/executor/inc/dynqueryctrl.h index d9620b0279..feb2dca76f 100755 --- a/source/libs/executor/inc/dynqueryctrl.h +++ b/source/libs/executor/inc/dynqueryctrl.h @@ -75,20 +75,20 @@ typedef struct SStbJoinDynCtrlInfo { } SStbJoinDynCtrlInfo; typedef struct SVtbScanDynCtrlInfo { - int32_t acctId; - SUseDbRsp* pRsp; - SUseDbReq req; + bool scanAllCols; tsem_t ready; SEpSet epSet; + SUseDbRsp* pRsp; uint64_t suid; - SReadHandle readHandle; - SArray* childTableList; + int32_t acctId; + int32_t curTableIdx; int32_t lastTableIdx; - SOperatorParam* vtbScanParam; - int32_t readTableIdx; - SHashObj* dbVgInfoMap; SArray* readColList; - bool scanAllCols; + SArray* childTableList; + SHashObj* dbVgInfoMap; + SHashObj* orgTbVgColMap; + SReadHandle readHandle; + SOperatorParam* vtbScanParam; } SVtbScanDynCtrlInfo; typedef struct SDynQueryCtrlOperatorInfo { diff --git a/source/libs/executor/src/dynqueryctrloperator.c b/source/libs/executor/src/dynqueryctrloperator.c index 562019a416..97d0cf4a0e 100644 --- a/source/libs/executor/src/dynqueryctrloperator.c +++ b/source/libs/executor/src/dynqueryctrloperator.c @@ -80,6 +80,13 @@ static void destroyStbJoinDynCtrlInfo(SStbJoinDynCtrlInfo* pStbJoin) { destroyStbJoinTableList(pStbJoin->ctx.prev.pListHead); } +void destroyOrgTbInfo(void *info) { + SOrgTbInfo *pOrgTbInfo = (SOrgTbInfo *)info; + if (pOrgTbInfo) { + taosArrayDestroy(pOrgTbInfo->colMap); + } +} + void freeUseDbOutput(void* pOutput) { SUseDbOutput *pOut = *(SUseDbOutput**)pOutput; if (NULL == pOutput) { @@ -103,6 +110,10 @@ static void destroyVtbScanDynCtrlInfo(SVtbScanDynCtrlInfo* pVtbScan) { taosHashSetFreeFp(pVtbScan->dbVgInfoMap, freeUseDbOutput); taosHashCleanup(pVtbScan->dbVgInfoMap); } + if (pVtbScan->orgTbVgColMap) { + taosHashSetFreeFp(pVtbScan->orgTbVgColMap, destroyOrgTbInfo); + taosHashCleanup(pVtbScan->orgTbVgColMap); + } if (pVtbScan->pRsp) { tFreeSUsedbRsp(pVtbScan->pRsp); taosMemoryFreeClear(pVtbScan->pRsp); @@ -1071,7 +1082,7 @@ _return: return code; } -static int32_t buildVtbScanOperatorParam(SDynQueryCtrlOperatorInfo* pInfo, SOperatorParam** ppRes) { +static int32_t buildVtbScanOperatorParam(SDynQueryCtrlOperatorInfo* pInfo, SOperatorParam** ppRes, uint64_t uid) { int32_t code = TSDB_CODE_SUCCESS; int32_t lino = 0; SVTableScanOperatorParam* pVScan = NULL; @@ -1085,6 +1096,7 @@ static int32_t buildVtbScanOperatorParam(SDynQueryCtrlOperatorInfo* pInfo, SOper QUERY_CHECK_NULL(pVScan, code, lino, _return, terrno); pVScan->pOpParamArray = taosArrayInit(1, POINTER_BYTES); QUERY_CHECK_NULL(pVScan->pOpParamArray, code, lino, _return, terrno); + pVScan->uid = uid; (*ppRes)->opType = QUERY_NODE_PHYSICAL_PLAN_VIRTUAL_TABLE_SCAN; (*ppRes)->downstreamIdx = 0; @@ -1283,11 +1295,32 @@ bool colNeedScan(SOperatorInfo* pOperator, col_id_t colId) { return false; } -void destroyOrgTbInfo(void *info) { - SOrgTbInfo *pOrgTbInfo = (SOrgTbInfo *)info; - if (pOrgTbInfo) { - taosArrayDestroy(pOrgTbInfo->colMap); +int32_t getDbVgInfo(SOperatorInfo* pOperator, SName *name, SDBVgInfo **dbVgInfo) { + int32_t code = TSDB_CODE_SUCCESS; + int32_t line = 0; + SDynQueryCtrlOperatorInfo* pInfo = pOperator->info; + SVtbScanDynCtrlInfo* pVtbScan = (SVtbScanDynCtrlInfo*)&pInfo->vtbScan; + SExecTaskInfo* pTaskInfo = pOperator->pTaskInfo; + SReadHandle* pHandle = &pVtbScan->readHandle; + SUseDbOutput* output = NULL; + SUseDbOutput** find = (SUseDbOutput**)taosHashGet(pInfo->vtbScan.dbVgInfoMap, name->dbname, strlen(name->dbname)); + + QRY_PARAM_CHECK(dbVgInfo); + + if (find == NULL) { + output = taosMemoryMalloc(sizeof(SUseDbOutput)); + QUERY_CHECK_CODE(buildDbVgInfoMap(pOperator, pHandle, name, pTaskInfo, output), line, _return); + QUERY_CHECK_CODE(taosHashPut(pInfo->vtbScan.dbVgInfoMap, name->dbname, strlen(name->dbname), &output, POINTER_BYTES), line, _return); + } else { + output = *find; } + + *dbVgInfo = output->dbVgroup; + return code; +_return: + qError("%s failed at line %d since %s", __func__, line, tstrerror(code)); + freeUseDbOutput(output); + return code; } int32_t vtbScan(SOperatorInfo* pOperator, SSDataBlock** pRes) { @@ -1298,7 +1331,7 @@ int32_t vtbScan(SOperatorInfo* pOperator, SSDataBlock** pRes) { SExecTaskInfo* pTaskInfo = pOperator->pTaskInfo; SReadHandle* pHandle = &pVtbScan->readHandle; SMetaReader mr = {0}; - SHashObj* orgTbVgColMap = NULL; + SDBVgInfo* dbVgInfo = NULL; QRY_PARAM_CHECK(pRes); if (pOperator->status == OP_EXEC_DONE) { @@ -1312,51 +1345,40 @@ int32_t vtbScan(SOperatorInfo* pOperator, SSDataBlock** pRes) { size_t num = taosArrayGetSize(pVtbScan->childTableList); + // no child table, return if (num == 0) { setOperatorCompleted(pOperator); return code; } - // TODO(smj) : proper hash size - orgTbVgColMap = taosHashInit(num * 64, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), false, HASH_ENTRY_LOCK); - QUERY_CHECK_NULL(orgTbVgColMap, code, line, _return, terrno); - taosHashSetFreeFp(orgTbVgColMap, destroyOrgTbInfo); + pVtbScan->orgTbVgColMap = taosHashInit(num * 64, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), false, HASH_ENTRY_LOCK); + QUERY_CHECK_NULL(pVtbScan->orgTbVgColMap, code, line, _return, terrno); + taosHashSetFreeFp(pVtbScan->orgTbVgColMap, destroyOrgTbInfo); while (true) { - if (pVtbScan->readTableIdx == pVtbScan->lastTableIdx) { + if (pVtbScan->curTableIdx == pVtbScan->lastTableIdx) { QUERY_CHECK_CODE(pOperator->pDownstream[0]->fpSet.getNextFn(pOperator->pDownstream[0], pRes), line, _return); } else { - uint64_t* id = taosArrayGet(pVtbScan->childTableList, pVtbScan->readTableIdx); + uint64_t* id = taosArrayGet(pVtbScan->childTableList, pVtbScan->curTableIdx); QUERY_CHECK_NULL(id, code, line, _return, terrno); pHandle->api.metaReaderFn.initReader(&mr, pHandle->vnode, META_READER_LOCK, &pHandle->api.metaFn); QUERY_CHECK_CODE(pHandle->api.metaReaderFn.getTableEntryByUid(&mr, *id), line, _return); for (int32_t j = 0; j < mr.me.colRef.nCols; j++) { if (mr.me.colRef.pColRef[j].hasRef && colNeedScan(pOperator, mr.me.colRef.pColRef[j].id)) { - SName name = {0}; - toName(pInfo->vtbScan.acctId, mr.me.colRef.pColRef[j].refDbName, "", &name); - SUseDbOutput* output = NULL; - SUseDbOutput** find = (SUseDbOutput**)taosHashGet(pInfo->vtbScan.dbVgInfoMap, name.dbname, strlen(name.dbname)); - if (find == NULL) { - output = taosMemoryMalloc(sizeof(SUseDbOutput)); - QUERY_CHECK_CODE(buildDbVgInfoMap(pOperator, pHandle, &name, pTaskInfo, output), line, _return); - QUERY_CHECK_CODE(taosHashPut(pInfo->vtbScan.dbVgInfoMap, name.dbname, strlen(name.dbname), &output, sizeof(output)), line, _return); - } else { - output = *find; - } - int32_t vgId = 0; - char dbFname[TSDB_DB_FNAME_LEN] = {0}; - QUERY_CHECK_CODE(tNameGetFullDbName(&name, dbFname), line, _return); - QUERY_CHECK_CODE(getVgId(output->dbVgroup, dbFname, &vgId, mr.me.colRef.pColRef[j].refTableName), line, _return); - char orgTbFName[TSDB_TABLE_FNAME_LEN] = {0}; - TAOS_STRNCAT(orgTbFName, mr.me.colRef.pColRef[j].refDbName, TSDB_DB_NAME_LEN); - TAOS_STRNCAT(orgTbFName, ".", 2); - TAOS_STRNCAT(orgTbFName, mr.me.colRef.pColRef[j].refTableName, TSDB_TABLE_NAME_LEN); + SName name = {0}; + char dbFname[TSDB_DB_FNAME_LEN] = {0}; + char orgTbFName[TSDB_TABLE_FNAME_LEN] = {0}; - void *tbVgCol = taosHashGet(orgTbVgColMap, orgTbFName, sizeof(orgTbFName)); - if (!tbVgCol) { + toName(pInfo->vtbScan.acctId, mr.me.colRef.pColRef[j].refDbName, mr.me.colRef.pColRef[j].refTableName, &name); + QUERY_CHECK_CODE(getDbVgInfo(pOperator, &name, &dbVgInfo), line, _return); + QUERY_CHECK_CODE(tNameGetFullDbName(&name, dbFname), line, _return); + QUERY_CHECK_CODE(tNameGetFullTableName(&name, orgTbFName), line, _return); + + void *pVal = taosHashGet(pVtbScan->orgTbVgColMap, orgTbFName, sizeof(orgTbFName)); + if (!pVal) { SOrgTbInfo map = {0}; - map.vgId = vgId; + QUERY_CHECK_CODE(getVgId(dbVgInfo, dbFname, &map.vgId, name.tname), line, _return); tstrncpy(map.tbName, orgTbFName, sizeof(map.tbName)); map.colMap = taosArrayInit(10, sizeof(SColIdNameKV)); QUERY_CHECK_NULL(map.colMap, code, line, _return, terrno); @@ -1364,40 +1386,43 @@ int32_t vtbScan(SOperatorInfo* pOperator, SSDataBlock** pRes) { colIdNameKV.colId = mr.me.colRef.pColRef[j].id; tstrncpy(colIdNameKV.colName, mr.me.colRef.pColRef[j].refColName, sizeof(colIdNameKV.colName)); QUERY_CHECK_NULL(taosArrayPush(map.colMap, &colIdNameKV), code, line, _return, terrno); - QUERY_CHECK_CODE(taosHashPut(orgTbVgColMap, orgTbFName, sizeof(orgTbFName), &map, sizeof(map)), line, _return); + QUERY_CHECK_CODE(taosHashPut(pVtbScan->orgTbVgColMap, orgTbFName, sizeof(orgTbFName), &map, sizeof(map)), line, _return); } else { - SOrgTbInfo *map = (SOrgTbInfo *)tbVgCol; + SOrgTbInfo *tbInfo = (SOrgTbInfo *)pVal; SColIdNameKV colIdNameKV = {0}; colIdNameKV.colId = mr.me.colRef.pColRef[j].id; tstrncpy(colIdNameKV.colName, mr.me.colRef.pColRef[j].refColName, sizeof(colIdNameKV.colName)); - QUERY_CHECK_NULL(taosArrayPush(map->colMap, &colIdNameKV), code, line, _return, terrno); + QUERY_CHECK_NULL(taosArrayPush(tbInfo->colMap, &colIdNameKV), code, line, _return, terrno); } } } pVtbScan->vtbScanParam = NULL; - QUERY_CHECK_CODE(buildVtbScanOperatorParam(pInfo, &pVtbScan->vtbScanParam), line, _return); - ((SVTableScanOperatorParam*)pVtbScan->vtbScanParam->value)->uid = *id; + QUERY_CHECK_CODE(buildVtbScanOperatorParam(pInfo, &pVtbScan->vtbScanParam, *id), line, _return); - void* pIter = taosHashIterate(orgTbVgColMap, NULL); + void* pIter = taosHashIterate(pVtbScan->orgTbVgColMap, NULL); while (pIter != NULL) { SOrgTbInfo* pMap = (SOrgTbInfo*)pIter; SOperatorParam* pExchangeParam = NULL; QUERY_CHECK_CODE(buildExchangeOperatorParamForVScan(&pExchangeParam, 0, pMap), line, _return); QUERY_CHECK_NULL(taosArrayPush(((SVTableScanOperatorParam*)pVtbScan->vtbScanParam->value)->pOpParamArray, &pExchangeParam), code, line, _return, terrno); - pIter = taosHashIterate(orgTbVgColMap, pIter); + pIter = taosHashIterate(pVtbScan->orgTbVgColMap, pIter); } pHandle->api.metaReaderFn.clearReader(&mr); + + // reset downstream operator's status pOperator->pDownstream[0]->status = OP_NOT_OPENED; QUERY_CHECK_CODE(pOperator->pDownstream[0]->fpSet.getNextExtFn(pOperator->pDownstream[0], pVtbScan->vtbScanParam, pRes), line, _return); } if (*pRes) { - pVtbScan->lastTableIdx = pVtbScan->readTableIdx; + // has result, still read data from this table. + pVtbScan->lastTableIdx = pVtbScan->curTableIdx; break; } else { - pVtbScan->readTableIdx++; - if (pVtbScan->readTableIdx >= taosArrayGetSize(pVtbScan->childTableList)) { + // no result, read next table. + pVtbScan->curTableIdx++; + if (pVtbScan->curTableIdx >= taosArrayGetSize(pVtbScan->childTableList)) { setOperatorCompleted(pOperator); break; } @@ -1405,7 +1430,8 @@ int32_t vtbScan(SOperatorInfo* pOperator, SSDataBlock** pRes) { } _return: - taosHashCleanup(orgTbVgColMap); + taosHashCleanup(pVtbScan->orgTbVgColMap); + pVtbScan->orgTbVgColMap = NULL; if (pOperator->cost.openCost == 0) { pOperator->cost.openCost = (double)(taosGetTimestampUs() - st) / 1000.0; } @@ -1459,7 +1485,7 @@ static int32_t initVtbScanInfo(SOperatorInfo* pOperator, SDynQueryCtrlOperatorIn pInfo->vtbScan.epSet = pPhyciNode->vtbScan.mgmtEpSet; pInfo->vtbScan.acctId = pPhyciNode->vtbScan.accountId; pInfo->vtbScan.readHandle = *pHandle; - pInfo->vtbScan.readTableIdx = 0; + pInfo->vtbScan.curTableIdx = 0; pInfo->vtbScan.lastTableIdx = -1; pInfo->vtbScan.readColList = taosArrayInit(LIST_LENGTH(pPhyciNode->vtbScan.pScanCols), sizeof(col_id_t)); @@ -1472,12 +1498,17 @@ static int32_t initVtbScanInfo(SOperatorInfo* pOperator, SDynQueryCtrlOperatorIn } pInfo->vtbScan.childTableList = taosArrayInit(10, sizeof(uint64_t)); + QUERY_CHECK_NULL(pInfo->vtbScan.childTableList, code, line, _return, terrno); QUERY_CHECK_CODE(pHandle->api.metaFn.getChildTableList(pHandle->vnode, pInfo->vtbScan.suid, pInfo->vtbScan.childTableList), line, _return); pInfo->vtbScan.dbVgInfoMap = taosHashInit(taosArrayGetSize(pInfo->vtbScan.childTableList), taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), false, HASH_ENTRY_LOCK); QUERY_CHECK_NULL(pInfo->vtbScan.dbVgInfoMap, code, line, _return, terrno); + return code; _return: + // no need to destroy array and hashmap allocated in this function, + // since the operator's destroy function will take care of it + qError("%s failed at line %d since %s", __func__, line, tstrerror(code)); return code; } diff --git a/source/libs/executor/src/executor.c b/source/libs/executor/src/executor.c index 7caaf63bf7..3182f81e65 100644 --- a/source/libs/executor/src/executor.c +++ b/source/libs/executor/src/executor.c @@ -626,6 +626,13 @@ void destroyOperatorParam(SOperatorParam* pParam) { // TODO } +void qDestroyOperatorParam(SOperatorParam* pParam) { + if (NULL == pParam) { + return; + } + freeOperatorParam(pParam, OP_GET_PARAM); +} + void qUpdateOperatorParam(qTaskInfo_t tinfo, void* pParam) { destroyOperatorParam(((SExecTaskInfo*)tinfo)->pOpParam); ((SExecTaskInfo*)tinfo)->pOpParam = pParam; diff --git a/source/libs/executor/src/timewindowoperator.c b/source/libs/executor/src/timewindowoperator.c index d3185f898e..204ac331c9 100644 --- a/source/libs/executor/src/timewindowoperator.c +++ b/source/libs/executor/src/timewindowoperator.c @@ -967,6 +967,7 @@ static void doStateWindowAggImpl(SOperatorInfo* pOperator, SStateWindowOperatorI } int64_t gid = pBlock->info.id.groupId; + bool hasResult = false; bool masterScan = true; int32_t numOfOutput = pOperator->exprSupp.numOfExprs; int32_t bytes = pStateColInfoData->info.bytes; @@ -988,6 +989,7 @@ static void doStateWindowAggImpl(SOperatorInfo* pOperator, SStateWindowOperatorI if (colDataIsNull(pStateColInfoData, pBlock->info.rows, j, pAgg)) { continue; } + hasResult = true; if (pStateColInfoData->pData == NULL) { qError("%s:%d state column data is null", __FILE__, __LINE__); pTaskInfo->code = TSDB_CODE_QRY_EXECUTOR_INTERNAL_ERROR; @@ -1043,6 +1045,9 @@ static void doStateWindowAggImpl(SOperatorInfo* pOperator, SStateWindowOperatorI } } + if (!hasResult) { + return; + } SResultRow* pResult = NULL; pRowSup->win.ekey = tsList[pBlock->info.rows - 1]; int32_t ret = setTimeWindowOutputBuf(&pInfo->binfo.resultRowInfo, &pRowSup->win, masterScan, &pResult, gid, diff --git a/source/libs/parser/inc/parTranslater.h b/source/libs/parser/inc/parTranslater.h index 4b38bce82c..2f3f05acdd 100644 --- a/source/libs/parser/inc/parTranslater.h +++ b/source/libs/parser/inc/parTranslater.h @@ -53,7 +53,7 @@ typedef struct STranslateContext { int32_t biRewriteToTbnameFunc(STranslateContext* pCxt, SNode** ppNode, bool* pRet); int32_t biRewriteSelectStar(STranslateContext* pCxt, SSelectStmt* pSelect); -int32_t biCheckCreateTableTbnameCol(STranslateContext* pCxt, SCreateTableStmt* pStmt); +int32_t biCheckCreateTableTbnameCol(STranslateContext* pCxt, SNodeList* pTags, SNodeList* pCols); int32_t findTable(STranslateContext* pCxt, const char* pTableAlias, STableNode** pOutput); int32_t getTargetMetaImpl(SParseContext* pParCxt, SParseMetaCache* pMetaCache, const SName* pName, STableMeta** pMeta, bool couldBeView); diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 233f236574..75e01d1356 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -1992,10 +1992,10 @@ int32_t biRewriteToTbnameFunc(STranslateContext* pCxt, SNode** ppNode, bool* pRe return TSDB_CODE_SUCCESS; } -int32_t biCheckCreateTableTbnameCol(STranslateContext* pCxt, SCreateTableStmt* pStmt) { - if (pStmt->pTags) { +int32_t biCheckCreateTableTbnameCol(STranslateContext* pCxt, SNodeList* pTags, SNodeList* pCols) { + if (pTags) { SNode* pNode = NULL; - FOREACH(pNode, pStmt->pTags) { + FOREACH(pNode, pTags) { SColumnDefNode* pTag = (SColumnDefNode*)pNode; if (strcasecmp(pTag->colName, "tbname") == 0) { int32_t code = generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_TAG_NAME, @@ -2004,9 +2004,9 @@ int32_t biCheckCreateTableTbnameCol(STranslateContext* pCxt, SCreateTableStmt* p } } } - if (pStmt->pCols) { + if (pCols) { SNode* pNode = NULL; - FOREACH(pNode, pStmt->pCols) { + FOREACH(pNode, pCols) { SColumnDefNode* pCol = (SColumnDefNode*)pNode; if (strcasecmp(pCol->colName, "tbname") == 0) { int32_t code = generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_COLUMN, @@ -9673,7 +9673,7 @@ static int32_t translateS3MigrateDatabase(STranslateContext* pCxt, SS3MigrateDat return buildCmdMsg(pCxt, TDMT_MND_S3MIGRATE_DB, (FSerializeFunc)tSerializeSS3MigrateDbReq, &req); } -static int32_t columnDefNodeToField(SNodeList* pList, SArray** pArray, bool calBytes) { +static int32_t columnDefNodeToField(SNodeList* pList, SArray** pArray, bool calBytes, bool virtualTable) { *pArray = taosArrayInit(LIST_LENGTH(pList), sizeof(SFieldWithOptions)); if (!pArray) return terrno; @@ -9681,6 +9681,10 @@ static int32_t columnDefNodeToField(SNodeList* pList, SArray** pArray, bool calB SNode* pNode; FOREACH(pNode, pList) { SColumnDefNode* pCol = (SColumnDefNode*)pNode; + if (virtualTable && IS_DECIMAL_TYPE(pCol->dataType.type)) { + code = TSDB_CODE_VTABLE_NOT_SUPPORT_DATA_TYPE; + break; + } SFieldWithOptions field = {.type = pCol->dataType.type, .bytes = calcTypeBytes(pCol->dataType)}; if (calBytes) { field.bytes = calcTypeBytes(pCol->dataType); @@ -9715,7 +9719,7 @@ static int32_t columnDefNodeToField(SNodeList* pList, SArray** pArray, bool calB return code; } -static int32_t tagDefNodeToField(SNodeList* pList, SArray** pArray, bool calBytes) { +static int32_t tagDefNodeToField(SNodeList* pList, SArray** pArray, bool calBytes, bool virtualTable) { *pArray = taosArrayInit(LIST_LENGTH(pList), sizeof(SField)); if (!*pArray) return terrno; SNode* pNode; @@ -9724,6 +9728,11 @@ static int32_t tagDefNodeToField(SNodeList* pList, SArray** pArray, bool calByte SField field = { .type = pCol->dataType.type, }; + if (virtualTable && IS_DECIMAL_TYPE(pCol->dataType.type)) { + taosArrayDestroy(*pArray); + *pArray = NULL; + return TSDB_CODE_VTABLE_NOT_SUPPORT_DATA_TYPE; + } if (calBytes) { field.bytes = calcTypeBytes(pCol->dataType); } else { @@ -9987,6 +9996,10 @@ static int32_t checkTableSchema(STranslateContext* pCxt, SCreateTableStmt* pStmt return checkTableSchemaImpl(pCxt, pStmt->pTags, pStmt->pCols, pStmt->pOptions->pRollupFuncs); } +static int32_t checkVTableSchema(STranslateContext* pCxt, SCreateVTableStmt* pStmt) { + return checkTableSchemaImpl(pCxt, NULL, pStmt->pCols, NULL); +} + static int32_t getTableDelayOrWatermarkOption(STranslateContext* pCxt, const char* pName, int64_t minVal, int64_t maxVal, SValueNode* pVal, int64_t* pMaxDelay) { int32_t code = (DEAL_RES_ERROR == translateValue(pCxt, pVal) ? pCxt->errCode : TSDB_CODE_SUCCESS); @@ -10147,7 +10160,7 @@ static int32_t checkCreateTable(STranslateContext* pCxt, SCreateTableStmt* pStmt } } if (pCxt->pParseCxt->biMode != 0 && TSDB_CODE_SUCCESS == code) { - code = biCheckCreateTableTbnameCol(pCxt, pStmt); + code = biCheckCreateTableTbnameCol(pCxt, pStmt->pTags, pStmt->pCols); } return code; } @@ -10546,8 +10559,8 @@ static int32_t buildCreateStbReq(STranslateContext* pCxt, SCreateTableStmt* pStm pReq->source = TD_REQ_FROM_APP; // columnDefNodeToField(pStmt->pCols, &pReq->pColumns, true); // columnDefNodeToField(pStmt->pTags, &pReq->pTags, true); - code = columnDefNodeToField(pStmt->pCols, &pReq->pColumns, true); - if (TSDB_CODE_SUCCESS == code) code = tagDefNodeToField(pStmt->pTags, &pReq->pTags, true); + code = columnDefNodeToField(pStmt->pCols, &pReq->pColumns, true, pStmt->pOptions->virtualStb); + if (TSDB_CODE_SUCCESS == code) code = tagDefNodeToField(pStmt->pTags, &pReq->pTags, true, pStmt->pOptions->virtualStb); if (TSDB_CODE_SUCCESS == code) { pReq->numOfColumns = LIST_LENGTH(pStmt->pCols); pReq->numOfTags = LIST_LENGTH(pStmt->pTags); @@ -10776,6 +10789,10 @@ static SSchema* getTagSchema(const STableMeta* pTableMeta, const char* pTagName) static int32_t checkAlterSuperTableBySchema(STranslateContext* pCxt, SAlterTableStmt* pStmt, const STableMeta* pTableMeta) { + if (pTableMeta->virtualStb && IS_DECIMAL_TYPE(pStmt->dataType.type)) { + return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_VTABLE_NOT_SUPPORT_DATA_TYPE); + } + SSchema* pTagsSchema = getTableTagSchema(pTableMeta); if (getNumOfTags(pTableMeta) == 1 && pTagsSchema->type == TSDB_DATA_TYPE_JSON && (pStmt->alterType == TSDB_ALTER_TABLE_ADD_TAG || pStmt->alterType == TSDB_ALTER_TABLE_DROP_TAG || @@ -13483,10 +13500,10 @@ static int32_t buildCreateStreamReq(STranslateContext* pCxt, SCreateStreamStmt* pReq->igUpdate = pStmt->pOptions->ignoreUpdate; if (pReq->createStb) { pReq->numOfTags = LIST_LENGTH(pStmt->pTags); - code = tagDefNodeToField(pStmt->pTags, &pReq->pTags, true); + code = tagDefNodeToField(pStmt->pTags, &pReq->pTags, true, false); } if (TSDB_CODE_SUCCESS == code) { - code = columnDefNodeToField(pStmt->pCols, &pReq->pCols, false); + code = columnDefNodeToField(pStmt->pCols, &pReq->pCols, false, false); } pReq->recalculateInterval = 0; if (NULL != pStmt->pOptions->pRecInterval) { @@ -17694,6 +17711,12 @@ static int32_t buildAddColReq(STranslateContext* pCxt, SAlterTableStmt* pStmt, S return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_DUPLICATED_COLUMN); } + if (TSDB_VIRTUAL_CHILD_TABLE == pTableMeta->tableType || TSDB_VIRTUAL_NORMAL_TABLE == pTableMeta->tableType) { + if (IS_DECIMAL_TYPE(pStmt->dataType.type)) { + return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_VTABLE_NOT_SUPPORT_DATA_TYPE); + } + } + if ((TSDB_DATA_TYPE_VARCHAR == pStmt->dataType.type && calcTypeBytes(pStmt->dataType) > TSDB_MAX_BINARY_LEN) || (TSDB_DATA_TYPE_VARBINARY == pStmt->dataType.type && calcTypeBytes(pStmt->dataType) > TSDB_MAX_BINARY_LEN) || (TSDB_DATA_TYPE_NCHAR == pStmt->dataType.type && calcTypeBytes(pStmt->dataType) > TSDB_MAX_NCHAR_LEN)) { @@ -18174,15 +18197,40 @@ _return: return code; } +static int32_t checkCreateVirtualTable(STranslateContext* pCxt, SCreateVTableStmt* pStmt) { + if (NULL != strchr(pStmt->tableName, '.')) { + return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_IDENTIFIER_NAME, + "The table name cannot contain '.'"); + } + + if (IS_SYS_DBNAME(pStmt->dbName)) { + return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_TSC_INVALID_OPERATION, + "Cannot create table of system database: `%s`.`%s`", pStmt->dbName, + pStmt->tableName); + } + + PAR_ERR_RET(checkVTableSchema(pCxt, pStmt)); + + PAR_ERR_RET(checkColumnOptions(pStmt->pCols)); + + if (pCxt->pParseCxt->biMode != 0) { + PAR_ERR_RET(biCheckCreateTableTbnameCol(pCxt, NULL, pStmt->pCols)); + } + + return TSDB_CODE_SUCCESS; +} + static int32_t rewriteCreateVirtualTable(STranslateContext* pCxt, SQuery* pQuery) { SCreateVTableStmt* pStmt = (SCreateVTableStmt*)pQuery->pRoot; - int32_t code = TSDB_CODE_SUCCESS;// TODO(smj):checkCreateTable(pCxt, pStmt, false); + int32_t code = TSDB_CODE_SUCCESS; SVgroupInfo info = {0}; SName name = {0}; SArray* pBufArray = NULL; SNode* pNode = NULL; int32_t index = 0; + PAR_ERR_JRET(checkCreateVirtualTable(pCxt, pStmt)); + pBufArray = taosArrayInit(1, POINTER_BYTES); if (NULL == pBufArray) { PAR_ERR_JRET(terrno); @@ -18197,6 +18245,9 @@ static int32_t rewriteCreateVirtualTable(STranslateContext* pCxt, SQuery* pQuery if (index == 0) { PAR_ERR_JRET(generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_VTABLE_PRIMTS_HAS_REF)); } + if (IS_DECIMAL_TYPE(pColNode->dataType.type)) { + PAR_ERR_JRET(generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_VTABLE_NOT_SUPPORT_DATA_TYPE)); + } PAR_ERR_JRET(checkColRef(pCxt, pColOptions->refDb, pColOptions->refTable, pColOptions->refColumn, (SDataType){.type = pColNode->dataType.type, .bytes = calcTypeBytes(pColNode->dataType)})); @@ -18217,7 +18268,7 @@ _return: } static int32_t rewriteCreateVirtualSubTable(STranslateContext* pCxt, SQuery* pQuery) { - int32_t code = TSDB_CODE_SUCCESS;// TODO(smj):checkCreateTable(pCxt, pStmt, false); + int32_t code = TSDB_CODE_SUCCESS; SCreateVSubTableStmt* pStmt = (SCreateVSubTableStmt*)pQuery->pRoot; SVgroupInfo info = {0}; SName name = {0}; diff --git a/source/libs/qworker/src/qworker.c b/source/libs/qworker/src/qworker.c index 0db1832e17..e9d7139bad 100644 --- a/source/libs/qworker/src/qworker.c +++ b/source/libs/qworker/src/qworker.c @@ -1018,6 +1018,7 @@ int32_t qwProcessFetch(QW_FPARAMS_DEF, SQWMsg *qwMsg) { if (qwMsg->msg) { code = qwStartDynamicTaskNewExec(QW_FPARAMS(), ctx, qwMsg); + qwMsg->msg = NULL; goto _return; } @@ -1063,6 +1064,10 @@ _return: QW_UNLOCK(QW_WRITE, &ctx->lock); } + if (qwMsg->msg) { + qDestroyOperatorParam(qwMsg->msg); + } + input.code = code; code = qwHandlePostPhaseEvents(QW_FPARAMS(), QW_PHASE_POST_FETCH, &input, NULL); diff --git a/source/util/src/terror.c b/source/util/src/terror.c index 57040fc95c..eb80708b86 100644 --- a/source/util/src/terror.c +++ b/source/util/src/terror.c @@ -908,6 +908,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_VTABLE_SCAN_INTERNAL_ERROR, "Virtual table scan TAOS_DEFINE_ERROR(TSDB_CODE_VTABLE_SCAN_INVALID_DOWNSTREAM, "Virtual table scan invalid downstream operator type") TAOS_DEFINE_ERROR(TSDB_CODE_VTABLE_PRIMTS_HAS_REF, "Virtual table prim timestamp column should not has ref column") TAOS_DEFINE_ERROR(TSDB_CODE_VTABLE_NOT_VIRTUAL_SUPER_TABLE, "Create virtual child table must use virtual super table") +TAOS_DEFINE_ERROR(TSDB_CODE_VTABLE_NOT_SUPPORT_DATA_TYPE, "Virtual table not support decimal type") #ifdef TAOS_ERROR_C }; #endif diff --git a/tests/army/vtable/ans/test_vstable_select_test_function.ans b/tests/army/vtable/ans/test_vstable_select_test_function.ans index f99e727473..13395ec394 100644 --- a/tests/army/vtable/ans/test_vstable_select_test_function.ans +++ b/tests/army/vtable/ans/test_vstable_select_test_function.ans @@ -3018,7 +3018,7 @@ taos> select stateduration(u_tinyint_col, "GT", 20, 1a) from test_vtable_select. taos> select twa(int_col) from test_vtable_select.vtb_virtual_stb limit 50; twa(int_col) | ============================ - -353350886.922845 | + -353350600.12852 | taos> select abs(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; abs(int_tag) | diff --git a/tests/army/vtable/ans/test_vstable_select_test_partition.ans b/tests/army/vtable/ans/test_vstable_select_test_partition.ans index 19e6594443..c1b38d390e 100644 --- a/tests/army/vtable/ans/test_vstable_select_test_partition.ans +++ b/tests/army/vtable/ans/test_vstable_select_test_partition.ans @@ -1,2748 +1,779 @@ -taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; - count(*) | -======================== - 123 | - 117 | - 120 | - 114 | - 102 | - 144 | - 129 | - 126 | - 117 | - 141 | - -taos> select u_tinyint_col from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; - u_tinyint_col | -================ - 147 | - 147 | - 147 | - 147 | - 147 | - 147 | - 147 | - 147 | - 147 | - 147 | - 74 | - 74 | - 74 | - 74 | - 74 | - 74 | - 74 | - 74 | - 74 | - 74 | - 131 | - 131 | - 131 | - 131 | - 131 | - 131 | - 131 | - 131 | - 131 | - 131 | - 32 | - 32 | - 32 | - 32 | - 32 | - 32 | - 32 | - 32 | - 32 | - 32 | - 38 | - 38 | - 38 | - 38 | - 38 | - 38 | - 38 | - 38 | - 38 | - 38 | - 107 | - 107 | - 107 | - 107 | - 107 | - 107 | - 107 | - 107 | - 107 | - 107 | - 99 | - 99 | - 99 | - 99 | - 99 | - 99 | - 99 | - 99 | - 99 | - 99 | - 27 | - 27 | - 27 | - 27 | - 27 | - 27 | - 27 | - 27 | - 27 | - 27 | - 236 | - 236 | - 236 | - 236 | - 236 | - 236 | - 236 | - 236 | - 236 | - 236 | - 28 | - 28 | - 28 | - 28 | - 28 | - 28 | - 28 | - 28 | - 28 | - 28 | - -taos> select u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; - u_tinyint_col | count(*) | -======================================== - 53 | 123 | - 200 | 117 | - 123 | 120 | - 40 | 114 | - 95 | 102 | - 199 | 144 | - 148 | 129 | - 246 | 126 | - 62 | 117 | - 73 | 141 | - -taos> select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; - avg(u_int_col) | -============================ - 1028873224.42857 | - 888169202.428571 | - 1284831992.4 | - 1213219741.5 | - 1036655843.88889 | - 885581107.133333 | - 1210190929 | - 1242603651.25 | - 1064520777.50475 | - 1125175011.14286 | - -taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; - avg(u_tinyint_col) | avg(u_smallint_col) | avg(u_int_col) | avg(u_bigint_col) | avg(tinyint_col) | avg(smallint_col) | avg(int_col) | avg(bigint_col) | avg(float_col) | avg(double_col) | -======================================================================================================================================================================================================================================================================================== - 53 | 30425.5 | 1028873224.42857 | 860409305.04878 | 24.6428571428571 | -2702.14285714286 | -99490046.7804878 | -9.22337203685478e+18 | -21495.173828125 | -10876564.2760549 | - 200 | 33504.3636363636 | 888169202.428571 | 1105380030.89744 | -20.1818181818182 | -6111 | -6921473.48717949 | -9.22337203685478e+18 | 22663.0711495536 | -735864.115682693 | - 123 | 14792 | 1284831992.4 | 1094468696.275 | -31.5 | -9847.8 | -93953831.9 | -9.22337203685478e+18 | 6084.466796875 | 7485514.31069892 | - 40 | 31921.3 | 1213219741.5 | 944097612.947368 | -24.4 | -12463.75 | -81547448.0263158 | -9.22337203685478e+18 | -22996.3908691406 | -14579498.9412049 | - 95 | 37216.8181818182 | 1036655843.88889 | 1051868190.52941 | -4 | 9757.66666666667 | 88249851.8823529 | -9.22337203685478e+18 | 14119.2298719618 | -10294910.3421566 | - 199 | 27066.1333333333 | 885581107.133333 | 1020446067.9375 | 11 | -5719.26666666667 | -159480467.708333 | -9.22337203685478e+18 | -17224.8049479167 | -6478565.20549075 | - 148 | 26848.5555555556 | 1210190929 | 1190211958.23256 | 31.3888888888889 | 7762.6 | 63416765.5348837 | -9.22337203685478e+18 | -27510.260546875 | 7675938.01362484 | - 246 | 35478.3333333333 | 1242603651.25 | 1133174619.30952 | 18.8888888888889 | -8153.25 | -65575556.7380952 | -9.22337203685478e+18 | 8742.40209960938 | -8027519.33521655 | - NULL | 33219.3126312631 | 1064520777.50475 | NULL | -1.8027302730273 | 282.548125 | NULL | -9.22337203685478e+18 | -316.811431817502 | NULL | - 62 | 37324.5454545455 | 1125175011.14286 | 1122699832.97436 | 16.3636363636364 | -8076.42857142857 | -33417070.5128205 | -9.22337203685478e+18 | -7440.70228794643 | 2900867.48596513 | - -taos> select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; - ts | u_tinyint_col | u_smallint_col | u_int_col | u_bigint_col | tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | bool_col | binary_16_col | binary_32_col | nchar_16_col | nchar_32_col | int_tag | bool_tag | float_tag | double_tag | nchar_32_tag | binary_32_tag | -======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== - 2020-10-01 00:00:00.232 | 147 | NULL | NULL | NULL | NULL | NULL | -460447109 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.602 | 147 | 27457 | NULL | NULL | NULL | NULL | -410652337 | -9223372036854775808 | NULL | NULL | NULL | NULL | Tianjin - Mountain View | 五。Palo Alto | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.726 | 147 | NULL | NULL | NULL | NULL | NULL | -571286863 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.068 | 147 | NULL | NULL | NULL | NULL | NULL | -743496295 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.088 | 147 | 49614 | NULL | NULL | NULL | NULL | -920561986 | -9223372036854775808 | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | 四。San Jose | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.584 | 147 | NULL | NULL | NULL | NULL | NULL | -729368262 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.772 | 147 | 61827 | NULL | NULL | NULL | NULL | -802060251 | -9223372036854775808 | NULL | NULL | NULL | NULL | Harbin - Campbell | 一。San Franc | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.082 | 147 | NULL | NULL | NULL | NULL | NULL | -587762352 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.258 | 147 | NULL | NULL | NULL | NULL | NULL | -922068456 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.008 | 147 | NULL | NULL | NULL | NULL | NULL | -901636173 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.008 | 74 | NULL | NULL | NULL | NULL | NULL | -439167365 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.348 | 74 | 29449 | NULL | NULL | NULL | NULL | 757512603 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | 六。Campbell | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.928 | 74 | NULL | NULL | NULL | NULL | NULL | 189362212 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.964 | 74 | 48960 | NULL | NULL | NULL | NULL | 971707439 | -9223372036854775808 | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | 二。Los Angle | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.072 | 74 | NULL | NULL | NULL | NULL | NULL | -668036251 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.202 | 74 | NULL | NULL | NULL | NULL | NULL | 964074821 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.330 | 74 | NULL | 1284919093 | NULL | NULL | NULL | -919492632 | NULL | -31536.1 | NULL | NULL | NULL | Xian - Sunnyvale | NULL | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:07.958 | 74 | NULL | NULL | NULL | NULL | NULL | -457045598 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:08.246 | 74 | NULL | NULL | NULL | NULL | NULL | -1009560953 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:08.278 | 74 | NULL | NULL | NULL | NULL | NULL | -149903175 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.558 | 131 | NULL | NULL | NULL | NULL | NULL | -1048576778 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.852 | 131 | NULL | NULL | NULL | NULL | NULL | 673661835 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.898 | 131 | 32579 | NULL | NULL | NULL | NULL | 75056466 | -9223372036854775808 | NULL | NULL | NULL | NULL | Xian - Sunnyvale | 六。Campbell | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.674 | 131 | NULL | NULL | NULL | NULL | NULL | -536304660 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.588 | 131 | NULL | NULL | NULL | NULL | NULL | -463612190 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.734 | 131 | NULL | NULL | NULL | NULL | NULL | 61740199 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.872 | 131 | NULL | NULL | NULL | NULL | NULL | -241208953 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:06.278 | 131 | NULL | NULL | NULL | NULL | NULL | 963383459 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:07.036 | 131 | NULL | NULL | NULL | NULL | NULL | 818840337 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:07.734 | 131 | 34000 | NULL | NULL | NULL | NULL | -159422538 | -9223372036854775808 | NULL | NULL | NULL | NULL | Tianjin - Mountain View | 九。Santa Cla | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.452 | 32 | NULL | NULL | NULL | NULL | NULL | 82187879 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.668 | 32 | NULL | NULL | NULL | NULL | NULL | -484307836 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.144 | 32 | NULL | NULL | NULL | NULL | NULL | -450973254 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.554 | 32 | 30671 | NULL | NULL | NULL | NULL | -249002287 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 五。Palo Alto | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.936 | 32 | NULL | NULL | NULL | NULL | NULL | 279804462 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.412 | 32 | 33249 | NULL | NULL | NULL | NULL | 941668452 | -9223372036854775808 | NULL | NULL | NULL | NULL | Harbin - Campbell | 七。Mountain | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.210 | 32 | 64223 | 2098425019 | NULL | NULL | NULL | -45171051 | -9223372036854775808 | -31629.2 | NULL | NULL | NULL | Shanghai - Los Angles | 六。Campbell | 洛杉矶 - Los Angles | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.516 | 32 | 38427 | NULL | NULL | NULL | NULL | 1056582881 | -9223372036854775808 | NULL | NULL | NULL | NULL | Chengdu - San Jose | 八。Sunnyvale | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.524 | 32 | NULL | NULL | NULL | NULL | NULL | -153486560 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.760 | 32 | NULL | 538499383 | NULL | NULL | NULL | 655460616 | NULL | -65565.6 | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | 山景城 - Mountain View | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.082 | 38 | NULL | NULL | NULL | NULL | NULL | 595381597 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.260 | 38 | NULL | 1492999959 | NULL | NULL | NULL | 881279464 | NULL | -28384 | NULL | NULL | NULL | Hangzhou - San Diego | NULL | 坎贝尔 - Campbell | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.276 | 38 | 52138 | NULL | NULL | NULL | NULL | 183482115 | -9223372036854775808 | NULL | NULL | NULL | NULL | Beijing - San Francisco | 五。Palo Alto | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.284 | 38 | NULL | NULL | NULL | NULL | NULL | -199053968 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.700 | 38 | NULL | 1706614877 | NULL | NULL | NULL | -678744674 | NULL | -54043.4 | NULL | NULL | NULL | Chengdu - San Jose | NULL | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.916 | 38 | NULL | NULL | NULL | NULL | NULL | 1073241722 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.690 | 38 | NULL | 767222390 | NULL | NULL | NULL | 1007148068 | NULL | -72249.1 | NULL | NULL | NULL | Tianjin - Mountain View | NULL | 洛杉矶 - Los Angles | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.082 | 38 | NULL | NULL | NULL | NULL | NULL | 140477558 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.352 | 38 | NULL | NULL | NULL | NULL | NULL | -854437881 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.444 | 38 | 32286 | NULL | NULL | NULL | NULL | 45124452 | -9223372036854775808 | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | 九。Santa Cla | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.584 | 107 | NULL | NULL | NULL | NULL | NULL | 414314371 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.792 | 107 | 11524 | NULL | NULL | NULL | NULL | 513579401 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 九。Santa Cla | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.408 | 107 | NULL | NULL | NULL | NULL | NULL | -593725598 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.552 | 107 | NULL | NULL | NULL | NULL | NULL | -1062786552 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.856 | 107 | NULL | NULL | NULL | NULL | NULL | 811642255 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.300 | 107 | NULL | 2790824 | NULL | NULL | NULL | 123027512 | NULL | -6043.31 | NULL | NULL | NULL | Harbin - Campbell | NULL | 旧金山 - San Francisco | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.364 | 107 | 34329 | NULL | NULL | NULL | NULL | -122612157 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 七。Mountain | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.522 | 107 | 48695 | NULL | NULL | NULL | NULL | 636997161 | -9223372036854775808 | NULL | NULL | NULL | NULL | Beijing - San Francisco | 三。San Diego | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.548 | 107 | NULL | NULL | NULL | NULL | NULL | -440811714 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.496 | 107 | NULL | NULL | NULL | NULL | NULL | 648246838 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.360 | 99 | 13928 | 1671130288 | NULL | NULL | NULL | -929805245 | -9223372036854775808 | -52879.2 | NULL | NULL | NULL | Tianjin - Mountain View | 二。Los Angle | 库比蒂诺 - Cupertino | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.438 | 99 | NULL | NULL | NULL | NULL | NULL | 321171903 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.530 | 99 | NULL | 300207263 | NULL | NULL | NULL | -147180244 | NULL | -25749.3 | NULL | NULL | NULL | Shanghai - Los Angles | NULL | 旧金山 - San Francisco | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.858 | 99 | NULL | NULL | NULL | NULL | NULL | 997371612 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.416 | 99 | NULL | NULL | NULL | NULL | NULL | -602216735 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.784 | 99 | NULL | NULL | NULL | NULL | NULL | 887388117 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.378 | 99 | NULL | NULL | NULL | NULL | NULL | -486490449 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.126 | 99 | NULL | NULL | NULL | NULL | NULL | -436459382 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:06.150 | 99 | 30104 | 1509919549 | NULL | NULL | NULL | 526036876 | -9223372036854775808 | 32843.2 | NULL | NULL | NULL | Shanghai - Los Angles | 九。Santa Cla | 圣何塞 - San Jose | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:06.506 | 99 | NULL | NULL | NULL | NULL | NULL | -699238997 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.468 | 27 | 537 | NULL | NULL | NULL | NULL | -217181232 | -9223372036854775808 | NULL | NULL | NULL | NULL | Xian - Sunnyvale | 九。Santa Cla | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.616 | 27 | NULL | NULL | NULL | NULL | NULL | -433988779 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.938 | 27 | NULL | NULL | NULL | NULL | NULL | 374102112 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.978 | 27 | 7354 | NULL | NULL | NULL | NULL | -765858623 | -9223372036854775808 | NULL | NULL | NULL | NULL | Chengdu - San Jose | 一。San Franc | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.990 | 27 | 48370 | 1127922142 | NULL | NULL | NULL | 535179865 | -9223372036854775808 | -64733.4 | NULL | NULL | NULL | Hangzhou - San Diego | 八。Sunnyvale | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.098 | 27 | 45874 | NULL | NULL | NULL | NULL | -332537809 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 七。Mountain | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.172 | 27 | NULL | NULL | NULL | NULL | NULL | -684057325 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.442 | 27 | NULL | NULL | NULL | NULL | NULL | -875590914 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.768 | 27 | NULL | NULL | NULL | NULL | NULL | -1009505558 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.478 | 27 | 7959 | NULL | NULL | NULL | NULL | 466059974 | -9223372036854775808 | NULL | NULL | NULL | NULL | Tianjin - Mountain View | 八。Sunnyvale | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.794 | 236 | NULL | NULL | NULL | NULL | NULL | 687912758 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.788 | 236 | 59952 | NULL | NULL | NULL | NULL | 826152215 | -9223372036854775808 | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | 八。Sunnyvale | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.216 | 236 | NULL | NULL | NULL | NULL | NULL | -1030945741 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.296 | 236 | NULL | NULL | NULL | NULL | NULL | 741619714 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.484 | 236 | NULL | NULL | NULL | NULL | NULL | -700980217 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.268 | 236 | NULL | NULL | NULL | NULL | NULL | 776268561 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.858 | 236 | NULL | NULL | NULL | NULL | NULL | 502800702 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.832 | 236 | 14111 | NULL | NULL | NULL | NULL | -738906050 | -9223372036854775808 | NULL | NULL | NULL | NULL | Beijing - San Francisco | 十。Cupertino | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:06.482 | 236 | NULL | NULL | NULL | NULL | NULL | -535355173 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:06.518 | 236 | NULL | NULL | NULL | NULL | NULL | 724893827 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.244 | 28 | NULL | NULL | NULL | NULL | NULL | 407051179 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.940 | 28 | NULL | 57045486 | NULL | NULL | NULL | -611558633 | NULL | 39641.1 | NULL | NULL | NULL | Beijing - San Francisco | NULL | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.980 | 28 | NULL | 624308946 | NULL | NULL | NULL | -971241563 | NULL | 44146.6 | NULL | NULL | NULL | Xian - Sunnyvale | NULL | 圣何塞 - San Jose | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.284 | 28 | 40277 | NULL | NULL | NULL | NULL | -924988902 | -9223372036854775808 | NULL | NULL | NULL | NULL | Harbin - Campbell | 六。Campbell | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.426 | 28 | NULL | NULL | NULL | NULL | NULL | 134957013 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.888 | 28 | NULL | NULL | NULL | NULL | NULL | 920829832 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.742 | 28 | NULL | NULL | NULL | NULL | NULL | -729056319 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.376 | 28 | NULL | NULL | NULL | NULL | NULL | 643833679 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.412 | 28 | 59042 | NULL | NULL | NULL | NULL | -623575102 | -9223372036854775808 | NULL | NULL | NULL | NULL | Xian - Sunnyvale | 四。San Jose | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.940 | 28 | 28034 | 1654703185 | NULL | NULL | NULL | -228564557 | -9223372036854775808 | 8759.87 | NULL | NULL | NULL | Chengdu - San Jose | 一。San Franc | 圣何塞 - San Jose | 1 | false | 1 | 1 | child1 | child1 | - -taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; +taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; count(*) | ======================== 57 | - 138 | - 132 | - 102 | - 117 | - 123 | - 111 | - 120 | - 111 | - 93 | + 66 | + 75 | + 78 | + 81 | + 81 | + 84 | + 84 | + 84 | + 87 | -taos> select u_tinyint_col + 1 from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; +taos> select u_tinyint_col from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; + u_tinyint_col | +================ + 0 | + 0 | + 0 | + 0 | + 0 | + 0 | + 0 | + 0 | + 0 | + 0 | + +taos> select u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; + u_tinyint_col | count(*) | +======================================== + 0 | 138 | + 1 | 132 | + 2 | 102 | + 3 | 117 | + 4 | 123 | + 5 | 102 | + 6 | 117 | + 7 | 117 | + 8 | 114 | + 9 | 162 | + +taos> select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; + avg(u_int_col) | +============================ + 355960882.333333 | + 495880456 | + 545948462.6 | + 575820982.8 | + 583128162.6 | + 597333081.666667 | + 611144244.1 | + 616492895 | + 628372837.5 | + 650681226.888889 | + +taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; + avg(u_tinyint_col) | avg(u_smallint_col) | avg(u_int_col) | avg(u_bigint_col) | avg(tinyint_col) | avg(smallint_col) | avg(int_col) | avg(bigint_col) | avg(float_col) | avg(double_col) | +======================================================================================================================================================================================================================================================================================== + NULL | 33219.3126312631 | 1064520777.50475 | NULL | -1.8027302730273 | 282.548125 | NULL | -9.22337203685478e+18 | -316.811431817502 | NULL | + 0 | 32553.2307692308 | 1001479108.5 | 1180661432.41304 | -17.4615384615385 | 2934.5 | -3803401.56521739 | -9.22337203685478e+18 | 13721.1726888021 | -4646513.48510622 | + 1 | 30707.2 | 737219949.111111 | 1108589656.68182 | -18.6 | -1146.77777777778 | -66257392.25 | -9.22337203685478e+18 | 4392.15321180556 | 535582.580240069 | + 2 | 35524.2142857143 | 1533345536.2 | 1012609326.14706 | -0.785714285714286 | 9207.8 | 50244262.2941176 | -9.22337203685478e+18 | 2357.97890625 | 6142083.2282555 | + 3 | 33242.6 | 1361502144.5 | 933709179.948718 | -11.6 | -3235.625 | 154885334.948718 | -9.22337203685478e+18 | 23445.6504211426 | 11218824.0760349 | + 4 | 29779.4375 | 1443245381.5 | 1176711614.95122 | 27.9375 | -1656.83333333333 | 14666685.2195122 | -9.22337203685478e+18 | 8945.05159505208 | -4764848.01668707 | + 5 | 32925.7272727273 | 865617643.5 | 1136101091.20588 | -42.5454545454545 | 2880.25 | 17021034.0588235 | -9.22337203685478e+18 | 21866.7925415039 | 2915765.137079 | + 6 | 26627.5 | 992573189.625 | 1063176194.41026 | 23.4166666666667 | -9844.125 | -128265778.820513 | -9.22337203685478e+18 | -21368.9774169922 | 7151907.29768379 | + 7 | 29818.5454545455 | 1007210883.25 | 1148559331.92308 | -22.5454545454545 | 9341.625 | -13430176.025641 | -9.22337203685478e+18 | 16469.6047363281 | -19931226.9753984 | + 8 | 30334.6666666667 | 1035784689 | 1229215272.31579 | -31.8888888888889 | -145.666666666667 | 36091812.7894737 | -9.22337203685478e+18 | 16991.1941731771 | -8697205.63416163 | + +taos> select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1, 2, int_tag slimit 10 limit 10; + ts | u_tinyint_col | u_smallint_col | u_int_col | u_bigint_col | tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | bool_col | binary_16_col | binary_32_col | nchar_16_col | nchar_32_col | int_tag | bool_tag | float_tag | double_tag | nchar_32_tag | binary_32_tag | +======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | NULL | NULL | NULL | -650873068 | -9223372036854775808 | 99528.7 | NULL | NULL | NULL | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | NULL | NULL | NULL | -77824226 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | NULL | NULL | NULL | -9223372036854775808 | NULL | NULL | NULL | NULL | NULL | 三。San Diego | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.004 | 1 | NULL | NULL | 514811543 | NULL | NULL | 683409189 | NULL | NULL | 94762575.40613 | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | + +taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; + count(*) | +======================== + 57 | + 66 | + 75 | + 78 | + 81 | + 81 | + 84 | + 84 | + 84 | + 87 | + +taos> select u_tinyint_col + 1 from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; u_tinyint_col + 1 | ============================ - 36 | - 36 | - 36 | - 36 | - 36 | - 36 | - 36 | - 36 | - 36 | - 36 | - 188 | - 188 | - 188 | - 188 | - 188 | - 188 | - 188 | - 188 | - 188 | - 188 | - 232 | - 232 | - 232 | - 232 | - 232 | - 232 | - 232 | - 232 | - 232 | - 232 | - 210 | - 210 | - 210 | - 210 | - 210 | - 210 | - 210 | - 210 | - 210 | - 210 | - 45 | - 45 | - 45 | - 45 | - 45 | - 45 | - 45 | - 45 | - 45 | - 45 | - 55 | - 55 | - 55 | - 55 | - 55 | - 55 | - 55 | - 55 | - 55 | - 55 | - 239 | - 239 | - 239 | - 239 | - 239 | - 239 | - 239 | - 239 | - 239 | - 239 | - 126 | - 126 | - 126 | - 126 | - 126 | - 126 | - 126 | - 126 | - 126 | - 126 | - 61 | - 61 | - 61 | - 61 | - 61 | - 61 | - 61 | - 61 | - 61 | - 61 | - 30 | - 30 | - 30 | - 30 | - 30 | - 30 | - 30 | - 30 | - 30 | - 30 | + 1 | + 1 | + 1 | + 1 | + 1 | + 1 | + 1 | + 1 | + 1 | + 1 | -taos> select u_tinyint_col + 1, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; +taos> select u_tinyint_col + 1, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; u_tinyint_col + 1 | count(*) | ==================================================== - 51 | 57 | - 163 | 138 | - 127 | 132 | - 117 | 102 | - 93 | 117 | - 171 | 123 | - 59 | 111 | - 62 | 120 | - 138 | 111 | - 53 | 93 | + 1 | 138 | + 2 | 132 | + 3 | 102 | + 4 | 117 | + 5 | 123 | + 6 | 102 | + 7 | 117 | + 8 | 117 | + 9 | 114 | + 10 | 162 | -taos> select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; +taos> select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; avg(u_int_col) | ============================ - 1156850594.16667 | - 1147037435.54545 | - 901849629.533333 | - 729674734.333333 | - 788392019.2 | - 772541525.5 | - 1486377937.375 | - 1048132211.2 | - 1064520777.50475 | - 1190343214.71429 | + 355960882.333333 | + 495880456 | + 545948462.6 | + 575820982.8 | + 583128162.6 | + 597333081.666667 | + 611144244.1 | + 616492895 | + 628372837.5 | + 650681226.888889 | -taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; +taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; avg(u_tinyint_col) | avg(u_smallint_col) | avg(u_int_col) | avg(u_bigint_col) | avg(tinyint_col) | avg(smallint_col) | avg(int_col) | avg(bigint_col) | avg(float_col) | avg(double_col) | ======================================================================================================================================================================================================================================================================================== - 50 | 23105 | 1156850594.16667 | 1031966508.94737 | -39.3333333333333 | 833 | -139525498.526316 | -9.22337203685478e+18 | 22431.2509765625 | -9672404.91357958 | - 162 | 27422.6666666667 | 1147037435.54545 | 1196660330.65217 | 1.46666666666667 | 6581.45454545455 | -36379314.4782609 | -9.22337203685478e+18 | -19514.0027521307 | 3408191.85054522 | - 126 | 27568.6875 | 901849629.533333 | 1035889388.31818 | -10.6875 | -404.066666666667 | -57721963.0454545 | -9.22337203685478e+18 | -3641.29222005208 | -8153571.56634373 | - 116 | 36569.5555555556 | 729674734.333333 | 1228840288.29412 | -15.4444444444444 | 3754 | -80070468.0294118 | -9.22337203685478e+18 | -5320.31998697917 | -2801712.72194927 | - 92 | 28450.5 | 788392019.2 | 967004704.538462 | 37.8 | -4215.3 | 35185059.4871795 | -9.22337203685478e+18 | -14478.566015625 | -6559591.44702367 | - 170 | 36197.2941176471 | 772541525.5 | 1062102284 | 11.7647058823529 | -6261.33333333333 | -92083676.8536585 | -9.22337203685478e+18 | -7206.72159830729 | 15868031.5666725 | - 58 | 28989.5833333333 | 1486377937.375 | 968838306.162162 | -7.91666666666667 | 3150.625 | -37471900.7297297 | -9.22337203685478e+18 | -8461.26239013672 | -5075391.34656124 | - 61 | 27718.5 | 1048132211.2 | 970961443.75 | -7.21428571428571 | 5722.4 | 93787872.75 | -9.22337203685478e+18 | 18598.4788085938 | -20976207.8561072 | NULL | 33219.3126312631 | 1064520777.50475 | NULL | -1.8027302730273 | 282.548125 | NULL | -9.22337203685478e+18 | -316.811431817502 | NULL | - 137 | 23912.7142857143 | 1190343214.71429 | 1016128313.37838 | 4.07142857142857 | 12990.8571428571 | -86751629.1081081 | -9.22337203685478e+18 | 3789.93579101562 | -10319134.4559422 | + 0 | 32553.2307692308 | 1001479108.5 | 1180661432.41304 | -17.4615384615385 | 2934.5 | -3803401.56521739 | -9.22337203685478e+18 | 13721.1726888021 | -4646513.48510622 | + 1 | 30707.2 | 737219949.111111 | 1108589656.68182 | -18.6 | -1146.77777777778 | -66257392.25 | -9.22337203685478e+18 | 4392.15321180556 | 535582.580240069 | + 2 | 35524.2142857143 | 1533345536.2 | 1012609326.14706 | -0.785714285714286 | 9207.8 | 50244262.2941176 | -9.22337203685478e+18 | 2357.97890625 | 6142083.2282555 | + 3 | 33242.6 | 1361502144.5 | 933709179.948718 | -11.6 | -3235.625 | 154885334.948718 | -9.22337203685478e+18 | 23445.6504211426 | 11218824.0760349 | + 4 | 29779.4375 | 1443245381.5 | 1176711614.95122 | 27.9375 | -1656.83333333333 | 14666685.2195122 | -9.22337203685478e+18 | 8945.05159505208 | -4764848.01668707 | + 5 | 32925.7272727273 | 865617643.5 | 1136101091.20588 | -42.5454545454545 | 2880.25 | 17021034.0588235 | -9.22337203685478e+18 | 21866.7925415039 | 2915765.137079 | + 6 | 26627.5 | 992573189.625 | 1063176194.41026 | 23.4166666666667 | -9844.125 | -128265778.820513 | -9.22337203685478e+18 | -21368.9774169922 | 7151907.29768379 | + 7 | 29818.5454545455 | 1007210883.25 | 1148559331.92308 | -22.5454545454545 | 9341.625 | -13430176.025641 | -9.22337203685478e+18 | 16469.6047363281 | -19931226.9753984 | + 8 | 30334.6666666667 | 1035784689 | 1229215272.31579 | -31.8888888888889 | -145.666666666667 | 36091812.7894737 | -9.22337203685478e+18 | 16991.1941731771 | -8697205.63416163 | -taos> select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; +taos> select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1, 2, int_tag slimit 10 limit 10; ts | u_tinyint_col | u_smallint_col | u_int_col | u_bigint_col | tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | bool_col | binary_16_col | binary_32_col | nchar_16_col | nchar_32_col | int_tag | bool_tag | float_tag | double_tag | nchar_32_tag | binary_32_tag | ======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== - 2020-10-01 00:00:00.212 | 35 | NULL | NULL | NULL | NULL | NULL | -598326349 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.702 | 35 | 19029 | NULL | NULL | NULL | NULL | -1035425985 | -9223372036854775808 | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | 五。Palo Alto | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.680 | 35 | 19415 | 30174170 | NULL | NULL | NULL | -600658805 | -9223372036854775808 | 59823.3 | NULL | NULL | NULL | Shanghai - Los Angles | 十。Cupertino | 圣地亚哥 - San Diego | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.734 | 35 | 9112 | NULL | NULL | NULL | NULL | -928425014 | -9223372036854775808 | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | 一。San Franc | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.790 | 35 | NULL | 694571471 | NULL | NULL | NULL | -180979708 | NULL | 14924.6 | NULL | NULL | NULL | Beijing - San Francisco | NULL | 坎贝尔 - Campbell | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.966 | 35 | NULL | NULL | NULL | NULL | NULL | 364715926 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.104 | 35 | NULL | NULL | NULL | NULL | NULL | 843992872 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.154 | 35 | NULL | NULL | NULL | NULL | NULL | -674945652 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.654 | 35 | NULL | NULL | NULL | NULL | NULL | -810233157 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.806 | 35 | 2900 | NULL | NULL | NULL | NULL | -1026037266 | -9223372036854775808 | NULL | NULL | NULL | NULL | Tianjin - Mountain View | 一。San Franc | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.026 | 187 | NULL | NULL | NULL | NULL | NULL | -134543023 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.092 | 187 | 36787 | NULL | NULL | NULL | NULL | 488495331 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 四。San Jose | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.016 | 187 | 48114 | NULL | NULL | NULL | NULL | -850262864 | -9223372036854775808 | NULL | NULL | NULL | NULL | Hangzhou - San Diego | 八。Sunnyvale | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.276 | 187 | NULL | NULL | NULL | NULL | NULL | 202552841 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.908 | 187 | 14780 | NULL | NULL | NULL | NULL | -524770411 | -9223372036854775808 | NULL | NULL | NULL | NULL | Hangzhou - San Diego | 七。Mountain | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:08.240 | 187 | NULL | 1345167648 | NULL | NULL | NULL | -713720847 | NULL | 31245.4 | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:08.406 | 187 | 23677 | NULL | NULL | NULL | NULL | 530023197 | -9223372036854775808 | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | 九。Santa Cla | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:08.442 | 187 | 33000 | NULL | NULL | NULL | NULL | 679084052 | -9223372036854775808 | NULL | NULL | NULL | NULL | Chengdu - San Jose | 六。Campbell | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:08.706 | 187 | 15627 | NULL | NULL | NULL | NULL | 638574520 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 七。Mountain | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:09.106 | 187 | NULL | NULL | NULL | NULL | NULL | 849285646 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.016 | 231 | NULL | NULL | NULL | NULL | NULL | 570761697 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.648 | 231 | NULL | NULL | NULL | NULL | NULL | -742825681 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.332 | 231 | NULL | NULL | NULL | NULL | NULL | -28493779 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.414 | 231 | NULL | NULL | NULL | NULL | NULL | 492193594 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.556 | 231 | 13308 | NULL | NULL | NULL | NULL | -1008409835 | -9223372036854775808 | NULL | NULL | NULL | NULL | Xian - Sunnyvale | 二。Los Angle | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.574 | 231 | 9183 | NULL | NULL | NULL | NULL | -841456384 | -9223372036854775808 | NULL | NULL | NULL | NULL | Tianjin - Mountain View | 一。San Franc | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.662 | 231 | NULL | NULL | NULL | NULL | NULL | 650776465 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.666 | 231 | 2350 | NULL | NULL | NULL | NULL | 901686686 | -9223372036854775808 | NULL | NULL | NULL | NULL | Xian - Sunnyvale | 三。San Diego | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.406 | 231 | NULL | NULL | NULL | NULL | NULL | -727841103 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.608 | 231 | 11959 | NULL | NULL | NULL | NULL | -304278743 | -9223372036854775808 | NULL | NULL | NULL | NULL | Harbin - Campbell | 五。Palo Alto | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.826 | 209 | NULL | NULL | NULL | NULL | NULL | 58418834 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.062 | 209 | NULL | NULL | NULL | NULL | NULL | 778139338 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.246 | 209 | NULL | NULL | NULL | NULL | NULL | -570775291 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.230 | 209 | NULL | 1423166880 | NULL | NULL | NULL | 515256660 | NULL | 21446.4 | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | 山景城 - Mountain View | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.830 | 209 | 43110 | 165773765 | NULL | NULL | NULL | -799998431 | -9223372036854775808 | 70944.5 | NULL | NULL | NULL | Tianjin - Mountain View | 五。Palo Alto | 帕洛阿托 - Palo Alto | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.302 | 209 | NULL | NULL | NULL | NULL | NULL | 622981334 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.392 | 209 | NULL | NULL | NULL | NULL | NULL | 151425563 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.548 | 209 | NULL | NULL | NULL | NULL | NULL | 173333536 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.878 | 209 | NULL | NULL | NULL | NULL | NULL | -504076712 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:06.420 | 209 | 30922 | 1530189885 | NULL | NULL | NULL | 45545924 | -9223372036854775808 | -60683.7 | NULL | NULL | NULL | Chengdu - San Jose | 九。Santa Cla | 库比蒂诺 - Cupertino | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.898 | 44 | NULL | NULL | NULL | NULL | NULL | -967752189 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.040 | 44 | 51621 | 1131620745 | NULL | NULL | NULL | 879055685 | -9223372036854775808 | 50861.3 | NULL | NULL | NULL | Harbin - Campbell | 三。San Diego | 洛杉矶 - Los Angles | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.270 | 44 | NULL | 1720059419 | NULL | NULL | NULL | 429112658 | NULL | 82898.8 | NULL | NULL | NULL | Shanghai - Los Angles | NULL | 旧金山 - San Francisco | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.702 | 44 | NULL | NULL | NULL | NULL | NULL | 931966317 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.922 | 44 | 14389 | NULL | NULL | NULL | NULL | -607434308 | -9223372036854775808 | NULL | NULL | NULL | NULL | Xian - Sunnyvale | 一。San Franc | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.250 | 44 | NULL | 1975448690 | NULL | NULL | NULL | -970438678 | NULL | -23458.2 | NULL | NULL | NULL | Beijing - San Francisco | NULL | 旧金山 - San Francisco | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.260 | 44 | NULL | 913276213 | NULL | NULL | NULL | -327293231 | NULL | -84815.1 | NULL | NULL | NULL | Hangzhou - San Diego | NULL | 帕洛阿托 - Palo Alto | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.030 | 44 | NULL | 1095111510 | NULL | NULL | NULL | 859657581 | NULL | -51354.3 | NULL | NULL | NULL | Tianjin - Mountain View | NULL | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.076 | 44 | NULL | NULL | NULL | NULL | NULL | 393991702 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.340 | 44 | NULL | 1939023658 | NULL | NULL | NULL | 346573125 | NULL | 10802.9 | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | 山景城 - Mountain View | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.226 | 54 | NULL | NULL | NULL | NULL | NULL | -922902157 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.390 | 54 | 15337 | 1676779094 | NULL | NULL | NULL | 665407592 | -9223372036854775808 | 27226.2 | NULL | NULL | NULL | Harbin - Campbell | 三。San Diego | 帕洛阿托 - Palo Alto | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.844 | 54 | NULL | NULL | NULL | NULL | NULL | 507636032 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.282 | 54 | NULL | NULL | NULL | NULL | NULL | -981259883 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.066 | 54 | NULL | NULL | NULL | NULL | NULL | 539524378 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.120 | 54 | NULL | 1609185869 | NULL | NULL | NULL | -824876704 | NULL | 11252.2 | NULL | NULL | NULL | Tianjin - Mountain View | NULL | 洛杉矶 - Los Angles | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.176 | 54 | NULL | NULL | NULL | NULL | NULL | -731457099 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.594 | 54 | NULL | NULL | NULL | NULL | NULL | 194869882 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.770 | 54 | NULL | 2024919208 | NULL | NULL | NULL | -542713972 | NULL | 60262.2 | NULL | NULL | NULL | Shanghai - Los Angles | NULL | 山景城 - Mountain View | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.722 | 54 | NULL | NULL | NULL | NULL | NULL | 697693645 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.056 | 238 | NULL | NULL | NULL | NULL | NULL | 557125048 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.236 | 238 | NULL | NULL | NULL | NULL | NULL | -301750730 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.300 | 238 | 61439 | 920096275 | NULL | NULL | NULL | -91068889 | -9223372036854775808 | -65756.1 | NULL | NULL | NULL | Shanghai - Los Angles | 九。Santa Cla | 旧金山 - San Francisco | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.374 | 238 | NULL | NULL | NULL | NULL | NULL | -1042980148 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.592 | 238 | NULL | NULL | NULL | NULL | NULL | -588637633 | NULL | NULL | NULL | NULL | NULL | Hong Kong - Palo Alto | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.824 | 238 | NULL | NULL | NULL | NULL | NULL | -465308612 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.832 | 238 | NULL | NULL | NULL | NULL | NULL | 161553083 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.162 | 238 | NULL | NULL | NULL | NULL | NULL | 495209704 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.158 | 238 | NULL | NULL | NULL | NULL | NULL | -993140909 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.194 | 238 | NULL | NULL | NULL | NULL | NULL | 349248864 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.394 | 125 | NULL | NULL | NULL | NULL | NULL | -541315025 | NULL | NULL | NULL | NULL | NULL | Harbin - Campbell | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.564 | 125 | 60102 | NULL | NULL | NULL | NULL | 950549181 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | 四。San Jose | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.566 | 125 | NULL | NULL | NULL | NULL | NULL | 59490465 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.658 | 125 | NULL | NULL | NULL | NULL | NULL | 27765208 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.862 | 125 | NULL | NULL | NULL | NULL | NULL | 488470127 | NULL | NULL | NULL | NULL | NULL | Shijiazhuang - Cupertino | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.652 | 125 | 10289 | NULL | NULL | NULL | NULL | -846581893 | -9223372036854775808 | NULL | NULL | NULL | NULL | Chengdu - San Jose | 五。Palo Alto | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.860 | 125 | NULL | 1204766373 | NULL | NULL | NULL | -527525960 | NULL | -3151.93 | NULL | NULL | NULL | Harbin - Campbell | NULL | 帕洛阿托 - Palo Alto | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.940 | 125 | 8237 | 757239556 | NULL | NULL | NULL | 1031479285 | -9223372036854775808 | -4146 | NULL | NULL | NULL | Xian - Sunnyvale | 三。San Diego | 库比蒂诺 - Cupertino | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.686 | 125 | NULL | NULL | NULL | NULL | NULL | -977514013 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.746 | 125 | 15973 | NULL | NULL | NULL | NULL | 214692481 | -9223372036854775808 | NULL | NULL | NULL | NULL | Tianjin - Mountain View | 六。Campbell | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.598 | 60 | NULL | NULL | NULL | NULL | NULL | -298810349 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.768 | 60 | 46285 | NULL | NULL | NULL | NULL | 472476951 | -9223372036854775808 | NULL | NULL | NULL | NULL | Hangzhou - San Diego | 五。Palo Alto | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.848 | 60 | NULL | NULL | NULL | NULL | NULL | 806663952 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.624 | 60 | NULL | NULL | NULL | NULL | NULL | 444294442 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.258 | 60 | NULL | NULL | NULL | NULL | NULL | -865926691 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.722 | 60 | NULL | NULL | NULL | NULL | NULL | -309602228 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.912 | 60 | NULL | NULL | NULL | NULL | NULL | -1001258507 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.944 | 60 | NULL | NULL | NULL | NULL | NULL | -776714499 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.692 | 60 | NULL | NULL | NULL | NULL | NULL | 754757876 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.838 | 60 | NULL | NULL | NULL | NULL | NULL | 517636603 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 0 | false | 0 | 0 | child0 | child0 | 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | NULL | NULL | NULL | -650873068 | -9223372036854775808 | 99528.7 | NULL | NULL | NULL | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.028 | 29 | NULL | NULL | NULL | NULL | NULL | 143030544 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.142 | 29 | NULL | NULL | NULL | NULL | NULL | -608238402 | NULL | NULL | NULL | NULL | NULL | Hangzhou - San Diego | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:01.962 | 29 | 14496 | NULL | NULL | NULL | NULL | -792862517 | -9223372036854775808 | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | 八。Sunnyvale | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:02.708 | 29 | NULL | NULL | NULL | NULL | NULL | -528813988 | NULL | NULL | NULL | NULL | NULL | Beijing - San Francisco | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.604 | 29 | NULL | NULL | NULL | NULL | NULL | -177766789 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:03.870 | 29 | 59351 | 1937720573 | NULL | NULL | NULL | -1067024716 | -9223372036854775808 | 49663.7 | NULL | NULL | NULL | Hong Kong - Palo Alto | 二。Los Angle | 圣何塞 - San Jose | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.472 | 29 | NULL | NULL | NULL | NULL | NULL | 974432048 | NULL | NULL | NULL | NULL | NULL | Chengdu - San Jose | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:04.518 | 29 | 13407 | NULL | NULL | NULL | NULL | -919883064 | -9223372036854775808 | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | 八。Sunnyvale | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:05.236 | 29 | NULL | NULL | NULL | NULL | NULL | 217199133 | NULL | NULL | NULL | NULL | NULL | Tianjin - Mountain View | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | NULL | NULL | NULL | -77824226 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | NULL | NULL | NULL | -9223372036854775808 | NULL | NULL | NULL | NULL | NULL | 三。San Diego | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.004 | 1 | NULL | NULL | 514811543 | NULL | NULL | 683409189 | NULL | NULL | 94762575.40613 | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | -taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; +taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; count(*) | ======================== 2 | 2 | 2 | - 40 | 2 | - 48 | 2 | - 4 | + 2 | + 2 | + 2 | 2 | 2 | -taos> select u_tinyint_col, tinyint_col from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; +taos> select u_tinyint_col, tinyint_col from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; u_tinyint_col | tinyint_col | ============================== - 39 | -22 | - 39 | -22 | - 6 | 105 | - 6 | 105 | - 117 | 47 | - 117 | 47 | - 240 | 8 | - 240 | 8 | - 176 | 47 | - 176 | 47 | - 171 | 114 | - 171 | 114 | - 144 | -80 | - 144 | -80 | - 158 | -77 | - 158 | -77 | - 159 | 115 | - 159 | 115 | - 15 | 124 | - 15 | 124 | + NULL | -10 | + NULL | -10 | + NULL | -10 | + NULL | -10 | + NULL | -10 | + NULL | -10 | + NULL | -10 | + NULL | -10 | + NULL | -10 | + NULL | -10 | -taos> select u_tinyint_col, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; +taos> select u_tinyint_col, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; u_tinyint_col | tinyint_col | count(*) | ====================================================== - 223 | -74 | 2 | - 122 | -27 | 2 | - 180 | -128 | 2 | + NULL | 33 | 92 | + NULL | 10 | 58 | + NULL | 85 | 32 | NULL | -98 | 40 | - 209 | -11 | 2 | + NULL | 126 | 58 | NULL | 15 | 48 | - 89 | -80 | 2 | - 141 | 113 | 4 | - 239 | -51 | 2 | - 254 | -71 | 2 | + NULL | 98 | 50 | + NULL | 14 | 60 | + NULL | 9 | 44 | + NULL | 50 | 54 | -taos> select avg(u_int_col), avg(tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; +taos> select avg(u_int_col), avg(tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; avg(u_int_col) | avg(tinyint_col) | ======================================================== - NULL | -74 | - NULL | -27 | - 1335404897 | -128 | - 1426172362 | -98 | - NULL | -11 | - 946085747.5 | 15 | - NULL | -80 | - NULL | 113 | - NULL | -51 | NULL | -71 | + NULL | -11 | + NULL | 113 | + NULL | -74 | + NULL | -80 | + NULL | -27 | + NULL | -97 | + NULL | -51 | + NULL | 35 | + NULL | 52 | -taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; +taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; avg(u_tinyint_col) | avg(u_smallint_col) | avg(u_int_col) | avg(u_bigint_col) | avg(tinyint_col) | avg(smallint_col) | avg(int_col) | avg(bigint_col) | avg(float_col) | avg(double_col) | ======================================================================================================================================================================================================================================================================================== - 223 | 2252 | NULL | 258445752 | -74 | NULL | 450751778 | -9.22337203685478e+18 | NULL | -38067118.452938 | - 122 | 60037 | NULL | 631322561 | -27 | NULL | -830220359 | -9.22337203685478e+18 | NULL | -33432384.003759 | - 180 | 50112 | 1335404897 | 1448513250 | -128 | 12464 | 1009370387 | -9.22337203685478e+18 | 9641.2978515625 | 92538397.847061 | + NULL | 33831.6739130435 | 1318789309.125 | NULL | 33 | -12190.75 | NULL | -9.22337203685478e+18 | 23283.1239624023 | NULL | + NULL | 31745.4827586207 | 1544854152.2 | NULL | 10 | 6087 | NULL | -9.22337203685478e+18 | 31152.176171875 | NULL | + NULL | 39667.5625 | 855601557.5 | NULL | 85 | -16325.5 | NULL | -9.22337203685478e+18 | -3223.10552978516 | NULL | NULL | 33434.95 | 1426172362 | NULL | -98 | 16431.3333333333 | NULL | -9.22337203685478e+18 | 19849.3048502604 | NULL | - 209 | 58173 | NULL | 108924939 | -11 | NULL | 275241563 | -9.22337203685478e+18 | NULL | -56795340.811717 | + NULL | 39750.1379310345 | 812243601.428571 | NULL | 126 | 4213.42857142857 | NULL | -9.22337203685478e+18 | -6953.95842633929 | NULL | NULL | 35937.0416666667 | 946085747.5 | NULL | 15 | -4618.375 | NULL | -9.22337203685478e+18 | -18934.5077819824 | NULL | - 89 | 7242 | NULL | 913351744 | -80 | NULL | 649647103 | -9.22337203685478e+18 | NULL | 69752282.021601 | - 141 | 29124 | NULL | 1908889524 | 113 | NULL | -393540095.5 | -9.22337203685478e+18 | NULL | -13658944.5757665 | - 239 | 21507 | NULL | 1810262734 | -51 | NULL | -253979173 | -9.22337203685478e+18 | NULL | -79335108.456754 | - 254 | 61337 | NULL | 148966060 | -71 | NULL | 563552648 | -9.22337203685478e+18 | NULL | -38685356.853214 | + NULL | 36542.48 | 1162378206.6 | NULL | 98 | -328.4 | NULL | -9.22337203685478e+18 | -487.43056640625 | NULL | + NULL | 33767.8333333333 | 1290059129.66667 | NULL | 14 | -417.5 | NULL | -9.22337203685478e+18 | -9614.62768554688 | NULL | + NULL | 30469.7272727273 | 1286046366.4 | NULL | 9 | -6929 | NULL | -9.22337203685478e+18 | 9618.0123046875 | NULL | + NULL | 37029.3703703704 | 1008539760.5 | NULL | 50 | 8137.6 | NULL | -9.22337203685478e+18 | 6700.13325805664 | NULL | -taos> select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; +taos> select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1, 2, int_tag slimit 10 limit 10; ts | u_tinyint_col | u_smallint_col | u_int_col | u_bigint_col | tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | bool_col | binary_16_col | binary_32_col | nchar_16_col | nchar_32_col | int_tag | bool_tag | float_tag | double_tag | nchar_32_tag | binary_32_tag | ======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== - 2020-10-01 00:00:10.014 | 39 | 37788 | NULL | 1600044099 | -22 | NULL | 968851512 | -9223372036854775808 | NULL | -89445763.027226 | false | NULL | Taiyuan - Santa Clara | 七。Mountain | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:10.014 | 39 | 37788 | NULL | 1600044099 | -22 | NULL | 968851512 | -9223372036854775808 | NULL | -89445763.027226 | false | NULL | Taiyuan - Santa Clara | 七。Mountain | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:15.432 | 6 | 11090 | NULL | 617356184 | 105 | NULL | -385653237 | -9223372036854775808 | NULL | 97555348.695395 | false | NULL | Xian - Sunnyvale | 五。Palo Alto | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:15.432 | 6 | 11090 | NULL | 617356184 | 105 | NULL | -385653237 | -9223372036854775808 | NULL | 97555348.695395 | false | NULL | Xian - Sunnyvale | 五。Palo Alto | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:19.884 | 117 | 16744 | NULL | 383342191 | 47 | NULL | 518627967 | -9223372036854775808 | NULL | 46352562.918609 | true | NULL | Taiyuan - Santa Clara | 九。Santa Cla | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:19.884 | 117 | 16744 | NULL | 383342191 | 47 | NULL | 518627967 | -9223372036854775808 | NULL | 46352562.918609 | true | NULL | Taiyuan - Santa Clara | 九。Santa Cla | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:17.058 | 240 | 60740 | NULL | 545615850 | 8 | NULL | -786050053 | -9223372036854775808 | NULL | 66486064.270497 | false | NULL | Chengdu - San Jose | 二。Los Angle | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:17.058 | 240 | 60740 | NULL | 545615850 | 8 | NULL | -786050053 | -9223372036854775808 | NULL | 66486064.270497 | false | NULL | Chengdu - San Jose | 二。Los Angle | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:01.896 | 176 | 8527 | NULL | 878674910 | 47 | NULL | -53167779 | -9223372036854775808 | NULL | 71922859.850709 | false | NULL | Shijiazhuang - Cupertino | 一。San Franc | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:01.896 | 176 | 8527 | NULL | 878674910 | 47 | NULL | -53167779 | -9223372036854775808 | NULL | 71922859.850709 | false | NULL | Shijiazhuang - Cupertino | 一。San Franc | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:04.086 | 171 | 1169 | NULL | 1377921642 | 114 | NULL | -509127079 | -9223372036854775808 | NULL | 64210530.663581 | false | NULL | Tianjin - Mountain View | 二。Los Angle | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:04.086 | 171 | 1169 | NULL | 1377921642 | 114 | NULL | -509127079 | -9223372036854775808 | NULL | 64210530.663581 | false | NULL | Tianjin - Mountain View | 二。Los Angle | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:09.870 | 144 | 17230 | 1223829379 | 432089801 | -80 | 27125 | -425646741 | -9223372036854775808 | 65894 | -56946461.311162 | false | Sunnyvale | Taiyuan - Santa Clara | 十。Cupertino | 旧金山 - San Francisco | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:09.870 | 144 | 17230 | 1223829379 | 432089801 | -80 | 27125 | -425646741 | -9223372036854775808 | 65894 | -56946461.311162 | false | Sunnyvale | Taiyuan - Santa Clara | 十。Cupertino | 旧金山 - San Francisco | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:03.078 | 158 | 52964 | NULL | 1542959965 | -77 | NULL | -26065745 | -9223372036854775808 | NULL | -67330512.375843 | false | NULL | Tianjin - Mountain View | 六。Campbell | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:03.078 | 158 | 52964 | NULL | 1542959965 | -77 | NULL | -26065745 | -9223372036854775808 | NULL | -67330512.375843 | false | NULL | Tianjin - Mountain View | 六。Campbell | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:18.558 | 159 | 24721 | NULL | 1642444156 | 115 | NULL | 390260950 | -9223372036854775808 | NULL | -11044773.177774 | true | NULL | Harbin - Campbell | 三。San Diego | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:18.558 | 159 | 24721 | NULL | 1642444156 | 115 | NULL | 390260950 | -9223372036854775808 | NULL | -11044773.177774 | true | NULL | Harbin - Campbell | 三。San Diego | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:06.216 | 15 | 7661 | NULL | 448404487 | 124 | NULL | 801727776 | -9223372036854775808 | NULL | 46986576.662291 | true | NULL | Tianjin - Mountain View | 五。Palo Alto | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:06.216 | 15 | 7661 | NULL | 448404487 | 124 | NULL | 801727776 | -9223372036854775808 | NULL | 46986576.662291 | true | NULL | Tianjin - Mountain View | 五。Palo Alto | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | NULL | NULL | NULL | -650873068 | -9223372036854775808 | 99528.7 | NULL | NULL | NULL | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | NULL | NULL | NULL | -77824226 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | NULL | NULL | NULL | -9223372036854775808 | NULL | NULL | NULL | NULL | NULL | 三。San Diego | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.004 | 1 | NULL | NULL | 514811543 | NULL | NULL | 683409189 | NULL | NULL | 94762575.40613 | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(10s) slimit 10 limit 10; +taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(10s) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | u_tinyint_col | count(*) | ============================================================================================ - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 147 | 48 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 147 | 84 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 74 | 33 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 74 | 63 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 131 | 42 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 131 | 45 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 32 | 51 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 32 | 45 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 38 | 63 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 38 | 75 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 107 | 60 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 107 | 54 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 99 | 54 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 99 | 81 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 27 | 69 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 27 | 66 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 236 | 42 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 236 | 45 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 28 | 54 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 28 | 36 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 0 | 69 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 1 | 75 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 2 | 51 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 3 | 57 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 4 | 69 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 5 | 45 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 6 | 42 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 7 | 42 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 8 | 72 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 9 | 96 | -taos> select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col interval(10s) slimit 10 limit 10; +taos> select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col interval(10s) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | tinyint_col | count(*) | ========================================================================================== - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -1 | 22 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | -1 | 24 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | -1 | 22 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -109 | 18 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | -109 | 40 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | -109 | 38 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 74 | 40 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 74 | 26 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | 74 | 26 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -128 | 30 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -127 | 16 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -126 | 22 | 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -125 | 30 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | -125 | 28 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | -125 | 22 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 32 | 28 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 32 | 26 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | 32 | 36 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 38 | 30 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 38 | 16 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | 38 | 28 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 107 | 18 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 107 | 44 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | 107 | 10 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 99 | 34 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 99 | 14 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | 99 | 28 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | 27 | 22 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | 27 | 18 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | 27 | 22 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -20 | 28 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | -20 | 26 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | -20 | 22 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -124 | 24 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -123 | 20 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -122 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -121 | 24 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -120 | 26 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | -119 | 14 | -taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(10s) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(10s) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | ======================================================================================= - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | true | 3300 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | true | 3426 | - 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | true | 3336 | 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | false | 3368 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:10.000 | true | 3300 | 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | false | 3240 | + 2020-10-01 00:00:10.000 | 2020-10-01 00:00:20.000 | true | 3426 | 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | false | 3330 | + 2020-10-01 00:00:20.000 | 2020-10-01 00:00:30.000 | true | 3336 | -taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | ======================================================================================= - 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | true | 10062 | 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | false | 9938 | + 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | true | 10062 | -taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | count(u_int_col) | count(u_tinyint_col) | count(u_smallint_col) | =============================================================================================================================================================== - 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | true | 10062 | 1996 | 3362 | 10062 | - 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | false | 9938 | 2004 | 3306 | 9938 | 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | NULL | 49999 | 26000 | 23332 | 10000 | + 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | false | 9938 | 2004 | 3306 | 9938 | + 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | true | 10062 | 1996 | 3362 | 10062 | -taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | count(u_int_col) | count(u_tinyint_col) | ======================================================================================================================================= - 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | true | 10062 | 1996 | 3362 | - 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | false | 9938 | 2004 | 3306 | 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | NULL | 44666 | 26000 | 23332 | + 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | false | 9938 | 2004 | 3306 | + 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | true | 10062 | 1996 | 3362 | -taos> select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | count(u_int_col) | =============================================================================================================== - 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | true | 10062 | 1996 | - 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | false | 9938 | 2004 | 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | NULL | 26000 | 26000 | + 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | false | 9938 | 2004 | + 2020-10-01 00:00:00.000 | 2020-10-02 00:00:00.000 | true | 10062 | 1996 | -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col state_window(bool_col) slimit 10 limit 10; +taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | u_tinyint_col | count(*) | ============================================================================================ - 2020-10-01 00:00:01.602 | 2020-10-01 00:00:02.088 | 147 | 2 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:02.772 | 147 | 2 | - 2020-10-01 00:00:07.086 | 2020-10-01 00:00:07.086 | 147 | 2 | - 2020-10-01 00:00:09.570 | 2020-10-01 00:00:09.570 | 147 | 2 | - 2020-10-01 00:00:09.912 | 2020-10-01 00:00:09.930 | 147 | 4 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:14.436 | 147 | 8 | - 2020-10-01 00:00:18.774 | 2020-10-01 00:00:19.788 | 147 | 6 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:00.348 | 74 | 2 | - 2020-10-01 00:00:02.964 | 2020-10-01 00:00:02.964 | 74 | 2 | - 2020-10-01 00:00:08.454 | 2020-10-01 00:00:08.454 | 74 | 2 | - 2020-10-01 00:00:10.626 | 2020-10-01 00:00:10.626 | 74 | 2 | - 2020-10-01 00:00:10.890 | 2020-10-01 00:00:13.494 | 74 | 6 | - 2020-10-01 00:00:16.116 | 2020-10-01 00:00:19.962 | 74 | 4 | - 2020-10-01 00:00:02.898 | 2020-10-01 00:00:02.898 | 131 | 1 | - 2020-10-01 00:00:07.734 | 2020-10-01 00:00:11.856 | 131 | 10 | - 2020-10-01 00:00:15.036 | 2020-10-01 00:00:16.806 | 131 | 4 | - 2020-10-01 00:00:17.724 | 2020-10-01 00:00:17.724 | 131 | 2 | - 2020-10-01 00:00:19.374 | 2020-10-01 00:00:19.374 | 131 | 3 | - 2020-10-01 00:00:01.554 | 2020-10-01 00:00:03.516 | 32 | 8 | - 2020-10-01 00:00:06.606 | 2020-10-01 00:00:19.120 | 32 | 10 | - 2020-10-01 00:00:00.276 | 2020-10-01 00:00:00.276 | 38 | 2 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:11.784 | 38 | 12 | - 2020-10-01 00:00:12.054 | 2020-10-01 00:00:18.252 | 38 | 10 | - 2020-10-01 00:00:18.264 | 2020-10-01 00:00:19.868 | 38 | 6 | - 2020-10-01 00:00:00.792 | 2020-10-01 00:00:00.792 | 107 | 2 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:02.364 | 107 | 2 | - 2020-10-01 00:00:03.522 | 2020-10-01 00:00:03.522 | 107 | 2 | - 2020-10-01 00:00:06.744 | 2020-10-01 00:00:07.266 | 107 | 4 | - 2020-10-01 00:00:07.344 | 2020-10-01 00:00:13.854 | 107 | 12 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:17.742 | 107 | 4 | - 2020-10-01 00:00:18.210 | 2020-10-01 00:00:18.210 | 107 | 2 | - 2020-10-01 00:00:19.104 | 2020-10-01 00:00:19.520 | 107 | 2 | - 2020-10-01 00:00:00.360 | 2020-10-01 00:00:06.150 | 99 | 2 | - 2020-10-01 00:00:06.666 | 2020-10-01 00:00:08.430 | 99 | 10 | - 2020-10-01 00:00:08.808 | 2020-10-01 00:00:11.034 | 99 | 4 | - 2020-10-01 00:00:11.046 | 2020-10-01 00:00:12.270 | 99 | 6 | - 2020-10-01 00:00:12.576 | 2020-10-01 00:00:12.942 | 99 | 4 | - 2020-10-01 00:00:13.224 | 2020-10-01 00:00:13.224 | 99 | 2 | - 2020-10-01 00:00:14.256 | 2020-10-01 00:00:16.182 | 99 | 8 | - 2020-10-01 00:00:16.872 | 2020-10-01 00:00:18.462 | 99 | 4 | - 2020-10-01 00:00:19.572 | 2020-10-01 00:00:19.918 | 99 | 4 | - 2020-10-01 00:00:00.468 | 2020-10-01 00:00:00.468 | 27 | 1 | - 2020-10-01 00:00:00.978 | 2020-10-01 00:00:00.978 | 27 | 2 | - 2020-10-01 00:00:00.990 | 2020-10-01 00:00:00.990 | 27 | 2 | - 2020-10-01 00:00:01.098 | 2020-10-01 00:00:02.478 | 27 | 4 | - 2020-10-01 00:00:04.542 | 2020-10-01 00:00:04.542 | 27 | 2 | - 2020-10-01 00:00:04.692 | 2020-10-01 00:00:05.994 | 27 | 4 | - 2020-10-01 00:00:06.600 | 2020-10-01 00:00:06.600 | 27 | 2 | - 2020-10-01 00:00:09.936 | 2020-10-01 00:00:17.004 | 27 | 8 | - 2020-10-01 00:00:18.546 | 2020-10-01 00:00:18.546 | 27 | 2 | - 2020-10-01 00:00:19.038 | 2020-10-01 00:00:19.038 | 27 | 2 | - 2020-10-01 00:00:01.788 | 2020-10-01 00:00:01.788 | 236 | 2 | - 2020-10-01 00:00:05.832 | 2020-10-01 00:00:10.422 | 236 | 6 | - 2020-10-01 00:00:10.446 | 2020-10-01 00:00:10.446 | 236 | 2 | - 2020-10-01 00:00:11.424 | 2020-10-01 00:00:11.424 | 236 | 2 | - 2020-10-01 00:00:11.838 | 2020-10-01 00:00:16.968 | 236 | 8 | - 2020-10-01 00:00:17.958 | 2020-10-01 00:00:18.764 | 236 | 4 | - 2020-10-01 00:00:01.284 | 2020-10-01 00:00:05.940 | 28 | 6 | - 2020-10-01 00:00:06.810 | 2020-10-01 00:00:07.896 | 28 | 4 | - 2020-10-01 00:00:09.534 | 2020-10-01 00:00:10.728 | 28 | 6 | - 2020-10-01 00:00:13.368 | 2020-10-01 00:00:18.746 | 28 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.962 | 29 | 2 | + 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | NULL | 2 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:00.864 | 49 | 6 | + 2020-10-01 00:00:00.009 | 2020-10-01 00:00:00.015 | NULL | 4 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | 77 | 1 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.018 | 195 | 1 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | NULL | 2 | + 2020-10-01 00:00:00.024 | 2020-10-01 00:00:00.024 | 198 | 1 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.027 | NULL | 2 | + 2020-10-01 00:00:00.030 | 2020-10-01 00:00:02.202 | 162 | 4 | -taos> select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) slimit 10 limit 10; +taos> select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | tinyint_col | count(*) | ========================================================================================== - 2020-10-01 00:00:01.515 | 2020-10-01 00:00:01.515 | -1 | 1 | - 2020-10-01 00:00:02.505 | 2020-10-01 00:00:07.200 | -1 | 10 | - 2020-10-01 00:00:07.383 | 2020-10-01 00:00:08.721 | -1 | 6 | - 2020-10-01 00:00:09.222 | 2020-10-01 00:00:09.396 | -1 | 4 | - 2020-10-01 00:00:10.773 | 2020-10-01 00:00:10.773 | -1 | 2 | - 2020-10-01 00:00:12.483 | 2020-10-01 00:00:12.483 | -1 | 2 | - 2020-10-01 00:00:12.822 | 2020-10-01 00:00:14.319 | -1 | 6 | - 2020-10-01 00:00:14.652 | 2020-10-01 00:00:14.652 | -1 | 2 | - 2020-10-01 00:00:14.994 | 2020-10-01 00:00:14.994 | -1 | 2 | - 2020-10-01 00:00:16.260 | 2020-10-01 00:00:17.808 | -1 | 8 | - 2020-10-01 00:00:00.993 | 2020-10-01 00:00:01.488 | -109 | 2 | - 2020-10-01 00:00:01.584 | 2020-10-01 00:00:01.710 | -109 | 4 | - 2020-10-01 00:00:03.717 | 2020-10-01 00:00:03.717 | -109 | 2 | - 2020-10-01 00:00:07.965 | 2020-10-01 00:00:08.313 | -109 | 4 | - 2020-10-01 00:00:08.700 | 2020-10-01 00:00:08.700 | -109 | 2 | - 2020-10-01 00:00:08.841 | 2020-10-01 00:00:08.841 | -109 | 2 | - 2020-10-01 00:00:10.752 | 2020-10-01 00:00:10.752 | -109 | 2 | - 2020-10-01 00:00:11.559 | 2020-10-01 00:00:12.408 | -109 | 4 | - 2020-10-01 00:00:12.786 | 2020-10-01 00:00:12.906 | -109 | 6 | - 2020-10-01 00:00:14.310 | 2020-10-01 00:00:15.405 | -109 | 4 | - 2020-10-01 00:00:00.561 | 2020-10-01 00:00:01.023 | 74 | 4 | - 2020-10-01 00:00:02.112 | 2020-10-01 00:00:02.112 | 74 | 2 | - 2020-10-01 00:00:02.382 | 2020-10-01 00:00:02.871 | 74 | 4 | - 2020-10-01 00:00:03.339 | 2020-10-01 00:00:03.339 | 74 | 2 | - 2020-10-01 00:00:03.417 | 2020-10-01 00:00:05.766 | 74 | 8 | - 2020-10-01 00:00:05.778 | 2020-10-01 00:00:05.778 | 74 | 2 | - 2020-10-01 00:00:06.222 | 2020-10-01 00:00:06.222 | 74 | 2 | - 2020-10-01 00:00:06.648 | 2020-10-01 00:00:06.648 | 74 | 2 | - 2020-10-01 00:00:07.428 | 2020-10-01 00:00:07.428 | 74 | 2 | - 2020-10-01 00:00:07.890 | 2020-10-01 00:00:08.430 | 74 | 6 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:01.092 | -125 | 6 | - 2020-10-01 00:00:01.341 | 2020-10-01 00:00:01.341 | -125 | 2 | - 2020-10-01 00:00:02.211 | 2020-10-01 00:00:04.548 | -125 | 6 | - 2020-10-01 00:00:04.755 | 2020-10-01 00:00:05.553 | -125 | 6 | - 2020-10-01 00:00:06.423 | 2020-10-01 00:00:09.084 | -125 | 6 | - 2020-10-01 00:00:09.204 | 2020-10-01 00:00:09.204 | -125 | 2 | - 2020-10-01 00:00:09.909 | 2020-10-01 00:00:10.323 | -125 | 4 | - 2020-10-01 00:00:10.386 | 2020-10-01 00:00:12.099 | -125 | 6 | - 2020-10-01 00:00:13.563 | 2020-10-01 00:00:13.563 | -125 | 2 | - 2020-10-01 00:00:14.427 | 2020-10-01 00:00:14.427 | -125 | 2 | - 2020-10-01 00:00:01.134 | 2020-10-01 00:00:01.653 | 32 | 6 | - 2020-10-01 00:00:02.439 | 2020-10-01 00:00:03.330 | 32 | 8 | - 2020-10-01 00:00:03.735 | 2020-10-01 00:00:03.858 | 32 | 4 | - 2020-10-01 00:00:05.115 | 2020-10-01 00:00:05.346 | 32 | 4 | - 2020-10-01 00:00:05.661 | 2020-10-01 00:00:05.661 | 32 | 2 | - 2020-10-01 00:00:06.846 | 2020-10-01 00:00:06.846 | 32 | 2 | - 2020-10-01 00:00:09.501 | 2020-10-01 00:00:12.699 | 32 | 10 | - 2020-10-01 00:00:13.881 | 2020-10-01 00:00:13.881 | 32 | 2 | - 2020-10-01 00:00:14.907 | 2020-10-01 00:00:16.638 | 32 | 10 | - 2020-10-01 00:00:18.294 | 2020-10-01 00:00:18.309 | 32 | 4 | - 2020-10-01 00:00:00.900 | 2020-10-01 00:00:01.203 | 38 | 4 | - 2020-10-01 00:00:02.166 | 2020-10-01 00:00:02.166 | 38 | 2 | - 2020-10-01 00:00:02.649 | 2020-10-01 00:00:02.649 | 38 | 2 | - 2020-10-01 00:00:02.955 | 2020-10-01 00:00:02.955 | 38 | 2 | - 2020-10-01 00:00:02.958 | 2020-10-01 00:00:02.958 | 38 | 2 | - 2020-10-01 00:00:03.006 | 2020-10-01 00:00:03.429 | 38 | 4 | - 2020-10-01 00:00:05.232 | 2020-10-01 00:00:05.232 | 38 | 2 | - 2020-10-01 00:00:05.364 | 2020-10-01 00:00:05.364 | 38 | 2 | - 2020-10-01 00:00:06.447 | 2020-10-01 00:00:06.447 | 38 | 2 | - 2020-10-01 00:00:08.715 | 2020-10-01 00:00:09.507 | 38 | 6 | - 2020-10-01 00:00:01.218 | 2020-10-01 00:00:01.386 | 107 | 2 | - 2020-10-01 00:00:01.737 | 2020-10-01 00:00:01.737 | 107 | 2 | - 2020-10-01 00:00:04.185 | 2020-10-01 00:00:04.185 | 107 | 2 | - 2020-10-01 00:00:04.530 | 2020-10-01 00:00:04.530 | 107 | 2 | - 2020-10-01 00:00:06.354 | 2020-10-01 00:00:07.389 | 107 | 6 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 2 | - 2020-10-01 00:00:10.842 | 2020-10-01 00:00:11.793 | 107 | 6 | - 2020-10-01 00:00:11.925 | 2020-10-01 00:00:11.949 | 107 | 4 | - 2020-10-01 00:00:13.164 | 2020-10-01 00:00:13.569 | 107 | 4 | - 2020-10-01 00:00:13.965 | 2020-10-01 00:00:13.965 | 107 | 2 | - 2020-10-01 00:00:00.813 | 2020-10-01 00:00:00.813 | 99 | 2 | - 2020-10-01 00:00:01.167 | 2020-10-01 00:00:01.365 | 99 | 4 | - 2020-10-01 00:00:01.632 | 2020-10-01 00:00:02.367 | 99 | 6 | - 2020-10-01 00:00:02.514 | 2020-10-01 00:00:04.332 | 99 | 8 | - 2020-10-01 00:00:06.087 | 2020-10-01 00:00:06.087 | 99 | 2 | - 2020-10-01 00:00:07.041 | 2020-10-01 00:00:07.842 | 99 | 4 | - 2020-10-01 00:00:07.905 | 2020-10-01 00:00:08.016 | 99 | 4 | - 2020-10-01 00:00:08.892 | 2020-10-01 00:00:14.040 | 99 | 10 | - 2020-10-01 00:00:15.882 | 2020-10-01 00:00:15.882 | 99 | 2 | - 2020-10-01 00:00:16.182 | 2020-10-01 00:00:16.644 | 99 | 4 | - 2020-10-01 00:00:01.086 | 2020-10-01 00:00:01.086 | 27 | 1 | - 2020-10-01 00:00:01.830 | 2020-10-01 00:00:01.830 | 27 | 2 | - 2020-10-01 00:00:03.174 | 2020-10-01 00:00:03.174 | 27 | 2 | - 2020-10-01 00:00:03.864 | 2020-10-01 00:00:03.864 | 27 | 2 | - 2020-10-01 00:00:05.967 | 2020-10-01 00:00:05.967 | 27 | 2 | - 2020-10-01 00:00:06.669 | 2020-10-01 00:00:06.669 | 27 | 2 | - 2020-10-01 00:00:06.822 | 2020-10-01 00:00:06.822 | 27 | 2 | - 2020-10-01 00:00:06.975 | 2020-10-01 00:00:07.281 | 27 | 4 | - 2020-10-01 00:00:08.295 | 2020-10-01 00:00:08.295 | 27 | 2 | - 2020-10-01 00:00:09.852 | 2020-10-01 00:00:09.852 | 27 | 2 | - 2020-10-01 00:00:00.981 | 2020-10-01 00:00:01.770 | -20 | 3 | - 2020-10-01 00:00:02.130 | 2020-10-01 00:00:03.567 | -20 | 12 | - 2020-10-01 00:00:04.446 | 2020-10-01 00:00:04.446 | -20 | 2 | - 2020-10-01 00:00:06.093 | 2020-10-01 00:00:06.093 | -20 | 2 | - 2020-10-01 00:00:06.252 | 2020-10-01 00:00:06.939 | -20 | 4 | - 2020-10-01 00:00:09.489 | 2020-10-01 00:00:16.764 | -20 | 16 | - 2020-10-01 00:00:17.430 | 2020-10-01 00:00:17.430 | -20 | 2 | - 2020-10-01 00:00:18.966 | 2020-10-01 00:00:18.966 | -20 | 2 | - 2020-10-01 00:00:19.056 | 2020-10-01 00:00:19.056 | -20 | 2 | - 2020-10-01 00:00:19.119 | 2020-10-01 00:00:19.119 | -20 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 80 | 2 | + 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | 44 | 1 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:01.779 | -91 | 4 | + 2020-10-01 00:00:00.009 | 2020-10-01 00:00:01.731 | 25 | 3 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | 70 | 1 | + 2020-10-01 00:00:00.015 | 2020-10-01 00:00:02.829 | -106 | 3 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:02.922 | -113 | 6 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | 109 | 2 | + 2020-10-01 00:00:00.024 | 2020-10-01 00:00:00.024 | -9 | 2 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:01.662 | -102 | 4 | -taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col state_window(bool_col) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | ======================================================================================= 2020-10-01 00:00:00.000 | 2020-10-01 00:00:29.997 | true | 10062 | 2020-10-01 00:00:00.003 | 2020-10-01 00:00:29.988 | false | 9938 | -taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col state_window(bool_col) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | ======================================================================================= 2020-10-01 00:00:00.000 | 2020-10-01 00:00:29.997 | true | 10062 | 2020-10-01 00:00:00.003 | 2020-10-01 00:00:29.988 | false | 9938 | -taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | count(u_int_col) | count(u_tinyint_col) | count(u_smallint_col) | =============================================================================================================================================================== - 2020-10-01 00:00:01.515 | 2020-10-01 00:00:01.515 | true | 1 | 1 | 0 | 1 | - 2020-10-01 00:00:02.505 | 2020-10-01 00:00:07.200 | false | 10 | 6 | 6 | 10 | - 2020-10-01 00:00:07.383 | 2020-10-01 00:00:08.721 | true | 6 | 0 | 2 | 6 | - 2020-10-01 00:00:09.222 | 2020-10-01 00:00:09.396 | false | 4 | 0 | 4 | 4 | - 2020-10-01 00:00:10.773 | 2020-10-01 00:00:10.773 | true | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:12.483 | 2020-10-01 00:00:12.483 | false | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:12.822 | 2020-10-01 00:00:14.319 | true | 6 | 2 | 4 | 6 | - 2020-10-01 00:00:14.652 | 2020-10-01 00:00:14.652 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:14.994 | 2020-10-01 00:00:14.994 | true | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:16.260 | 2020-10-01 00:00:17.808 | false | 8 | 4 | 6 | 8 | - 2020-10-01 00:00:00.993 | 2020-10-01 00:00:01.488 | false | 2 | 0 | 1 | 2 | - 2020-10-01 00:00:01.584 | 2020-10-01 00:00:01.710 | true | 4 | 2 | 4 | 4 | - 2020-10-01 00:00:03.717 | 2020-10-01 00:00:03.717 | false | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:07.965 | 2020-10-01 00:00:08.313 | true | 4 | 2 | 0 | 4 | - 2020-10-01 00:00:08.700 | 2020-10-01 00:00:08.700 | false | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:08.841 | 2020-10-01 00:00:08.841 | true | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:10.752 | 2020-10-01 00:00:10.752 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:11.559 | 2020-10-01 00:00:12.408 | true | 4 | 0 | 2 | 4 | - 2020-10-01 00:00:12.786 | 2020-10-01 00:00:12.906 | false | 6 | 0 | 4 | 6 | - 2020-10-01 00:00:14.310 | 2020-10-01 00:00:15.405 | true | 4 | 4 | 2 | 4 | - 2020-10-01 00:00:00.561 | 2020-10-01 00:00:01.023 | true | 4 | 0 | 0 | 4 | - 2020-10-01 00:00:02.112 | 2020-10-01 00:00:02.112 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:02.382 | 2020-10-01 00:00:02.871 | true | 4 | 0 | 2 | 4 | - 2020-10-01 00:00:03.339 | 2020-10-01 00:00:03.339 | false | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:03.417 | 2020-10-01 00:00:05.766 | true | 8 | 4 | 2 | 8 | - 2020-10-01 00:00:05.778 | 2020-10-01 00:00:05.778 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:06.222 | 2020-10-01 00:00:06.222 | true | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:06.648 | 2020-10-01 00:00:06.648 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:07.428 | 2020-10-01 00:00:07.428 | true | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:07.890 | 2020-10-01 00:00:08.430 | false | 6 | 4 | 6 | 6 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:01.092 | true | 6 | 0 | 2 | 6 | - 2020-10-01 00:00:01.341 | 2020-10-01 00:00:01.341 | false | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.211 | 2020-10-01 00:00:04.548 | true | 6 | 0 | 4 | 6 | - 2020-10-01 00:00:04.755 | 2020-10-01 00:00:05.553 | false | 6 | 2 | 0 | 6 | - 2020-10-01 00:00:06.423 | 2020-10-01 00:00:09.084 | true | 6 | 2 | 4 | 6 | - 2020-10-01 00:00:09.204 | 2020-10-01 00:00:09.204 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:09.909 | 2020-10-01 00:00:10.323 | true | 4 | 0 | 0 | 4 | - 2020-10-01 00:00:10.386 | 2020-10-01 00:00:12.099 | false | 6 | 0 | 2 | 6 | - 2020-10-01 00:00:13.563 | 2020-10-01 00:00:13.563 | true | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:14.427 | 2020-10-01 00:00:14.427 | false | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.134 | 2020-10-01 00:00:01.653 | true | 6 | 0 | 2 | 6 | - 2020-10-01 00:00:02.439 | 2020-10-01 00:00:03.330 | false | 8 | 2 | 6 | 8 | - 2020-10-01 00:00:03.735 | 2020-10-01 00:00:03.858 | true | 4 | 2 | 2 | 4 | - 2020-10-01 00:00:05.115 | 2020-10-01 00:00:05.346 | false | 4 | 2 | 2 | 4 | - 2020-10-01 00:00:05.661 | 2020-10-01 00:00:05.661 | true | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:06.846 | 2020-10-01 00:00:06.846 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:09.501 | 2020-10-01 00:00:12.699 | true | 10 | 0 | 2 | 10 | - 2020-10-01 00:00:13.881 | 2020-10-01 00:00:13.881 | false | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:14.907 | 2020-10-01 00:00:16.638 | true | 10 | 0 | 4 | 10 | - 2020-10-01 00:00:18.294 | 2020-10-01 00:00:18.309 | false | 4 | 0 | 2 | 4 | - 2020-10-01 00:00:00.900 | 2020-10-01 00:00:01.203 | true | 4 | 2 | 2 | 4 | - 2020-10-01 00:00:02.166 | 2020-10-01 00:00:02.166 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:02.649 | 2020-10-01 00:00:02.649 | true | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.955 | 2020-10-01 00:00:02.955 | false | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:02.958 | 2020-10-01 00:00:02.958 | true | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:03.006 | 2020-10-01 00:00:03.429 | false | 4 | 0 | 2 | 4 | - 2020-10-01 00:00:05.232 | 2020-10-01 00:00:05.232 | true | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:05.364 | 2020-10-01 00:00:05.364 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:06.447 | 2020-10-01 00:00:06.447 | true | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:08.715 | 2020-10-01 00:00:09.507 | false | 6 | 2 | 0 | 6 | - 2020-10-01 00:00:01.218 | 2020-10-01 00:00:01.386 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:01.737 | 2020-10-01 00:00:01.737 | true | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:04.185 | 2020-10-01 00:00:04.185 | false | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:04.530 | 2020-10-01 00:00:04.530 | true | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:06.354 | 2020-10-01 00:00:07.389 | false | 6 | 0 | 2 | 6 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | true | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:10.842 | 2020-10-01 00:00:11.793 | false | 6 | 0 | 2 | 6 | - 2020-10-01 00:00:11.925 | 2020-10-01 00:00:11.949 | true | 4 | 2 | 0 | 4 | - 2020-10-01 00:00:13.164 | 2020-10-01 00:00:13.569 | false | 4 | 0 | 2 | 4 | - 2020-10-01 00:00:13.965 | 2020-10-01 00:00:13.965 | true | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:00.813 | 2020-10-01 00:00:00.813 | false | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.167 | 2020-10-01 00:00:01.365 | true | 4 | 2 | 0 | 4 | - 2020-10-01 00:00:01.632 | 2020-10-01 00:00:02.367 | false | 6 | 0 | 4 | 6 | - 2020-10-01 00:00:02.514 | 2020-10-01 00:00:04.332 | true | 8 | 0 | 4 | 8 | - 2020-10-01 00:00:06.087 | 2020-10-01 00:00:06.087 | false | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:07.041 | 2020-10-01 00:00:07.842 | true | 4 | 0 | 2 | 4 | - 2020-10-01 00:00:07.905 | 2020-10-01 00:00:08.016 | false | 4 | 2 | 2 | 4 | - 2020-10-01 00:00:08.892 | 2020-10-01 00:00:14.040 | true | 10 | 2 | 8 | 10 | - 2020-10-01 00:00:15.882 | 2020-10-01 00:00:15.882 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:16.182 | 2020-10-01 00:00:16.644 | true | 4 | 0 | 4 | 4 | - 2020-10-01 00:00:01.086 | 2020-10-01 00:00:01.086 | true | 1 | 0 | 1 | 1 | - 2020-10-01 00:00:01.830 | 2020-10-01 00:00:01.830 | false | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:03.174 | 2020-10-01 00:00:03.174 | true | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:03.864 | 2020-10-01 00:00:03.864 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:05.967 | 2020-10-01 00:00:05.967 | true | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:06.669 | 2020-10-01 00:00:06.669 | false | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:06.822 | 2020-10-01 00:00:06.822 | true | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:06.975 | 2020-10-01 00:00:07.281 | false | 4 | 2 | 0 | 4 | - 2020-10-01 00:00:08.295 | 2020-10-01 00:00:08.295 | true | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:09.852 | 2020-10-01 00:00:09.852 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:00.981 | 2020-10-01 00:00:01.770 | false | 3 | 2 | 2 | 3 | - 2020-10-01 00:00:02.130 | 2020-10-01 00:00:03.567 | true | 12 | 2 | 6 | 12 | - 2020-10-01 00:00:04.446 | 2020-10-01 00:00:04.446 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:06.093 | 2020-10-01 00:00:06.093 | true | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:06.252 | 2020-10-01 00:00:06.939 | false | 4 | 0 | 2 | 4 | - 2020-10-01 00:00:09.489 | 2020-10-01 00:00:16.764 | true | 16 | 2 | 10 | 16 | - 2020-10-01 00:00:17.430 | 2020-10-01 00:00:17.430 | false | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:18.966 | 2020-10-01 00:00:18.966 | true | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:19.056 | 2020-10-01 00:00:19.056 | false | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:19.119 | 2020-10-01 00:00:19.119 | true | 2 | 0 | 0 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | true | 2 | 2 | 2 | 2 | + 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | false | 1 | 0 | 0 | 1 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:01.779 | true | 4 | 0 | 2 | 4 | + 2020-10-01 00:00:00.009 | 2020-10-01 00:00:01.731 | true | 3 | 1 | 0 | 3 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | false | 1 | 0 | 1 | 1 | + 2020-10-01 00:00:00.015 | 2020-10-01 00:00:02.829 | true | 3 | 1 | 1 | 3 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:02.922 | true | 6 | 0 | 6 | 6 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | false | 2 | 0 | 0 | 2 | + 2020-10-01 00:00:00.024 | 2020-10-01 00:00:00.024 | false | 2 | 0 | 2 | 2 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:01.662 | true | 4 | 0 | 2 | 4 | -taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | count(u_int_col) | count(u_tinyint_col) | ======================================================================================================================================= - 2020-10-01 00:00:01.515 | 2020-10-01 00:00:01.515 | true | 1 | 1 | 0 | - 2020-10-01 00:00:02.505 | 2020-10-01 00:00:07.200 | false | 10 | 6 | 6 | - 2020-10-01 00:00:07.383 | 2020-10-01 00:00:08.721 | true | 6 | 0 | 2 | - 2020-10-01 00:00:09.222 | 2020-10-01 00:00:09.396 | false | 4 | 0 | 4 | - 2020-10-01 00:00:10.773 | 2020-10-01 00:00:10.773 | true | 2 | 0 | 0 | - 2020-10-01 00:00:12.483 | 2020-10-01 00:00:12.483 | false | 2 | 0 | 0 | - 2020-10-01 00:00:12.822 | 2020-10-01 00:00:14.319 | true | 6 | 2 | 4 | - 2020-10-01 00:00:14.652 | 2020-10-01 00:00:14.652 | false | 2 | 0 | 2 | - 2020-10-01 00:00:14.994 | 2020-10-01 00:00:14.994 | true | 2 | 0 | 2 | - 2020-10-01 00:00:16.260 | 2020-10-01 00:00:17.808 | false | 8 | 4 | 6 | - 2020-10-01 00:00:00.993 | 2020-10-01 00:00:01.488 | false | 2 | 0 | 1 | - 2020-10-01 00:00:01.584 | 2020-10-01 00:00:01.710 | true | 4 | 2 | 4 | - 2020-10-01 00:00:03.717 | 2020-10-01 00:00:03.717 | false | 2 | 0 | 0 | - 2020-10-01 00:00:07.965 | 2020-10-01 00:00:08.313 | true | 4 | 2 | 0 | - 2020-10-01 00:00:08.700 | 2020-10-01 00:00:08.700 | false | 2 | 2 | 2 | - 2020-10-01 00:00:08.841 | 2020-10-01 00:00:08.841 | true | 2 | 0 | 0 | - 2020-10-01 00:00:10.752 | 2020-10-01 00:00:10.752 | false | 2 | 0 | 2 | - 2020-10-01 00:00:11.559 | 2020-10-01 00:00:12.408 | true | 4 | 0 | 2 | - 2020-10-01 00:00:12.786 | 2020-10-01 00:00:12.906 | false | 6 | 0 | 4 | - 2020-10-01 00:00:14.310 | 2020-10-01 00:00:15.405 | true | 4 | 4 | 2 | - 2020-10-01 00:00:00.561 | 2020-10-01 00:00:01.023 | true | 4 | 0 | 0 | - 2020-10-01 00:00:02.112 | 2020-10-01 00:00:02.112 | false | 2 | 0 | 2 | - 2020-10-01 00:00:02.382 | 2020-10-01 00:00:02.871 | true | 4 | 0 | 2 | - 2020-10-01 00:00:03.339 | 2020-10-01 00:00:03.339 | false | 2 | 0 | 0 | - 2020-10-01 00:00:03.417 | 2020-10-01 00:00:05.766 | true | 8 | 4 | 2 | - 2020-10-01 00:00:05.778 | 2020-10-01 00:00:05.778 | false | 2 | 0 | 2 | - 2020-10-01 00:00:06.222 | 2020-10-01 00:00:06.222 | true | 2 | 0 | 2 | - 2020-10-01 00:00:06.648 | 2020-10-01 00:00:06.648 | false | 2 | 0 | 2 | - 2020-10-01 00:00:07.428 | 2020-10-01 00:00:07.428 | true | 2 | 0 | 2 | - 2020-10-01 00:00:07.890 | 2020-10-01 00:00:08.430 | false | 6 | 4 | 6 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:01.092 | true | 6 | 0 | 2 | - 2020-10-01 00:00:01.341 | 2020-10-01 00:00:01.341 | false | 2 | 0 | 0 | - 2020-10-01 00:00:02.211 | 2020-10-01 00:00:04.548 | true | 6 | 0 | 4 | - 2020-10-01 00:00:04.755 | 2020-10-01 00:00:05.553 | false | 6 | 2 | 0 | - 2020-10-01 00:00:06.423 | 2020-10-01 00:00:09.084 | true | 6 | 2 | 4 | - 2020-10-01 00:00:09.204 | 2020-10-01 00:00:09.204 | false | 2 | 0 | 2 | - 2020-10-01 00:00:09.909 | 2020-10-01 00:00:10.323 | true | 4 | 0 | 0 | - 2020-10-01 00:00:10.386 | 2020-10-01 00:00:12.099 | false | 6 | 0 | 2 | - 2020-10-01 00:00:13.563 | 2020-10-01 00:00:13.563 | true | 2 | 0 | 0 | - 2020-10-01 00:00:14.427 | 2020-10-01 00:00:14.427 | false | 2 | 0 | 0 | - 2020-10-01 00:00:01.134 | 2020-10-01 00:00:01.653 | true | 6 | 0 | 2 | - 2020-10-01 00:00:02.439 | 2020-10-01 00:00:03.330 | false | 8 | 2 | 6 | - 2020-10-01 00:00:03.735 | 2020-10-01 00:00:03.858 | true | 4 | 2 | 2 | - 2020-10-01 00:00:05.115 | 2020-10-01 00:00:05.346 | false | 4 | 2 | 2 | - 2020-10-01 00:00:05.661 | 2020-10-01 00:00:05.661 | true | 2 | 0 | 0 | - 2020-10-01 00:00:06.846 | 2020-10-01 00:00:06.846 | false | 2 | 0 | 2 | - 2020-10-01 00:00:09.501 | 2020-10-01 00:00:12.699 | true | 10 | 0 | 2 | - 2020-10-01 00:00:13.881 | 2020-10-01 00:00:13.881 | false | 2 | 0 | 0 | - 2020-10-01 00:00:14.907 | 2020-10-01 00:00:16.638 | true | 10 | 0 | 4 | - 2020-10-01 00:00:18.294 | 2020-10-01 00:00:18.309 | false | 4 | 0 | 2 | - 2020-10-01 00:00:00.900 | 2020-10-01 00:00:01.203 | true | 4 | 2 | 2 | - 2020-10-01 00:00:02.166 | 2020-10-01 00:00:02.166 | false | 2 | 0 | 2 | - 2020-10-01 00:00:02.649 | 2020-10-01 00:00:02.649 | true | 2 | 0 | 0 | - 2020-10-01 00:00:02.955 | 2020-10-01 00:00:02.955 | false | 2 | 2 | 0 | - 2020-10-01 00:00:02.958 | 2020-10-01 00:00:02.958 | true | 2 | 0 | 2 | - 2020-10-01 00:00:03.006 | 2020-10-01 00:00:03.429 | false | 4 | 0 | 2 | - 2020-10-01 00:00:05.232 | 2020-10-01 00:00:05.232 | true | 2 | 0 | 2 | - 2020-10-01 00:00:05.364 | 2020-10-01 00:00:05.364 | false | 2 | 0 | 2 | - 2020-10-01 00:00:06.447 | 2020-10-01 00:00:06.447 | true | 2 | 0 | 0 | - 2020-10-01 00:00:08.715 | 2020-10-01 00:00:09.507 | false | 6 | 2 | 0 | - 2020-10-01 00:00:01.218 | 2020-10-01 00:00:01.386 | false | 2 | 0 | 2 | - 2020-10-01 00:00:01.737 | 2020-10-01 00:00:01.737 | true | 2 | 0 | 0 | - 2020-10-01 00:00:04.185 | 2020-10-01 00:00:04.185 | false | 2 | 2 | 0 | - 2020-10-01 00:00:04.530 | 2020-10-01 00:00:04.530 | true | 2 | 2 | 2 | - 2020-10-01 00:00:06.354 | 2020-10-01 00:00:07.389 | false | 6 | 0 | 2 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | true | 2 | 2 | 2 | - 2020-10-01 00:00:10.842 | 2020-10-01 00:00:11.793 | false | 6 | 0 | 2 | - 2020-10-01 00:00:11.925 | 2020-10-01 00:00:11.949 | true | 4 | 2 | 0 | - 2020-10-01 00:00:13.164 | 2020-10-01 00:00:13.569 | false | 4 | 0 | 2 | - 2020-10-01 00:00:13.965 | 2020-10-01 00:00:13.965 | true | 2 | 2 | 0 | - 2020-10-01 00:00:00.813 | 2020-10-01 00:00:00.813 | false | 2 | 0 | 0 | - 2020-10-01 00:00:01.167 | 2020-10-01 00:00:01.365 | true | 4 | 2 | 0 | - 2020-10-01 00:00:01.632 | 2020-10-01 00:00:02.367 | false | 6 | 0 | 4 | - 2020-10-01 00:00:02.514 | 2020-10-01 00:00:04.332 | true | 8 | 0 | 4 | - 2020-10-01 00:00:06.087 | 2020-10-01 00:00:06.087 | false | 2 | 0 | 0 | - 2020-10-01 00:00:07.041 | 2020-10-01 00:00:07.842 | true | 4 | 0 | 2 | - 2020-10-01 00:00:07.905 | 2020-10-01 00:00:08.016 | false | 4 | 2 | 2 | - 2020-10-01 00:00:08.892 | 2020-10-01 00:00:14.040 | true | 10 | 2 | 8 | - 2020-10-01 00:00:15.882 | 2020-10-01 00:00:15.882 | false | 2 | 0 | 2 | - 2020-10-01 00:00:16.182 | 2020-10-01 00:00:16.644 | true | 4 | 0 | 4 | - 2020-10-01 00:00:01.086 | 2020-10-01 00:00:01.086 | true | 1 | 0 | 1 | - 2020-10-01 00:00:01.830 | 2020-10-01 00:00:01.830 | false | 2 | 2 | 2 | - 2020-10-01 00:00:03.174 | 2020-10-01 00:00:03.174 | true | 2 | 0 | 2 | - 2020-10-01 00:00:03.864 | 2020-10-01 00:00:03.864 | false | 2 | 0 | 2 | - 2020-10-01 00:00:05.967 | 2020-10-01 00:00:05.967 | true | 2 | 0 | 0 | - 2020-10-01 00:00:06.669 | 2020-10-01 00:00:06.669 | false | 2 | 0 | 0 | - 2020-10-01 00:00:06.822 | 2020-10-01 00:00:06.822 | true | 2 | 0 | 2 | - 2020-10-01 00:00:06.975 | 2020-10-01 00:00:07.281 | false | 4 | 2 | 0 | - 2020-10-01 00:00:08.295 | 2020-10-01 00:00:08.295 | true | 2 | 2 | 0 | - 2020-10-01 00:00:09.852 | 2020-10-01 00:00:09.852 | false | 2 | 0 | 2 | - 2020-10-01 00:00:00.981 | 2020-10-01 00:00:01.770 | false | 3 | 2 | 2 | - 2020-10-01 00:00:02.130 | 2020-10-01 00:00:03.567 | true | 12 | 2 | 6 | - 2020-10-01 00:00:04.446 | 2020-10-01 00:00:04.446 | false | 2 | 0 | 2 | - 2020-10-01 00:00:06.093 | 2020-10-01 00:00:06.093 | true | 2 | 0 | 0 | - 2020-10-01 00:00:06.252 | 2020-10-01 00:00:06.939 | false | 4 | 0 | 2 | - 2020-10-01 00:00:09.489 | 2020-10-01 00:00:16.764 | true | 16 | 2 | 10 | - 2020-10-01 00:00:17.430 | 2020-10-01 00:00:17.430 | false | 2 | 2 | 2 | - 2020-10-01 00:00:18.966 | 2020-10-01 00:00:18.966 | true | 2 | 0 | 2 | - 2020-10-01 00:00:19.056 | 2020-10-01 00:00:19.056 | false | 2 | 0 | 2 | - 2020-10-01 00:00:19.119 | 2020-10-01 00:00:19.119 | true | 2 | 0 | 0 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | true | 2 | 2 | 2 | + 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | false | 1 | 0 | 0 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:01.779 | true | 4 | 0 | 2 | + 2020-10-01 00:00:00.009 | 2020-10-01 00:00:01.731 | true | 3 | 1 | 0 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | false | 1 | 0 | 1 | + 2020-10-01 00:00:00.015 | 2020-10-01 00:00:02.829 | true | 3 | 1 | 1 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:02.922 | true | 6 | 0 | 6 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | false | 2 | 0 | 0 | + 2020-10-01 00:00:00.024 | 2020-10-01 00:00:00.024 | false | 2 | 0 | 2 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:01.662 | true | 4 | 0 | 2 | -taos> select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | count(u_int_col) | =============================================================================================================== - 2020-10-01 00:00:01.515 | 2020-10-01 00:00:01.515 | true | 1 | 1 | - 2020-10-01 00:00:02.505 | 2020-10-01 00:00:07.200 | false | 10 | 6 | - 2020-10-01 00:00:07.383 | 2020-10-01 00:00:08.721 | true | 6 | 0 | - 2020-10-01 00:00:09.222 | 2020-10-01 00:00:09.396 | false | 4 | 0 | - 2020-10-01 00:00:10.773 | 2020-10-01 00:00:10.773 | true | 2 | 0 | - 2020-10-01 00:00:12.483 | 2020-10-01 00:00:12.483 | false | 2 | 0 | - 2020-10-01 00:00:12.822 | 2020-10-01 00:00:14.319 | true | 6 | 2 | - 2020-10-01 00:00:14.652 | 2020-10-01 00:00:14.652 | false | 2 | 0 | - 2020-10-01 00:00:14.994 | 2020-10-01 00:00:14.994 | true | 2 | 0 | - 2020-10-01 00:00:16.260 | 2020-10-01 00:00:17.808 | false | 8 | 4 | - 2020-10-01 00:00:00.993 | 2020-10-01 00:00:01.488 | false | 2 | 0 | - 2020-10-01 00:00:01.584 | 2020-10-01 00:00:01.710 | true | 4 | 2 | - 2020-10-01 00:00:03.717 | 2020-10-01 00:00:03.717 | false | 2 | 0 | - 2020-10-01 00:00:07.965 | 2020-10-01 00:00:08.313 | true | 4 | 2 | - 2020-10-01 00:00:08.700 | 2020-10-01 00:00:08.700 | false | 2 | 2 | - 2020-10-01 00:00:08.841 | 2020-10-01 00:00:08.841 | true | 2 | 0 | - 2020-10-01 00:00:10.752 | 2020-10-01 00:00:10.752 | false | 2 | 0 | - 2020-10-01 00:00:11.559 | 2020-10-01 00:00:12.408 | true | 4 | 0 | - 2020-10-01 00:00:12.786 | 2020-10-01 00:00:12.906 | false | 6 | 0 | - 2020-10-01 00:00:14.310 | 2020-10-01 00:00:15.405 | true | 4 | 4 | - 2020-10-01 00:00:00.561 | 2020-10-01 00:00:01.023 | true | 4 | 0 | - 2020-10-01 00:00:02.112 | 2020-10-01 00:00:02.112 | false | 2 | 0 | - 2020-10-01 00:00:02.382 | 2020-10-01 00:00:02.871 | true | 4 | 0 | - 2020-10-01 00:00:03.339 | 2020-10-01 00:00:03.339 | false | 2 | 0 | - 2020-10-01 00:00:03.417 | 2020-10-01 00:00:05.766 | true | 8 | 4 | - 2020-10-01 00:00:05.778 | 2020-10-01 00:00:05.778 | false | 2 | 0 | - 2020-10-01 00:00:06.222 | 2020-10-01 00:00:06.222 | true | 2 | 0 | - 2020-10-01 00:00:06.648 | 2020-10-01 00:00:06.648 | false | 2 | 0 | - 2020-10-01 00:00:07.428 | 2020-10-01 00:00:07.428 | true | 2 | 0 | - 2020-10-01 00:00:07.890 | 2020-10-01 00:00:08.430 | false | 6 | 4 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:01.092 | true | 6 | 0 | - 2020-10-01 00:00:01.341 | 2020-10-01 00:00:01.341 | false | 2 | 0 | - 2020-10-01 00:00:02.211 | 2020-10-01 00:00:04.548 | true | 6 | 0 | - 2020-10-01 00:00:04.755 | 2020-10-01 00:00:05.553 | false | 6 | 2 | - 2020-10-01 00:00:06.423 | 2020-10-01 00:00:09.084 | true | 6 | 2 | - 2020-10-01 00:00:09.204 | 2020-10-01 00:00:09.204 | false | 2 | 0 | - 2020-10-01 00:00:09.909 | 2020-10-01 00:00:10.323 | true | 4 | 0 | - 2020-10-01 00:00:10.386 | 2020-10-01 00:00:12.099 | false | 6 | 0 | - 2020-10-01 00:00:13.563 | 2020-10-01 00:00:13.563 | true | 2 | 0 | - 2020-10-01 00:00:14.427 | 2020-10-01 00:00:14.427 | false | 2 | 0 | - 2020-10-01 00:00:01.134 | 2020-10-01 00:00:01.653 | true | 6 | 0 | - 2020-10-01 00:00:02.439 | 2020-10-01 00:00:03.330 | false | 8 | 2 | - 2020-10-01 00:00:03.735 | 2020-10-01 00:00:03.858 | true | 4 | 2 | - 2020-10-01 00:00:05.115 | 2020-10-01 00:00:05.346 | false | 4 | 2 | - 2020-10-01 00:00:05.661 | 2020-10-01 00:00:05.661 | true | 2 | 0 | - 2020-10-01 00:00:06.846 | 2020-10-01 00:00:06.846 | false | 2 | 0 | - 2020-10-01 00:00:09.501 | 2020-10-01 00:00:12.699 | true | 10 | 0 | - 2020-10-01 00:00:13.881 | 2020-10-01 00:00:13.881 | false | 2 | 0 | - 2020-10-01 00:00:14.907 | 2020-10-01 00:00:16.638 | true | 10 | 0 | - 2020-10-01 00:00:18.294 | 2020-10-01 00:00:18.309 | false | 4 | 0 | - 2020-10-01 00:00:00.900 | 2020-10-01 00:00:01.203 | true | 4 | 2 | - 2020-10-01 00:00:02.166 | 2020-10-01 00:00:02.166 | false | 2 | 0 | - 2020-10-01 00:00:02.649 | 2020-10-01 00:00:02.649 | true | 2 | 0 | - 2020-10-01 00:00:02.955 | 2020-10-01 00:00:02.955 | false | 2 | 2 | - 2020-10-01 00:00:02.958 | 2020-10-01 00:00:02.958 | true | 2 | 0 | - 2020-10-01 00:00:03.006 | 2020-10-01 00:00:03.429 | false | 4 | 0 | - 2020-10-01 00:00:05.232 | 2020-10-01 00:00:05.232 | true | 2 | 0 | - 2020-10-01 00:00:05.364 | 2020-10-01 00:00:05.364 | false | 2 | 0 | - 2020-10-01 00:00:06.447 | 2020-10-01 00:00:06.447 | true | 2 | 0 | - 2020-10-01 00:00:08.715 | 2020-10-01 00:00:09.507 | false | 6 | 2 | - 2020-10-01 00:00:01.218 | 2020-10-01 00:00:01.386 | false | 2 | 0 | - 2020-10-01 00:00:01.737 | 2020-10-01 00:00:01.737 | true | 2 | 0 | - 2020-10-01 00:00:04.185 | 2020-10-01 00:00:04.185 | false | 2 | 2 | - 2020-10-01 00:00:04.530 | 2020-10-01 00:00:04.530 | true | 2 | 2 | - 2020-10-01 00:00:06.354 | 2020-10-01 00:00:07.389 | false | 6 | 0 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | true | 2 | 2 | - 2020-10-01 00:00:10.842 | 2020-10-01 00:00:11.793 | false | 6 | 0 | - 2020-10-01 00:00:11.925 | 2020-10-01 00:00:11.949 | true | 4 | 2 | - 2020-10-01 00:00:13.164 | 2020-10-01 00:00:13.569 | false | 4 | 0 | - 2020-10-01 00:00:13.965 | 2020-10-01 00:00:13.965 | true | 2 | 2 | - 2020-10-01 00:00:00.813 | 2020-10-01 00:00:00.813 | false | 2 | 0 | - 2020-10-01 00:00:01.167 | 2020-10-01 00:00:01.365 | true | 4 | 2 | - 2020-10-01 00:00:01.632 | 2020-10-01 00:00:02.367 | false | 6 | 0 | - 2020-10-01 00:00:02.514 | 2020-10-01 00:00:04.332 | true | 8 | 0 | - 2020-10-01 00:00:06.087 | 2020-10-01 00:00:06.087 | false | 2 | 0 | - 2020-10-01 00:00:07.041 | 2020-10-01 00:00:07.842 | true | 4 | 0 | - 2020-10-01 00:00:07.905 | 2020-10-01 00:00:08.016 | false | 4 | 2 | - 2020-10-01 00:00:08.892 | 2020-10-01 00:00:14.040 | true | 10 | 2 | - 2020-10-01 00:00:15.882 | 2020-10-01 00:00:15.882 | false | 2 | 0 | - 2020-10-01 00:00:16.182 | 2020-10-01 00:00:16.644 | true | 4 | 0 | - 2020-10-01 00:00:01.086 | 2020-10-01 00:00:01.086 | true | 1 | 0 | - 2020-10-01 00:00:01.830 | 2020-10-01 00:00:01.830 | false | 2 | 2 | - 2020-10-01 00:00:03.174 | 2020-10-01 00:00:03.174 | true | 2 | 0 | - 2020-10-01 00:00:03.864 | 2020-10-01 00:00:03.864 | false | 2 | 0 | - 2020-10-01 00:00:05.967 | 2020-10-01 00:00:05.967 | true | 2 | 0 | - 2020-10-01 00:00:06.669 | 2020-10-01 00:00:06.669 | false | 2 | 0 | - 2020-10-01 00:00:06.822 | 2020-10-01 00:00:06.822 | true | 2 | 0 | - 2020-10-01 00:00:06.975 | 2020-10-01 00:00:07.281 | false | 4 | 2 | - 2020-10-01 00:00:08.295 | 2020-10-01 00:00:08.295 | true | 2 | 2 | - 2020-10-01 00:00:09.852 | 2020-10-01 00:00:09.852 | false | 2 | 0 | - 2020-10-01 00:00:00.981 | 2020-10-01 00:00:01.770 | false | 3 | 2 | - 2020-10-01 00:00:02.130 | 2020-10-01 00:00:03.567 | true | 12 | 2 | - 2020-10-01 00:00:04.446 | 2020-10-01 00:00:04.446 | false | 2 | 0 | - 2020-10-01 00:00:06.093 | 2020-10-01 00:00:06.093 | true | 2 | 0 | - 2020-10-01 00:00:06.252 | 2020-10-01 00:00:06.939 | false | 4 | 0 | - 2020-10-01 00:00:09.489 | 2020-10-01 00:00:16.764 | true | 16 | 2 | - 2020-10-01 00:00:17.430 | 2020-10-01 00:00:17.430 | false | 2 | 2 | - 2020-10-01 00:00:18.966 | 2020-10-01 00:00:18.966 | true | 2 | 0 | - 2020-10-01 00:00:19.056 | 2020-10-01 00:00:19.056 | false | 2 | 0 | - 2020-10-01 00:00:19.119 | 2020-10-01 00:00:19.119 | true | 2 | 0 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | true | 2 | 2 | + 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | false | 1 | 0 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:01.779 | true | 4 | 0 | + 2020-10-01 00:00:00.009 | 2020-10-01 00:00:01.731 | true | 3 | 1 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | false | 1 | 0 | + 2020-10-01 00:00:00.015 | 2020-10-01 00:00:02.829 | true | 3 | 1 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:02.922 | true | 6 | 0 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | false | 2 | 0 | + 2020-10-01 00:00:00.024 | 2020-10-01 00:00:00.024 | false | 2 | 0 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:01.662 | true | 4 | 0 | -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col session(ts, 10a) slimit 10 limit 10; +taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | u_tinyint_col | count(*) | ============================================================================================ - 2020-10-01 00:00:00.232 | 2020-10-01 00:00:00.232 | 147 | 3 | - 2020-10-01 00:00:01.602 | 2020-10-01 00:00:01.602 | 147 | 3 | - 2020-10-01 00:00:01.726 | 2020-10-01 00:00:01.726 | 147 | 3 | - 2020-10-01 00:00:02.068 | 2020-10-01 00:00:02.068 | 147 | 3 | - 2020-10-01 00:00:02.088 | 2020-10-01 00:00:02.088 | 147 | 3 | - 2020-10-01 00:00:02.584 | 2020-10-01 00:00:02.584 | 147 | 3 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:02.772 | 147 | 3 | - 2020-10-01 00:00:04.082 | 2020-10-01 00:00:04.082 | 147 | 3 | - 2020-10-01 00:00:04.258 | 2020-10-01 00:00:04.258 | 147 | 3 | - 2020-10-01 00:00:05.008 | 2020-10-01 00:00:05.008 | 147 | 3 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 29 | 3 | + 2020-10-01 00:00:00.002 | 2020-10-01 00:00:00.002 | 158 | 3 | + 2020-10-01 00:00:00.004 | 2020-10-01 00:00:00.004 | 1 | 3 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:00.006 | 49 | 3 | 2020-10-01 00:00:00.008 | 2020-10-01 00:00:00.008 | 74 | 3 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:00.348 | 74 | 3 | - 2020-10-01 00:00:01.928 | 2020-10-01 00:00:01.928 | 74 | 3 | - 2020-10-01 00:00:02.964 | 2020-10-01 00:00:02.964 | 74 | 3 | - 2020-10-01 00:00:04.072 | 2020-10-01 00:00:04.072 | 74 | 3 | - 2020-10-01 00:00:04.202 | 2020-10-01 00:00:04.202 | 74 | 3 | - 2020-10-01 00:00:04.330 | 2020-10-01 00:00:04.330 | 74 | 3 | - 2020-10-01 00:00:07.958 | 2020-10-01 00:00:07.958 | 74 | 3 | - 2020-10-01 00:00:08.246 | 2020-10-01 00:00:08.246 | 74 | 3 | - 2020-10-01 00:00:08.278 | 2020-10-01 00:00:08.278 | 74 | 3 | - 2020-10-01 00:00:01.558 | 2020-10-01 00:00:01.558 | 131 | 3 | - 2020-10-01 00:00:01.852 | 2020-10-01 00:00:01.852 | 131 | 3 | - 2020-10-01 00:00:02.898 | 2020-10-01 00:00:02.898 | 131 | 3 | - 2020-10-01 00:00:03.674 | 2020-10-01 00:00:03.674 | 131 | 3 | - 2020-10-01 00:00:05.588 | 2020-10-01 00:00:05.588 | 131 | 3 | - 2020-10-01 00:00:05.734 | 2020-10-01 00:00:05.734 | 131 | 3 | - 2020-10-01 00:00:05.872 | 2020-10-01 00:00:05.872 | 131 | 3 | - 2020-10-01 00:00:06.278 | 2020-10-01 00:00:06.278 | 131 | 3 | - 2020-10-01 00:00:07.036 | 2020-10-01 00:00:07.036 | 131 | 3 | - 2020-10-01 00:00:07.734 | 2020-10-01 00:00:07.740 | 131 | 6 | - 2020-10-01 00:00:00.452 | 2020-10-01 00:00:00.452 | 32 | 3 | - 2020-10-01 00:00:00.668 | 2020-10-01 00:00:00.668 | 32 | 3 | - 2020-10-01 00:00:01.144 | 2020-10-01 00:00:01.144 | 32 | 3 | - 2020-10-01 00:00:01.554 | 2020-10-01 00:00:01.554 | 32 | 3 | - 2020-10-01 00:00:01.936 | 2020-10-01 00:00:01.936 | 32 | 3 | - 2020-10-01 00:00:02.412 | 2020-10-01 00:00:02.412 | 32 | 3 | - 2020-10-01 00:00:03.210 | 2020-10-01 00:00:03.210 | 32 | 3 | - 2020-10-01 00:00:03.516 | 2020-10-01 00:00:03.524 | 32 | 6 | - 2020-10-01 00:00:04.760 | 2020-10-01 00:00:04.760 | 32 | 3 | - 2020-10-01 00:00:05.600 | 2020-10-01 00:00:05.600 | 32 | 3 | - 2020-10-01 00:00:00.082 | 2020-10-01 00:00:00.082 | 38 | 3 | - 2020-10-01 00:00:00.260 | 2020-10-01 00:00:00.260 | 38 | 3 | - 2020-10-01 00:00:00.276 | 2020-10-01 00:00:00.284 | 38 | 6 | - 2020-10-01 00:00:01.700 | 2020-10-01 00:00:01.700 | 38 | 3 | - 2020-10-01 00:00:01.916 | 2020-10-01 00:00:01.916 | 38 | 3 | - 2020-10-01 00:00:02.690 | 2020-10-01 00:00:02.690 | 38 | 3 | - 2020-10-01 00:00:03.082 | 2020-10-01 00:00:03.082 | 38 | 3 | - 2020-10-01 00:00:03.352 | 2020-10-01 00:00:03.352 | 38 | 3 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:03.444 | 38 | 3 | - 2020-10-01 00:00:03.654 | 2020-10-01 00:00:03.654 | 38 | 3 | - 2020-10-01 00:00:00.584 | 2020-10-01 00:00:00.584 | 107 | 3 | - 2020-10-01 00:00:00.792 | 2020-10-01 00:00:00.792 | 107 | 3 | - 2020-10-01 00:00:01.408 | 2020-10-01 00:00:01.408 | 107 | 3 | - 2020-10-01 00:00:01.552 | 2020-10-01 00:00:01.552 | 107 | 3 | - 2020-10-01 00:00:01.856 | 2020-10-01 00:00:01.856 | 107 | 3 | - 2020-10-01 00:00:02.300 | 2020-10-01 00:00:02.300 | 107 | 3 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:02.364 | 107 | 3 | - 2020-10-01 00:00:03.522 | 2020-10-01 00:00:03.522 | 107 | 3 | - 2020-10-01 00:00:03.548 | 2020-10-01 00:00:03.548 | 107 | 3 | - 2020-10-01 00:00:04.496 | 2020-10-01 00:00:04.496 | 107 | 3 | - 2020-10-01 00:00:00.360 | 2020-10-01 00:00:00.360 | 99 | 3 | - 2020-10-01 00:00:02.438 | 2020-10-01 00:00:02.438 | 99 | 3 | - 2020-10-01 00:00:02.530 | 2020-10-01 00:00:02.530 | 99 | 3 | - 2020-10-01 00:00:02.858 | 2020-10-01 00:00:02.858 | 99 | 3 | - 2020-10-01 00:00:03.416 | 2020-10-01 00:00:03.416 | 99 | 3 | - 2020-10-01 00:00:03.784 | 2020-10-01 00:00:03.784 | 99 | 3 | - 2020-10-01 00:00:04.378 | 2020-10-01 00:00:04.378 | 99 | 3 | - 2020-10-01 00:00:05.126 | 2020-10-01 00:00:05.126 | 99 | 3 | - 2020-10-01 00:00:06.150 | 2020-10-01 00:00:06.150 | 99 | 3 | - 2020-10-01 00:00:06.506 | 2020-10-01 00:00:06.506 | 99 | 3 | - 2020-10-01 00:00:00.468 | 2020-10-01 00:00:00.468 | 27 | 3 | - 2020-10-01 00:00:00.616 | 2020-10-01 00:00:00.616 | 27 | 3 | - 2020-10-01 00:00:00.938 | 2020-10-01 00:00:00.938 | 27 | 3 | - 2020-10-01 00:00:00.978 | 2020-10-01 00:00:00.978 | 27 | 3 | - 2020-10-01 00:00:00.990 | 2020-10-01 00:00:00.990 | 27 | 3 | - 2020-10-01 00:00:01.098 | 2020-10-01 00:00:01.098 | 27 | 3 | - 2020-10-01 00:00:01.172 | 2020-10-01 00:00:01.172 | 27 | 3 | - 2020-10-01 00:00:01.442 | 2020-10-01 00:00:01.442 | 27 | 3 | - 2020-10-01 00:00:01.768 | 2020-10-01 00:00:01.768 | 27 | 3 | - 2020-10-01 00:00:02.478 | 2020-10-01 00:00:02.478 | 27 | 3 | - 2020-10-01 00:00:00.794 | 2020-10-01 00:00:00.794 | 236 | 3 | - 2020-10-01 00:00:01.788 | 2020-10-01 00:00:01.788 | 236 | 3 | - 2020-10-01 00:00:02.216 | 2020-10-01 00:00:02.216 | 236 | 3 | - 2020-10-01 00:00:02.296 | 2020-10-01 00:00:02.296 | 236 | 3 | - 2020-10-01 00:00:03.484 | 2020-10-01 00:00:03.484 | 236 | 3 | - 2020-10-01 00:00:04.268 | 2020-10-01 00:00:04.268 | 236 | 3 | - 2020-10-01 00:00:04.858 | 2020-10-01 00:00:04.858 | 236 | 3 | - 2020-10-01 00:00:05.832 | 2020-10-01 00:00:05.832 | 236 | 3 | - 2020-10-01 00:00:06.482 | 2020-10-01 00:00:06.482 | 236 | 3 | - 2020-10-01 00:00:06.518 | 2020-10-01 00:00:06.518 | 236 | 3 | - 2020-10-01 00:00:00.244 | 2020-10-01 00:00:00.244 | 28 | 3 | - 2020-10-01 00:00:00.940 | 2020-10-01 00:00:00.940 | 28 | 3 | - 2020-10-01 00:00:00.980 | 2020-10-01 00:00:00.980 | 28 | 3 | - 2020-10-01 00:00:01.284 | 2020-10-01 00:00:01.284 | 28 | 3 | - 2020-10-01 00:00:02.426 | 2020-10-01 00:00:02.426 | 28 | 3 | - 2020-10-01 00:00:02.888 | 2020-10-01 00:00:02.888 | 28 | 3 | - 2020-10-01 00:00:03.742 | 2020-10-01 00:00:03.742 | 28 | 3 | - 2020-10-01 00:00:04.376 | 2020-10-01 00:00:04.376 | 28 | 3 | - 2020-10-01 00:00:05.412 | 2020-10-01 00:00:05.412 | 28 | 3 | - 2020-10-01 00:00:05.940 | 2020-10-01 00:00:05.940 | 28 | 3 | + 2020-10-01 00:00:00.010 | 2020-10-01 00:00:00.010 | 11 | 3 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | 77 | 3 | + 2020-10-01 00:00:00.014 | 2020-10-01 00:00:00.014 | 63 | 3 | + 2020-10-01 00:00:00.016 | 2020-10-01 00:00:00.016 | 229 | 3 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.018 | 195 | 3 | -taos> select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) slimit 10 limit 10; +taos> select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | tinyint_col | count(*) | ========================================================================================== - 2020-10-01 00:00:01.515 | 2020-10-01 00:00:01.515 | -1 | 2 | - 2020-10-01 00:00:02.505 | 2020-10-01 00:00:02.505 | -1 | 2 | - 2020-10-01 00:00:03.885 | 2020-10-01 00:00:03.885 | -1 | 2 | - 2020-10-01 00:00:05.226 | 2020-10-01 00:00:05.226 | -1 | 2 | - 2020-10-01 00:00:05.838 | 2020-10-01 00:00:05.838 | -1 | 2 | - 2020-10-01 00:00:07.200 | 2020-10-01 00:00:07.200 | -1 | 2 | - 2020-10-01 00:00:07.383 | 2020-10-01 00:00:07.383 | -1 | 2 | - 2020-10-01 00:00:07.542 | 2020-10-01 00:00:07.542 | -1 | 2 | - 2020-10-01 00:00:08.721 | 2020-10-01 00:00:08.721 | -1 | 2 | - 2020-10-01 00:00:09.222 | 2020-10-01 00:00:09.222 | -1 | 2 | - 2020-10-01 00:00:00.993 | 2020-10-01 00:00:00.993 | -109 | 2 | - 2020-10-01 00:00:01.488 | 2020-10-01 00:00:01.488 | -109 | 2 | - 2020-10-01 00:00:01.584 | 2020-10-01 00:00:01.584 | -109 | 2 | - 2020-10-01 00:00:01.710 | 2020-10-01 00:00:01.710 | -109 | 2 | - 2020-10-01 00:00:03.717 | 2020-10-01 00:00:03.717 | -109 | 2 | - 2020-10-01 00:00:07.965 | 2020-10-01 00:00:07.965 | -109 | 2 | - 2020-10-01 00:00:08.313 | 2020-10-01 00:00:08.313 | -109 | 2 | - 2020-10-01 00:00:08.700 | 2020-10-01 00:00:08.700 | -109 | 2 | - 2020-10-01 00:00:08.841 | 2020-10-01 00:00:08.841 | -109 | 2 | - 2020-10-01 00:00:10.752 | 2020-10-01 00:00:10.752 | -109 | 2 | - 2020-10-01 00:00:00.561 | 2020-10-01 00:00:00.561 | 74 | 2 | - 2020-10-01 00:00:01.023 | 2020-10-01 00:00:01.023 | 74 | 2 | - 2020-10-01 00:00:02.112 | 2020-10-01 00:00:02.112 | 74 | 2 | - 2020-10-01 00:00:02.382 | 2020-10-01 00:00:02.382 | 74 | 2 | - 2020-10-01 00:00:02.871 | 2020-10-01 00:00:02.871 | 74 | 2 | - 2020-10-01 00:00:03.339 | 2020-10-01 00:00:03.339 | 74 | 2 | - 2020-10-01 00:00:03.417 | 2020-10-01 00:00:03.417 | 74 | 2 | - 2020-10-01 00:00:04.035 | 2020-10-01 00:00:04.035 | 74 | 2 | - 2020-10-01 00:00:05.475 | 2020-10-01 00:00:05.475 | 74 | 2 | - 2020-10-01 00:00:05.766 | 2020-10-01 00:00:05.766 | 74 | 2 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:00.759 | -125 | 2 | - 2020-10-01 00:00:01.017 | 2020-10-01 00:00:01.017 | -125 | 2 | - 2020-10-01 00:00:01.092 | 2020-10-01 00:00:01.092 | -125 | 2 | - 2020-10-01 00:00:01.341 | 2020-10-01 00:00:01.341 | -125 | 2 | - 2020-10-01 00:00:02.211 | 2020-10-01 00:00:02.211 | -125 | 2 | - 2020-10-01 00:00:02.406 | 2020-10-01 00:00:02.406 | -125 | 2 | - 2020-10-01 00:00:04.548 | 2020-10-01 00:00:04.548 | -125 | 2 | - 2020-10-01 00:00:04.755 | 2020-10-01 00:00:04.755 | -125 | 2 | - 2020-10-01 00:00:05.037 | 2020-10-01 00:00:05.037 | -125 | 2 | - 2020-10-01 00:00:05.553 | 2020-10-01 00:00:05.553 | -125 | 2 | - 2020-10-01 00:00:01.134 | 2020-10-01 00:00:01.134 | 32 | 2 | - 2020-10-01 00:00:01.563 | 2020-10-01 00:00:01.563 | 32 | 2 | - 2020-10-01 00:00:01.653 | 2020-10-01 00:00:01.653 | 32 | 2 | - 2020-10-01 00:00:02.439 | 2020-10-01 00:00:02.439 | 32 | 2 | - 2020-10-01 00:00:02.832 | 2020-10-01 00:00:02.832 | 32 | 2 | - 2020-10-01 00:00:03.138 | 2020-10-01 00:00:03.138 | 32 | 2 | - 2020-10-01 00:00:03.330 | 2020-10-01 00:00:03.330 | 32 | 2 | - 2020-10-01 00:00:03.735 | 2020-10-01 00:00:03.735 | 32 | 2 | - 2020-10-01 00:00:03.858 | 2020-10-01 00:00:03.858 | 32 | 2 | - 2020-10-01 00:00:05.115 | 2020-10-01 00:00:05.115 | 32 | 2 | - 2020-10-01 00:00:00.900 | 2020-10-01 00:00:00.900 | 38 | 2 | - 2020-10-01 00:00:01.203 | 2020-10-01 00:00:01.203 | 38 | 2 | - 2020-10-01 00:00:02.166 | 2020-10-01 00:00:02.166 | 38 | 2 | - 2020-10-01 00:00:02.649 | 2020-10-01 00:00:02.649 | 38 | 2 | - 2020-10-01 00:00:02.955 | 2020-10-01 00:00:02.958 | 38 | 4 | - 2020-10-01 00:00:03.006 | 2020-10-01 00:00:03.006 | 38 | 2 | - 2020-10-01 00:00:03.429 | 2020-10-01 00:00:03.429 | 38 | 2 | - 2020-10-01 00:00:05.232 | 2020-10-01 00:00:05.232 | 38 | 2 | - 2020-10-01 00:00:05.364 | 2020-10-01 00:00:05.364 | 38 | 2 | - 2020-10-01 00:00:06.447 | 2020-10-01 00:00:06.447 | 38 | 2 | - 2020-10-01 00:00:01.218 | 2020-10-01 00:00:01.218 | 107 | 2 | - 2020-10-01 00:00:01.386 | 2020-10-01 00:00:01.386 | 107 | 2 | - 2020-10-01 00:00:01.737 | 2020-10-01 00:00:01.737 | 107 | 2 | - 2020-10-01 00:00:04.185 | 2020-10-01 00:00:04.185 | 107 | 2 | - 2020-10-01 00:00:04.530 | 2020-10-01 00:00:04.530 | 107 | 2 | - 2020-10-01 00:00:06.354 | 2020-10-01 00:00:06.354 | 107 | 2 | - 2020-10-01 00:00:07.329 | 2020-10-01 00:00:07.329 | 107 | 2 | - 2020-10-01 00:00:07.389 | 2020-10-01 00:00:07.389 | 107 | 2 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 2 | - 2020-10-01 00:00:10.842 | 2020-10-01 00:00:10.842 | 107 | 2 | - 2020-10-01 00:00:00.813 | 2020-10-01 00:00:00.813 | 99 | 2 | - 2020-10-01 00:00:01.167 | 2020-10-01 00:00:01.167 | 99 | 2 | - 2020-10-01 00:00:01.365 | 2020-10-01 00:00:01.365 | 99 | 2 | - 2020-10-01 00:00:01.632 | 2020-10-01 00:00:01.632 | 99 | 2 | - 2020-10-01 00:00:01.656 | 2020-10-01 00:00:01.656 | 99 | 2 | - 2020-10-01 00:00:02.367 | 2020-10-01 00:00:02.367 | 99 | 2 | - 2020-10-01 00:00:02.514 | 2020-10-01 00:00:02.514 | 99 | 2 | - 2020-10-01 00:00:04.221 | 2020-10-01 00:00:04.227 | 99 | 4 | - 2020-10-01 00:00:04.332 | 2020-10-01 00:00:04.332 | 99 | 2 | - 2020-10-01 00:00:06.087 | 2020-10-01 00:00:06.087 | 99 | 2 | - 2020-10-01 00:00:01.086 | 2020-10-01 00:00:01.086 | 27 | 2 | - 2020-10-01 00:00:01.830 | 2020-10-01 00:00:01.830 | 27 | 2 | - 2020-10-01 00:00:03.174 | 2020-10-01 00:00:03.174 | 27 | 2 | - 2020-10-01 00:00:03.864 | 2020-10-01 00:00:03.864 | 27 | 2 | - 2020-10-01 00:00:05.967 | 2020-10-01 00:00:05.967 | 27 | 2 | - 2020-10-01 00:00:06.669 | 2020-10-01 00:00:06.669 | 27 | 2 | - 2020-10-01 00:00:06.822 | 2020-10-01 00:00:06.822 | 27 | 2 | - 2020-10-01 00:00:06.975 | 2020-10-01 00:00:06.975 | 27 | 2 | - 2020-10-01 00:00:07.281 | 2020-10-01 00:00:07.281 | 27 | 2 | - 2020-10-01 00:00:08.295 | 2020-10-01 00:00:08.295 | 27 | 2 | - 2020-10-01 00:00:00.981 | 2020-10-01 00:00:00.981 | -20 | 2 | - 2020-10-01 00:00:01.290 | 2020-10-01 00:00:01.290 | -20 | 2 | - 2020-10-01 00:00:01.770 | 2020-10-01 00:00:01.770 | -20 | 2 | - 2020-10-01 00:00:02.130 | 2020-10-01 00:00:02.130 | -20 | 2 | - 2020-10-01 00:00:02.202 | 2020-10-01 00:00:02.202 | -20 | 2 | - 2020-10-01 00:00:02.724 | 2020-10-01 00:00:02.724 | -20 | 2 | - 2020-10-01 00:00:02.847 | 2020-10-01 00:00:02.847 | -20 | 2 | - 2020-10-01 00:00:03.039 | 2020-10-01 00:00:03.039 | -20 | 2 | - 2020-10-01 00:00:03.567 | 2020-10-01 00:00:03.567 | -20 | 2 | - 2020-10-01 00:00:04.446 | 2020-10-01 00:00:04.446 | -20 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 80 | 2 | + 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | 44 | 2 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:00.006 | -91 | 2 | + 2020-10-01 00:00:00.009 | 2020-10-01 00:00:00.009 | 25 | 2 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | 70 | 2 | + 2020-10-01 00:00:00.015 | 2020-10-01 00:00:00.015 | -106 | 2 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.018 | -113 | 2 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | 109 | 2 | + 2020-10-01 00:00:00.024 | 2020-10-01 00:00:00.024 | -9 | 2 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.027 | -102 | 2 | -taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col session(ts, 10a) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | ======================================================================================= 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.057 | true | 26 | - 2020-10-01 00:00:00.069 | 2020-10-01 00:00:00.096 | true | 14 | - 2020-10-01 00:00:00.108 | 2020-10-01 00:00:00.120 | true | 8 | - 2020-10-01 00:00:00.132 | 2020-10-01 00:00:00.159 | true | 16 | - 2020-10-01 00:00:00.171 | 2020-10-01 00:00:00.195 | true | 12 | - 2020-10-01 00:00:00.228 | 2020-10-01 00:00:00.240 | true | 10 | - 2020-10-01 00:00:00.258 | 2020-10-01 00:00:00.321 | true | 30 | - 2020-10-01 00:00:00.336 | 2020-10-01 00:00:00.348 | true | 6 | - 2020-10-01 00:00:00.360 | 2020-10-01 00:00:00.390 | true | 14 | - 2020-10-01 00:00:00.402 | 2020-10-01 00:00:00.408 | true | 6 | 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.033 | false | 10 | 2020-10-01 00:00:00.045 | 2020-10-01 00:00:00.048 | false | 4 | 2020-10-01 00:00:00.060 | 2020-10-01 00:00:00.084 | false | 12 | + 2020-10-01 00:00:00.069 | 2020-10-01 00:00:00.096 | true | 14 | 2020-10-01 00:00:00.099 | 2020-10-01 00:00:00.141 | false | 18 | + 2020-10-01 00:00:00.108 | 2020-10-01 00:00:00.120 | true | 8 | + 2020-10-01 00:00:00.132 | 2020-10-01 00:00:00.159 | true | 16 | 2020-10-01 00:00:00.162 | 2020-10-01 00:00:00.168 | false | 6 | - 2020-10-01 00:00:00.180 | 2020-10-01 00:00:00.225 | false | 26 | - 2020-10-01 00:00:00.243 | 2020-10-01 00:00:00.261 | false | 12 | - 2020-10-01 00:00:00.273 | 2020-10-01 00:00:00.276 | false | 4 | - 2020-10-01 00:00:00.294 | 2020-10-01 00:00:00.303 | false | 4 | - 2020-10-01 00:00:00.315 | 2020-10-01 00:00:00.363 | false | 24 | + 2020-10-01 00:00:00.171 | 2020-10-01 00:00:00.195 | true | 12 | -taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col session(ts, 10a) slimit 10 limit 10; +taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | bool_col | count(*) | ======================================================================================= 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.057 | true | 26 | - 2020-10-01 00:00:00.069 | 2020-10-01 00:00:00.096 | true | 14 | - 2020-10-01 00:00:00.108 | 2020-10-01 00:00:00.120 | true | 8 | - 2020-10-01 00:00:00.132 | 2020-10-01 00:00:00.159 | true | 16 | - 2020-10-01 00:00:00.171 | 2020-10-01 00:00:00.195 | true | 12 | - 2020-10-01 00:00:00.228 | 2020-10-01 00:00:00.240 | true | 10 | - 2020-10-01 00:00:00.258 | 2020-10-01 00:00:00.321 | true | 30 | - 2020-10-01 00:00:00.336 | 2020-10-01 00:00:00.348 | true | 6 | - 2020-10-01 00:00:00.360 | 2020-10-01 00:00:00.390 | true | 14 | - 2020-10-01 00:00:00.402 | 2020-10-01 00:00:00.408 | true | 6 | 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.033 | false | 10 | 2020-10-01 00:00:00.045 | 2020-10-01 00:00:00.048 | false | 4 | 2020-10-01 00:00:00.060 | 2020-10-01 00:00:00.084 | false | 12 | + 2020-10-01 00:00:00.069 | 2020-10-01 00:00:00.096 | true | 14 | 2020-10-01 00:00:00.099 | 2020-10-01 00:00:00.141 | false | 18 | + 2020-10-01 00:00:00.108 | 2020-10-01 00:00:00.120 | true | 8 | + 2020-10-01 00:00:00.132 | 2020-10-01 00:00:00.159 | true | 16 | 2020-10-01 00:00:00.162 | 2020-10-01 00:00:00.168 | false | 6 | - 2020-10-01 00:00:00.180 | 2020-10-01 00:00:00.225 | false | 26 | - 2020-10-01 00:00:00.243 | 2020-10-01 00:00:00.261 | false | 12 | - 2020-10-01 00:00:00.273 | 2020-10-01 00:00:00.276 | false | 4 | - 2020-10-01 00:00:00.294 | 2020-10-01 00:00:00.303 | false | 4 | - 2020-10-01 00:00:00.315 | 2020-10-01 00:00:00.363 | false | 24 | + 2020-10-01 00:00:00.171 | 2020-10-01 00:00:00.195 | true | 12 | -taos> select _wstart, _wend, tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) slimit 10 limit 10; +taos> select _wstart, _wend, tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | tinyint_col | count(*) | count(u_int_col) | count(u_tinyint_col) | count(u_smallint_col) | ================================================================================================================================================================== - 2020-10-01 00:00:01.515 | 2020-10-01 00:00:01.515 | -1 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:02.505 | 2020-10-01 00:00:02.505 | -1 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:03.885 | 2020-10-01 00:00:03.885 | -1 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:05.226 | 2020-10-01 00:00:05.226 | -1 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:05.838 | 2020-10-01 00:00:05.838 | -1 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:07.200 | 2020-10-01 00:00:07.200 | -1 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:07.383 | 2020-10-01 00:00:07.383 | -1 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:07.542 | 2020-10-01 00:00:07.542 | -1 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:08.721 | 2020-10-01 00:00:08.721 | -1 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:09.222 | 2020-10-01 00:00:09.222 | -1 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:00.993 | 2020-10-01 00:00:00.993 | -109 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.488 | 2020-10-01 00:00:01.488 | -109 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:01.584 | 2020-10-01 00:00:01.584 | -109 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:01.710 | 2020-10-01 00:00:01.710 | -109 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:03.717 | 2020-10-01 00:00:03.717 | -109 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:07.965 | 2020-10-01 00:00:07.965 | -109 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:08.313 | 2020-10-01 00:00:08.313 | -109 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:08.700 | 2020-10-01 00:00:08.700 | -109 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:08.841 | 2020-10-01 00:00:08.841 | -109 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:10.752 | 2020-10-01 00:00:10.752 | -109 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:00.561 | 2020-10-01 00:00:00.561 | 74 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.023 | 2020-10-01 00:00:01.023 | 74 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.112 | 2020-10-01 00:00:02.112 | 74 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:02.382 | 2020-10-01 00:00:02.382 | 74 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:02.871 | 2020-10-01 00:00:02.871 | 74 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:03.339 | 2020-10-01 00:00:03.339 | 74 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:03.417 | 2020-10-01 00:00:03.417 | 74 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:04.035 | 2020-10-01 00:00:04.035 | 74 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:05.475 | 2020-10-01 00:00:05.475 | 74 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:05.766 | 2020-10-01 00:00:05.766 | 74 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:00.759 | -125 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.017 | 2020-10-01 00:00:01.017 | -125 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.092 | 2020-10-01 00:00:01.092 | -125 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:01.341 | 2020-10-01 00:00:01.341 | -125 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.211 | 2020-10-01 00:00:02.211 | -125 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.406 | 2020-10-01 00:00:02.406 | -125 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:04.548 | 2020-10-01 00:00:04.548 | -125 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:04.755 | 2020-10-01 00:00:04.755 | -125 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:05.037 | 2020-10-01 00:00:05.037 | -125 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:05.553 | 2020-10-01 00:00:05.553 | -125 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.134 | 2020-10-01 00:00:01.134 | 32 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:01.563 | 2020-10-01 00:00:01.563 | 32 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.653 | 2020-10-01 00:00:01.653 | 32 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.439 | 2020-10-01 00:00:02.439 | 32 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.832 | 2020-10-01 00:00:02.832 | 32 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:03.138 | 2020-10-01 00:00:03.138 | 32 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:03.330 | 2020-10-01 00:00:03.330 | 32 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:03.735 | 2020-10-01 00:00:03.735 | 32 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:03.858 | 2020-10-01 00:00:03.858 | 32 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:05.115 | 2020-10-01 00:00:05.115 | 32 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:00.900 | 2020-10-01 00:00:00.900 | 38 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:01.203 | 2020-10-01 00:00:01.203 | 38 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.166 | 2020-10-01 00:00:02.166 | 38 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:02.649 | 2020-10-01 00:00:02.649 | 38 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.955 | 2020-10-01 00:00:02.958 | 38 | 4 | 2 | 2 | 4 | - 2020-10-01 00:00:03.006 | 2020-10-01 00:00:03.006 | 38 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:03.429 | 2020-10-01 00:00:03.429 | 38 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:05.232 | 2020-10-01 00:00:05.232 | 38 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:05.364 | 2020-10-01 00:00:05.364 | 38 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:06.447 | 2020-10-01 00:00:06.447 | 38 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.218 | 2020-10-01 00:00:01.218 | 107 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:01.386 | 2020-10-01 00:00:01.386 | 107 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:01.737 | 2020-10-01 00:00:01.737 | 107 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:04.185 | 2020-10-01 00:00:04.185 | 107 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:04.530 | 2020-10-01 00:00:04.530 | 107 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:06.354 | 2020-10-01 00:00:06.354 | 107 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:07.329 | 2020-10-01 00:00:07.329 | 107 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:07.389 | 2020-10-01 00:00:07.389 | 107 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:10.842 | 2020-10-01 00:00:10.842 | 107 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:00.813 | 2020-10-01 00:00:00.813 | 99 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.167 | 2020-10-01 00:00:01.167 | 99 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.365 | 2020-10-01 00:00:01.365 | 99 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:01.632 | 2020-10-01 00:00:01.632 | 99 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:01.656 | 2020-10-01 00:00:01.656 | 99 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:02.367 | 2020-10-01 00:00:02.367 | 99 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:02.514 | 2020-10-01 00:00:02.514 | 99 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:04.221 | 2020-10-01 00:00:04.227 | 99 | 4 | 0 | 0 | 4 | - 2020-10-01 00:00:04.332 | 2020-10-01 00:00:04.332 | 99 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:06.087 | 2020-10-01 00:00:06.087 | 99 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.086 | 2020-10-01 00:00:01.086 | 27 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:01.830 | 2020-10-01 00:00:01.830 | 27 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:03.174 | 2020-10-01 00:00:03.174 | 27 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:03.864 | 2020-10-01 00:00:03.864 | 27 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:05.967 | 2020-10-01 00:00:05.967 | 27 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:06.669 | 2020-10-01 00:00:06.669 | 27 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:06.822 | 2020-10-01 00:00:06.822 | 27 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:06.975 | 2020-10-01 00:00:06.975 | 27 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:07.281 | 2020-10-01 00:00:07.281 | 27 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:08.295 | 2020-10-01 00:00:08.295 | 27 | 2 | 2 | 0 | 2 | - 2020-10-01 00:00:00.981 | 2020-10-01 00:00:00.981 | -20 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:01.290 | 2020-10-01 00:00:01.290 | -20 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:01.770 | 2020-10-01 00:00:01.770 | -20 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:02.130 | 2020-10-01 00:00:02.130 | -20 | 2 | 2 | 2 | 2 | - 2020-10-01 00:00:02.202 | 2020-10-01 00:00:02.202 | -20 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:02.724 | 2020-10-01 00:00:02.724 | -20 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:02.847 | 2020-10-01 00:00:02.847 | -20 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:03.039 | 2020-10-01 00:00:03.039 | -20 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:03.567 | 2020-10-01 00:00:03.567 | -20 | 2 | 0 | 0 | 2 | - 2020-10-01 00:00:04.446 | 2020-10-01 00:00:04.446 | -20 | 2 | 0 | 2 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 80 | 2 | 2 | 2 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:49.995 | NULL | 23333 | 10000 | 10000 | 10000 | + 2020-10-01 00:00:00.002 | 2020-10-01 00:00:49.995 | NULL | 26666 | 16000 | 13332 | 0 | + 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | 44 | 2 | 0 | 0 | 2 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:00.006 | -91 | 2 | 0 | 2 | 2 | + 2020-10-01 00:00:00.009 | 2020-10-01 00:00:00.009 | 25 | 2 | 0 | 0 | 2 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | 70 | 2 | 0 | 2 | 2 | + 2020-10-01 00:00:00.015 | 2020-10-01 00:00:00.015 | -106 | 2 | 2 | 0 | 2 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.018 | -113 | 2 | 0 | 2 | 2 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | 109 | 2 | 0 | 0 | 2 | -taos> select _wstart, _wend, tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) slimit 10 limit 10; +taos> select _wstart, _wend, tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | tinyint_col | count(*) | count(u_int_col) | count(u_tinyint_col) | ========================================================================================================================================== - 2020-10-01 00:00:01.515 | 2020-10-01 00:00:01.515 | -1 | 2 | 2 | 0 | - 2020-10-01 00:00:02.505 | 2020-10-01 00:00:02.505 | -1 | 2 | 2 | 0 | - 2020-10-01 00:00:03.885 | 2020-10-01 00:00:03.885 | -1 | 2 | 2 | 0 | - 2020-10-01 00:00:05.226 | 2020-10-01 00:00:05.226 | -1 | 2 | 0 | 2 | - 2020-10-01 00:00:05.838 | 2020-10-01 00:00:05.838 | -1 | 2 | 0 | 2 | - 2020-10-01 00:00:07.200 | 2020-10-01 00:00:07.200 | -1 | 2 | 2 | 2 | - 2020-10-01 00:00:07.383 | 2020-10-01 00:00:07.383 | -1 | 2 | 0 | 0 | - 2020-10-01 00:00:07.542 | 2020-10-01 00:00:07.542 | -1 | 2 | 0 | 2 | - 2020-10-01 00:00:08.721 | 2020-10-01 00:00:08.721 | -1 | 2 | 0 | 0 | - 2020-10-01 00:00:09.222 | 2020-10-01 00:00:09.222 | -1 | 2 | 0 | 2 | - 2020-10-01 00:00:00.993 | 2020-10-01 00:00:00.993 | -109 | 2 | 0 | 0 | - 2020-10-01 00:00:01.488 | 2020-10-01 00:00:01.488 | -109 | 2 | 0 | 2 | - 2020-10-01 00:00:01.584 | 2020-10-01 00:00:01.584 | -109 | 2 | 0 | 2 | - 2020-10-01 00:00:01.710 | 2020-10-01 00:00:01.710 | -109 | 2 | 2 | 2 | - 2020-10-01 00:00:03.717 | 2020-10-01 00:00:03.717 | -109 | 2 | 0 | 0 | - 2020-10-01 00:00:07.965 | 2020-10-01 00:00:07.965 | -109 | 2 | 2 | 0 | - 2020-10-01 00:00:08.313 | 2020-10-01 00:00:08.313 | -109 | 2 | 0 | 0 | - 2020-10-01 00:00:08.700 | 2020-10-01 00:00:08.700 | -109 | 2 | 2 | 2 | - 2020-10-01 00:00:08.841 | 2020-10-01 00:00:08.841 | -109 | 2 | 0 | 0 | - 2020-10-01 00:00:10.752 | 2020-10-01 00:00:10.752 | -109 | 2 | 0 | 2 | - 2020-10-01 00:00:00.561 | 2020-10-01 00:00:00.561 | 74 | 2 | 0 | 0 | - 2020-10-01 00:00:01.023 | 2020-10-01 00:00:01.023 | 74 | 2 | 0 | 0 | - 2020-10-01 00:00:02.112 | 2020-10-01 00:00:02.112 | 74 | 2 | 0 | 2 | - 2020-10-01 00:00:02.382 | 2020-10-01 00:00:02.382 | 74 | 2 | 0 | 2 | - 2020-10-01 00:00:02.871 | 2020-10-01 00:00:02.871 | 74 | 2 | 0 | 0 | - 2020-10-01 00:00:03.339 | 2020-10-01 00:00:03.339 | 74 | 2 | 0 | 0 | - 2020-10-01 00:00:03.417 | 2020-10-01 00:00:03.417 | 74 | 2 | 0 | 0 | - 2020-10-01 00:00:04.035 | 2020-10-01 00:00:04.035 | 74 | 2 | 2 | 0 | - 2020-10-01 00:00:05.475 | 2020-10-01 00:00:05.475 | 74 | 2 | 2 | 0 | - 2020-10-01 00:00:05.766 | 2020-10-01 00:00:05.766 | 74 | 2 | 0 | 2 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:00.759 | -125 | 2 | 0 | 0 | - 2020-10-01 00:00:01.017 | 2020-10-01 00:00:01.017 | -125 | 2 | 0 | 0 | - 2020-10-01 00:00:01.092 | 2020-10-01 00:00:01.092 | -125 | 2 | 0 | 2 | - 2020-10-01 00:00:01.341 | 2020-10-01 00:00:01.341 | -125 | 2 | 0 | 0 | - 2020-10-01 00:00:02.211 | 2020-10-01 00:00:02.211 | -125 | 2 | 0 | 0 | - 2020-10-01 00:00:02.406 | 2020-10-01 00:00:02.406 | -125 | 2 | 0 | 2 | - 2020-10-01 00:00:04.548 | 2020-10-01 00:00:04.548 | -125 | 2 | 0 | 2 | - 2020-10-01 00:00:04.755 | 2020-10-01 00:00:04.755 | -125 | 2 | 2 | 0 | - 2020-10-01 00:00:05.037 | 2020-10-01 00:00:05.037 | -125 | 2 | 0 | 0 | - 2020-10-01 00:00:05.553 | 2020-10-01 00:00:05.553 | -125 | 2 | 0 | 0 | - 2020-10-01 00:00:01.134 | 2020-10-01 00:00:01.134 | 32 | 2 | 0 | 2 | - 2020-10-01 00:00:01.563 | 2020-10-01 00:00:01.563 | 32 | 2 | 0 | 0 | - 2020-10-01 00:00:01.653 | 2020-10-01 00:00:01.653 | 32 | 2 | 0 | 0 | - 2020-10-01 00:00:02.439 | 2020-10-01 00:00:02.439 | 32 | 2 | 0 | 0 | - 2020-10-01 00:00:02.832 | 2020-10-01 00:00:02.832 | 32 | 2 | 0 | 2 | - 2020-10-01 00:00:03.138 | 2020-10-01 00:00:03.138 | 32 | 2 | 0 | 2 | - 2020-10-01 00:00:03.330 | 2020-10-01 00:00:03.330 | 32 | 2 | 2 | 2 | - 2020-10-01 00:00:03.735 | 2020-10-01 00:00:03.735 | 32 | 2 | 2 | 0 | - 2020-10-01 00:00:03.858 | 2020-10-01 00:00:03.858 | 32 | 2 | 0 | 2 | - 2020-10-01 00:00:05.115 | 2020-10-01 00:00:05.115 | 32 | 2 | 2 | 0 | - 2020-10-01 00:00:00.900 | 2020-10-01 00:00:00.900 | 38 | 2 | 2 | 2 | - 2020-10-01 00:00:01.203 | 2020-10-01 00:00:01.203 | 38 | 2 | 0 | 0 | - 2020-10-01 00:00:02.166 | 2020-10-01 00:00:02.166 | 38 | 2 | 0 | 2 | - 2020-10-01 00:00:02.649 | 2020-10-01 00:00:02.649 | 38 | 2 | 0 | 0 | - 2020-10-01 00:00:02.955 | 2020-10-01 00:00:02.958 | 38 | 4 | 2 | 2 | - 2020-10-01 00:00:03.006 | 2020-10-01 00:00:03.006 | 38 | 2 | 0 | 2 | - 2020-10-01 00:00:03.429 | 2020-10-01 00:00:03.429 | 38 | 2 | 0 | 0 | - 2020-10-01 00:00:05.232 | 2020-10-01 00:00:05.232 | 38 | 2 | 0 | 2 | - 2020-10-01 00:00:05.364 | 2020-10-01 00:00:05.364 | 38 | 2 | 0 | 2 | - 2020-10-01 00:00:06.447 | 2020-10-01 00:00:06.447 | 38 | 2 | 0 | 0 | - 2020-10-01 00:00:01.218 | 2020-10-01 00:00:01.218 | 107 | 2 | 0 | 2 | - 2020-10-01 00:00:01.386 | 2020-10-01 00:00:01.386 | 107 | 2 | 0 | 2 | - 2020-10-01 00:00:01.737 | 2020-10-01 00:00:01.737 | 107 | 2 | 0 | 0 | - 2020-10-01 00:00:04.185 | 2020-10-01 00:00:04.185 | 107 | 2 | 2 | 0 | - 2020-10-01 00:00:04.530 | 2020-10-01 00:00:04.530 | 107 | 2 | 2 | 2 | - 2020-10-01 00:00:06.354 | 2020-10-01 00:00:06.354 | 107 | 2 | 0 | 2 | - 2020-10-01 00:00:07.329 | 2020-10-01 00:00:07.329 | 107 | 2 | 0 | 0 | - 2020-10-01 00:00:07.389 | 2020-10-01 00:00:07.389 | 107 | 2 | 0 | 0 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 2 | 2 | 2 | - 2020-10-01 00:00:10.842 | 2020-10-01 00:00:10.842 | 107 | 2 | 0 | 2 | - 2020-10-01 00:00:00.813 | 2020-10-01 00:00:00.813 | 99 | 2 | 0 | 0 | - 2020-10-01 00:00:01.167 | 2020-10-01 00:00:01.167 | 99 | 2 | 0 | 0 | - 2020-10-01 00:00:01.365 | 2020-10-01 00:00:01.365 | 99 | 2 | 2 | 0 | - 2020-10-01 00:00:01.632 | 2020-10-01 00:00:01.632 | 99 | 2 | 0 | 2 | - 2020-10-01 00:00:01.656 | 2020-10-01 00:00:01.656 | 99 | 2 | 0 | 2 | - 2020-10-01 00:00:02.367 | 2020-10-01 00:00:02.367 | 99 | 2 | 0 | 0 | - 2020-10-01 00:00:02.514 | 2020-10-01 00:00:02.514 | 99 | 2 | 0 | 2 | - 2020-10-01 00:00:04.221 | 2020-10-01 00:00:04.227 | 99 | 4 | 0 | 0 | - 2020-10-01 00:00:04.332 | 2020-10-01 00:00:04.332 | 99 | 2 | 0 | 2 | - 2020-10-01 00:00:06.087 | 2020-10-01 00:00:06.087 | 99 | 2 | 0 | 0 | - 2020-10-01 00:00:01.086 | 2020-10-01 00:00:01.086 | 27 | 2 | 0 | 2 | - 2020-10-01 00:00:01.830 | 2020-10-01 00:00:01.830 | 27 | 2 | 2 | 2 | - 2020-10-01 00:00:03.174 | 2020-10-01 00:00:03.174 | 27 | 2 | 0 | 2 | - 2020-10-01 00:00:03.864 | 2020-10-01 00:00:03.864 | 27 | 2 | 0 | 2 | - 2020-10-01 00:00:05.967 | 2020-10-01 00:00:05.967 | 27 | 2 | 0 | 0 | - 2020-10-01 00:00:06.669 | 2020-10-01 00:00:06.669 | 27 | 2 | 0 | 0 | - 2020-10-01 00:00:06.822 | 2020-10-01 00:00:06.822 | 27 | 2 | 0 | 2 | - 2020-10-01 00:00:06.975 | 2020-10-01 00:00:06.975 | 27 | 2 | 2 | 0 | - 2020-10-01 00:00:07.281 | 2020-10-01 00:00:07.281 | 27 | 2 | 0 | 0 | - 2020-10-01 00:00:08.295 | 2020-10-01 00:00:08.295 | 27 | 2 | 2 | 0 | - 2020-10-01 00:00:00.981 | 2020-10-01 00:00:00.981 | -20 | 2 | 0 | 0 | - 2020-10-01 00:00:01.290 | 2020-10-01 00:00:01.290 | -20 | 2 | 2 | 2 | - 2020-10-01 00:00:01.770 | 2020-10-01 00:00:01.770 | -20 | 2 | 2 | 2 | - 2020-10-01 00:00:02.130 | 2020-10-01 00:00:02.130 | -20 | 2 | 2 | 2 | - 2020-10-01 00:00:02.202 | 2020-10-01 00:00:02.202 | -20 | 2 | 0 | 2 | - 2020-10-01 00:00:02.724 | 2020-10-01 00:00:02.724 | -20 | 2 | 0 | 2 | - 2020-10-01 00:00:02.847 | 2020-10-01 00:00:02.847 | -20 | 2 | 0 | 0 | - 2020-10-01 00:00:03.039 | 2020-10-01 00:00:03.039 | -20 | 2 | 0 | 0 | - 2020-10-01 00:00:03.567 | 2020-10-01 00:00:03.567 | -20 | 2 | 0 | 0 | - 2020-10-01 00:00:04.446 | 2020-10-01 00:00:04.446 | -20 | 2 | 0 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 80 | 2 | 2 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:49.995 | NULL | 18000 | 10000 | 10000 | + 2020-10-01 00:00:00.002 | 2020-10-01 00:00:49.995 | NULL | 26666 | 16000 | 13332 | + 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | 44 | 2 | 0 | 0 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:00.006 | -91 | 2 | 0 | 2 | + 2020-10-01 00:00:00.009 | 2020-10-01 00:00:00.009 | 25 | 2 | 0 | 0 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | 70 | 2 | 0 | 2 | + 2020-10-01 00:00:00.015 | 2020-10-01 00:00:00.015 | -106 | 2 | 2 | 0 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.018 | -113 | 2 | 0 | 2 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | 109 | 2 | 0 | 0 | -taos> select _wstart, _wend, tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) slimit 10 limit 10; +taos> select _wstart, _wend, tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | tinyint_col | count(*) | count(u_int_col) | ================================================================================================================== - 2020-10-01 00:00:01.515 | 2020-10-01 00:00:01.515 | -1 | 2 | 2 | - 2020-10-01 00:00:02.505 | 2020-10-01 00:00:02.505 | -1 | 2 | 2 | - 2020-10-01 00:00:03.885 | 2020-10-01 00:00:03.885 | -1 | 2 | 2 | - 2020-10-01 00:00:05.226 | 2020-10-01 00:00:05.226 | -1 | 2 | 0 | - 2020-10-01 00:00:05.838 | 2020-10-01 00:00:05.838 | -1 | 2 | 0 | - 2020-10-01 00:00:07.200 | 2020-10-01 00:00:07.200 | -1 | 2 | 2 | - 2020-10-01 00:00:07.383 | 2020-10-01 00:00:07.383 | -1 | 2 | 0 | - 2020-10-01 00:00:07.542 | 2020-10-01 00:00:07.542 | -1 | 2 | 0 | - 2020-10-01 00:00:08.721 | 2020-10-01 00:00:08.721 | -1 | 2 | 0 | - 2020-10-01 00:00:09.222 | 2020-10-01 00:00:09.222 | -1 | 2 | 0 | - 2020-10-01 00:00:00.993 | 2020-10-01 00:00:00.993 | -109 | 2 | 0 | - 2020-10-01 00:00:01.488 | 2020-10-01 00:00:01.488 | -109 | 2 | 0 | - 2020-10-01 00:00:01.584 | 2020-10-01 00:00:01.584 | -109 | 2 | 0 | - 2020-10-01 00:00:01.710 | 2020-10-01 00:00:01.710 | -109 | 2 | 2 | - 2020-10-01 00:00:03.717 | 2020-10-01 00:00:03.717 | -109 | 2 | 0 | - 2020-10-01 00:00:07.965 | 2020-10-01 00:00:07.965 | -109 | 2 | 2 | - 2020-10-01 00:00:08.313 | 2020-10-01 00:00:08.313 | -109 | 2 | 0 | - 2020-10-01 00:00:08.700 | 2020-10-01 00:00:08.700 | -109 | 2 | 2 | - 2020-10-01 00:00:08.841 | 2020-10-01 00:00:08.841 | -109 | 2 | 0 | - 2020-10-01 00:00:10.752 | 2020-10-01 00:00:10.752 | -109 | 2 | 0 | - 2020-10-01 00:00:00.561 | 2020-10-01 00:00:00.561 | 74 | 2 | 0 | - 2020-10-01 00:00:01.023 | 2020-10-01 00:00:01.023 | 74 | 2 | 0 | - 2020-10-01 00:00:02.112 | 2020-10-01 00:00:02.112 | 74 | 2 | 0 | - 2020-10-01 00:00:02.382 | 2020-10-01 00:00:02.382 | 74 | 2 | 0 | - 2020-10-01 00:00:02.871 | 2020-10-01 00:00:02.871 | 74 | 2 | 0 | - 2020-10-01 00:00:03.339 | 2020-10-01 00:00:03.339 | 74 | 2 | 0 | - 2020-10-01 00:00:03.417 | 2020-10-01 00:00:03.417 | 74 | 2 | 0 | - 2020-10-01 00:00:04.035 | 2020-10-01 00:00:04.035 | 74 | 2 | 2 | - 2020-10-01 00:00:05.475 | 2020-10-01 00:00:05.475 | 74 | 2 | 2 | - 2020-10-01 00:00:05.766 | 2020-10-01 00:00:05.766 | 74 | 2 | 0 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:00.759 | -125 | 2 | 0 | - 2020-10-01 00:00:01.017 | 2020-10-01 00:00:01.017 | -125 | 2 | 0 | - 2020-10-01 00:00:01.092 | 2020-10-01 00:00:01.092 | -125 | 2 | 0 | - 2020-10-01 00:00:01.341 | 2020-10-01 00:00:01.341 | -125 | 2 | 0 | - 2020-10-01 00:00:02.211 | 2020-10-01 00:00:02.211 | -125 | 2 | 0 | - 2020-10-01 00:00:02.406 | 2020-10-01 00:00:02.406 | -125 | 2 | 0 | - 2020-10-01 00:00:04.548 | 2020-10-01 00:00:04.548 | -125 | 2 | 0 | - 2020-10-01 00:00:04.755 | 2020-10-01 00:00:04.755 | -125 | 2 | 2 | - 2020-10-01 00:00:05.037 | 2020-10-01 00:00:05.037 | -125 | 2 | 0 | - 2020-10-01 00:00:05.553 | 2020-10-01 00:00:05.553 | -125 | 2 | 0 | - 2020-10-01 00:00:01.134 | 2020-10-01 00:00:01.134 | 32 | 2 | 0 | - 2020-10-01 00:00:01.563 | 2020-10-01 00:00:01.563 | 32 | 2 | 0 | - 2020-10-01 00:00:01.653 | 2020-10-01 00:00:01.653 | 32 | 2 | 0 | - 2020-10-01 00:00:02.439 | 2020-10-01 00:00:02.439 | 32 | 2 | 0 | - 2020-10-01 00:00:02.832 | 2020-10-01 00:00:02.832 | 32 | 2 | 0 | - 2020-10-01 00:00:03.138 | 2020-10-01 00:00:03.138 | 32 | 2 | 0 | - 2020-10-01 00:00:03.330 | 2020-10-01 00:00:03.330 | 32 | 2 | 2 | - 2020-10-01 00:00:03.735 | 2020-10-01 00:00:03.735 | 32 | 2 | 2 | - 2020-10-01 00:00:03.858 | 2020-10-01 00:00:03.858 | 32 | 2 | 0 | - 2020-10-01 00:00:05.115 | 2020-10-01 00:00:05.115 | 32 | 2 | 2 | - 2020-10-01 00:00:00.900 | 2020-10-01 00:00:00.900 | 38 | 2 | 2 | - 2020-10-01 00:00:01.203 | 2020-10-01 00:00:01.203 | 38 | 2 | 0 | - 2020-10-01 00:00:02.166 | 2020-10-01 00:00:02.166 | 38 | 2 | 0 | - 2020-10-01 00:00:02.649 | 2020-10-01 00:00:02.649 | 38 | 2 | 0 | - 2020-10-01 00:00:02.955 | 2020-10-01 00:00:02.958 | 38 | 4 | 2 | - 2020-10-01 00:00:03.006 | 2020-10-01 00:00:03.006 | 38 | 2 | 0 | - 2020-10-01 00:00:03.429 | 2020-10-01 00:00:03.429 | 38 | 2 | 0 | - 2020-10-01 00:00:05.232 | 2020-10-01 00:00:05.232 | 38 | 2 | 0 | - 2020-10-01 00:00:05.364 | 2020-10-01 00:00:05.364 | 38 | 2 | 0 | - 2020-10-01 00:00:06.447 | 2020-10-01 00:00:06.447 | 38 | 2 | 0 | - 2020-10-01 00:00:01.218 | 2020-10-01 00:00:01.218 | 107 | 2 | 0 | - 2020-10-01 00:00:01.386 | 2020-10-01 00:00:01.386 | 107 | 2 | 0 | - 2020-10-01 00:00:01.737 | 2020-10-01 00:00:01.737 | 107 | 2 | 0 | - 2020-10-01 00:00:04.185 | 2020-10-01 00:00:04.185 | 107 | 2 | 2 | - 2020-10-01 00:00:04.530 | 2020-10-01 00:00:04.530 | 107 | 2 | 2 | - 2020-10-01 00:00:06.354 | 2020-10-01 00:00:06.354 | 107 | 2 | 0 | - 2020-10-01 00:00:07.329 | 2020-10-01 00:00:07.329 | 107 | 2 | 0 | - 2020-10-01 00:00:07.389 | 2020-10-01 00:00:07.389 | 107 | 2 | 0 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 2 | 2 | - 2020-10-01 00:00:10.842 | 2020-10-01 00:00:10.842 | 107 | 2 | 0 | - 2020-10-01 00:00:00.813 | 2020-10-01 00:00:00.813 | 99 | 2 | 0 | - 2020-10-01 00:00:01.167 | 2020-10-01 00:00:01.167 | 99 | 2 | 0 | - 2020-10-01 00:00:01.365 | 2020-10-01 00:00:01.365 | 99 | 2 | 2 | - 2020-10-01 00:00:01.632 | 2020-10-01 00:00:01.632 | 99 | 2 | 0 | - 2020-10-01 00:00:01.656 | 2020-10-01 00:00:01.656 | 99 | 2 | 0 | - 2020-10-01 00:00:02.367 | 2020-10-01 00:00:02.367 | 99 | 2 | 0 | - 2020-10-01 00:00:02.514 | 2020-10-01 00:00:02.514 | 99 | 2 | 0 | - 2020-10-01 00:00:04.221 | 2020-10-01 00:00:04.227 | 99 | 4 | 0 | - 2020-10-01 00:00:04.332 | 2020-10-01 00:00:04.332 | 99 | 2 | 0 | - 2020-10-01 00:00:06.087 | 2020-10-01 00:00:06.087 | 99 | 2 | 0 | - 2020-10-01 00:00:01.086 | 2020-10-01 00:00:01.086 | 27 | 2 | 0 | - 2020-10-01 00:00:01.830 | 2020-10-01 00:00:01.830 | 27 | 2 | 2 | - 2020-10-01 00:00:03.174 | 2020-10-01 00:00:03.174 | 27 | 2 | 0 | - 2020-10-01 00:00:03.864 | 2020-10-01 00:00:03.864 | 27 | 2 | 0 | - 2020-10-01 00:00:05.967 | 2020-10-01 00:00:05.967 | 27 | 2 | 0 | - 2020-10-01 00:00:06.669 | 2020-10-01 00:00:06.669 | 27 | 2 | 0 | - 2020-10-01 00:00:06.822 | 2020-10-01 00:00:06.822 | 27 | 2 | 0 | - 2020-10-01 00:00:06.975 | 2020-10-01 00:00:06.975 | 27 | 2 | 2 | - 2020-10-01 00:00:07.281 | 2020-10-01 00:00:07.281 | 27 | 2 | 0 | - 2020-10-01 00:00:08.295 | 2020-10-01 00:00:08.295 | 27 | 2 | 2 | - 2020-10-01 00:00:00.981 | 2020-10-01 00:00:00.981 | -20 | 2 | 0 | - 2020-10-01 00:00:01.290 | 2020-10-01 00:00:01.290 | -20 | 2 | 2 | - 2020-10-01 00:00:01.770 | 2020-10-01 00:00:01.770 | -20 | 2 | 2 | - 2020-10-01 00:00:02.130 | 2020-10-01 00:00:02.130 | -20 | 2 | 2 | - 2020-10-01 00:00:02.202 | 2020-10-01 00:00:02.202 | -20 | 2 | 0 | - 2020-10-01 00:00:02.724 | 2020-10-01 00:00:02.724 | -20 | 2 | 0 | - 2020-10-01 00:00:02.847 | 2020-10-01 00:00:02.847 | -20 | 2 | 0 | - 2020-10-01 00:00:03.039 | 2020-10-01 00:00:03.039 | -20 | 2 | 0 | - 2020-10-01 00:00:03.567 | 2020-10-01 00:00:03.567 | -20 | 2 | 0 | - 2020-10-01 00:00:04.446 | 2020-10-01 00:00:04.446 | -20 | 2 | 0 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 80 | 2 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:49.995 | NULL | 10000 | 10000 | + 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | 44 | 2 | 0 | + 2020-10-01 00:00:00.005 | 2020-10-01 00:00:49.995 | NULL | 16000 | 16000 | + 2020-10-01 00:00:00.006 | 2020-10-01 00:00:00.006 | -91 | 2 | 0 | + 2020-10-01 00:00:00.009 | 2020-10-01 00:00:00.009 | 25 | 2 | 0 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.012 | 70 | 2 | 0 | + 2020-10-01 00:00:00.015 | 2020-10-01 00:00:00.015 | -106 | 2 | 2 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.018 | -113 | 2 | 0 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | 109 | 2 | 0 | -taos> select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 slimit 10 limit 10; +taos> select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | first(tinyint_col) | last(tinyint_col) | u_tinyint_col | count(*) | ===================================================================================================================================== - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:13.746 | 55 | 123 | 147 | 22 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:13.746 | 55 | 123 | 147 | 22 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:13.494 | 63 | 102 | 74 | 24 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:13.494 | 63 | 102 | 74 | 24 | - 2020-10-01 00:00:07.740 | 2020-10-01 00:00:09.234 | 81 | 120 | 131 | 4 | - 2020-10-01 00:00:10.470 | 2020-10-01 00:00:15.036 | 97 | 123 | 131 | 8 | - 2020-10-01 00:00:10.470 | 2020-10-01 00:00:15.036 | 97 | 123 | 131 | 8 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 107 | 32 | 1 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:05.958 | 87 | 102 | 38 | 4 | - 2020-10-01 00:00:11.784 | 2020-10-01 00:00:11.784 | 120 | 120 | 38 | 1 | - 2020-10-01 00:00:11.784 | 2020-10-01 00:00:11.784 | 120 | 120 | 38 | 1 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:08.502 | 71 | 114 | 107 | 12 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:16.926 | 116 | 116 | 107 | 1 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:16.926 | 116 | 116 | 107 | 1 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:13.224 | 88 | 110 | 99 | 16 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:06.600 | 90 | 111 | 27 | 2 | - 2020-10-01 00:00:18.546 | 2020-10-01 00:00:19.038 | 65 | 121 | 27 | 2 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:06.600 | 90 | 111 | 27 | 2 | - 2020-10-01 00:00:18.546 | 2020-10-01 00:00:19.038 | 65 | 121 | 27 | 2 | - 2020-10-01 00:00:11.838 | 2020-10-01 00:00:17.958 | 76 | 110 | 236 | 8 | - 2020-10-01 00:00:11.838 | 2020-10-01 00:00:17.958 | 76 | 110 | 236 | 8 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:19.854 | 52 | 116 | 155 | 32 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:19.854 | 52 | 116 | 155 | 32 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | 109 | 109 | NULL | 1 | + 2020-10-01 00:00:00.033 | 2020-10-01 00:00:00.075 | 89 | 102 | NULL | 8 | + 2020-10-01 00:00:00.033 | 2020-10-01 00:00:00.075 | 89 | 102 | NULL | 8 | + 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.054 | 126 | 126 | 205 | 1 | + 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.054 | 126 | 126 | 205 | 1 | + 2020-10-01 00:00:00.084 | 2020-10-01 00:00:00.726 | 67 | 122 | 92 | 3 | + 2020-10-01 00:00:00.090 | 2020-10-01 00:00:15.366 | 78 | 118 | 197 | 30 | + 2020-10-01 00:00:00.090 | 2020-10-01 00:00:15.366 | 78 | 118 | 197 | 30 | + 2020-10-01 00:00:00.111 | 2020-10-01 00:00:00.237 | 52 | 122 | NULL | 22 | + 2020-10-01 00:00:00.111 | 2020-10-01 00:00:00.237 | 52 | 122 | NULL | 22 | -taos> select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 slimit 10 limit 10; +taos> select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | first(tinyint_col) | last(tinyint_col) | u_tinyint_col | count(*) | count(u_int_col) | count(u_tinyint_col) | count(u_smallint_col) | ============================================================================================================================================================================================================= - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:13.746 | 55 | 123 | 147 | 22 | 4 | 22 | 7 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:13.746 | 55 | 123 | 147 | 22 | 4 | 22 | 7 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:13.494 | 63 | 102 | 74 | 24 | 4 | 24 | 7 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:13.494 | 63 | 102 | 74 | 24 | 4 | 24 | 7 | - 2020-10-01 00:00:07.740 | 2020-10-01 00:00:09.234 | 81 | 120 | 131 | 4 | 1 | 4 | 2 | - 2020-10-01 00:00:10.470 | 2020-10-01 00:00:15.036 | 97 | 123 | 131 | 8 | 1 | 8 | 3 | - 2020-10-01 00:00:10.470 | 2020-10-01 00:00:15.036 | 97 | 123 | 131 | 8 | 1 | 8 | 3 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 107 | 32 | 1 | 1 | 1 | 1 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:05.958 | 87 | 102 | 38 | 4 | 0 | 4 | 3 | - 2020-10-01 00:00:11.784 | 2020-10-01 00:00:11.784 | 120 | 120 | 38 | 1 | 0 | 1 | 1 | - 2020-10-01 00:00:11.784 | 2020-10-01 00:00:11.784 | 120 | 120 | 38 | 1 | 0 | 1 | 1 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:08.502 | 71 | 114 | 107 | 12 | 0 | 12 | 7 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:16.926 | 116 | 116 | 107 | 1 | 0 | 1 | 1 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:16.926 | 116 | 116 | 107 | 1 | 0 | 1 | 1 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:13.224 | 88 | 110 | 99 | 16 | 6 | 16 | 11 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:06.600 | 90 | 111 | 27 | 2 | 1 | 2 | 2 | - 2020-10-01 00:00:18.546 | 2020-10-01 00:00:19.038 | 65 | 121 | 27 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:06.600 | 90 | 111 | 27 | 2 | 1 | 2 | 2 | - 2020-10-01 00:00:18.546 | 2020-10-01 00:00:19.038 | 65 | 121 | 27 | 2 | 0 | 2 | 2 | - 2020-10-01 00:00:11.838 | 2020-10-01 00:00:17.958 | 76 | 110 | 236 | 8 | 3 | 8 | 5 | - 2020-10-01 00:00:11.838 | 2020-10-01 00:00:17.958 | 76 | 110 | 236 | 8 | 3 | 8 | 5 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:19.854 | 52 | 116 | 155 | 32 | 4 | 32 | 16 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:19.854 | 52 | 116 | 155 | 32 | 4 | 32 | 16 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | 109 | 109 | NULL | 1 | 0 | 0 | 1 | + 2020-10-01 00:00:00.033 | 2020-10-01 00:00:00.075 | 89 | 102 | NULL | 11 | 5 | 0 | 8 | + 2020-10-01 00:00:00.033 | 2020-10-01 00:00:00.075 | 89 | 102 | NULL | 11 | 5 | 0 | 8 | + 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.054 | 126 | 126 | 205 | 1 | 0 | 1 | 1 | + 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.054 | 126 | 126 | 205 | 1 | 0 | 1 | 1 | + 2020-10-01 00:00:00.084 | 2020-10-01 00:00:00.726 | 67 | 122 | 92 | 3 | 0 | 3 | 2 | + 2020-10-01 00:00:00.090 | 2020-10-01 00:00:15.366 | 78 | 118 | 197 | 30 | 5 | 30 | 9 | + 2020-10-01 00:00:00.090 | 2020-10-01 00:00:15.366 | 78 | 118 | 197 | 30 | 5 | 30 | 9 | + 2020-10-01 00:00:00.111 | 2020-10-01 00:00:00.237 | 52 | 122 | NULL | 31 | 13 | 0 | 22 | + 2020-10-01 00:00:00.111 | 2020-10-01 00:00:00.237 | 52 | 122 | NULL | 31 | 13 | 0 | 22 | -taos> select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 slimit 10 limit 10; +taos> select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | first(tinyint_col) | last(tinyint_col) | u_tinyint_col | count(*) | count(u_int_col) | count(u_tinyint_col) | ===================================================================================================================================================================================== - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:13.746 | 55 | 123 | 147 | 22 | 4 | 22 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:13.746 | 55 | 123 | 147 | 22 | 4 | 22 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:13.494 | 63 | 102 | 74 | 24 | 4 | 24 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:13.494 | 63 | 102 | 74 | 24 | 4 | 24 | - 2020-10-01 00:00:07.740 | 2020-10-01 00:00:09.234 | 81 | 120 | 131 | 4 | 1 | 4 | - 2020-10-01 00:00:10.470 | 2020-10-01 00:00:15.036 | 97 | 123 | 131 | 8 | 1 | 8 | - 2020-10-01 00:00:10.470 | 2020-10-01 00:00:15.036 | 97 | 123 | 131 | 8 | 1 | 8 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 107 | 32 | 1 | 1 | 1 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:05.958 | 87 | 102 | 38 | 4 | 0 | 4 | - 2020-10-01 00:00:11.784 | 2020-10-01 00:00:11.784 | 120 | 120 | 38 | 1 | 0 | 1 | - 2020-10-01 00:00:11.784 | 2020-10-01 00:00:11.784 | 120 | 120 | 38 | 1 | 0 | 1 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:08.502 | 71 | 114 | 107 | 12 | 0 | 12 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:16.926 | 116 | 116 | 107 | 1 | 0 | 1 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:16.926 | 116 | 116 | 107 | 1 | 0 | 1 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:13.224 | 88 | 110 | 99 | 16 | 6 | 16 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:06.600 | 90 | 111 | 27 | 2 | 1 | 2 | - 2020-10-01 00:00:18.546 | 2020-10-01 00:00:19.038 | 65 | 121 | 27 | 2 | 0 | 2 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:06.600 | 90 | 111 | 27 | 2 | 1 | 2 | - 2020-10-01 00:00:18.546 | 2020-10-01 00:00:19.038 | 65 | 121 | 27 | 2 | 0 | 2 | - 2020-10-01 00:00:11.838 | 2020-10-01 00:00:17.958 | 76 | 110 | 236 | 8 | 3 | 8 | - 2020-10-01 00:00:11.838 | 2020-10-01 00:00:17.958 | 76 | 110 | 236 | 8 | 3 | 8 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:19.854 | 52 | 116 | 155 | 32 | 4 | 32 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:19.854 | 52 | 116 | 155 | 32 | 4 | 32 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | 109 | 109 | NULL | 1 | 0 | 0 | + 2020-10-01 00:00:00.033 | 2020-10-01 00:00:00.075 | 89 | 102 | NULL | 11 | 5 | 0 | + 2020-10-01 00:00:00.033 | 2020-10-01 00:00:00.075 | 89 | 102 | NULL | 11 | 5 | 0 | + 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.054 | 126 | 126 | 205 | 1 | 0 | 1 | + 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.054 | 126 | 126 | 205 | 1 | 0 | 1 | + 2020-10-01 00:00:00.084 | 2020-10-01 00:00:00.726 | 67 | 122 | 92 | 3 | 0 | 3 | + 2020-10-01 00:00:00.090 | 2020-10-01 00:00:15.366 | 78 | 118 | 197 | 30 | 5 | 30 | + 2020-10-01 00:00:00.090 | 2020-10-01 00:00:15.366 | 78 | 118 | 197 | 30 | 5 | 30 | + 2020-10-01 00:00:00.111 | 2020-10-01 00:00:00.237 | 52 | 122 | NULL | 31 | 13 | 0 | + 2020-10-01 00:00:00.111 | 2020-10-01 00:00:00.237 | 52 | 122 | NULL | 31 | 13 | 0 | -taos> select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 slimit 10 limit 10; +taos> select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | first(tinyint_col) | last(tinyint_col) | u_tinyint_col | count(*) | count(u_int_col) | ============================================================================================================================================================= - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:13.746 | 55 | 123 | 147 | 22 | 4 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:13.746 | 55 | 123 | 147 | 22 | 4 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:13.494 | 63 | 102 | 74 | 24 | 4 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:13.494 | 63 | 102 | 74 | 24 | 4 | - 2020-10-01 00:00:07.740 | 2020-10-01 00:00:09.234 | 81 | 120 | 131 | 4 | 1 | - 2020-10-01 00:00:10.470 | 2020-10-01 00:00:15.036 | 97 | 123 | 131 | 8 | 1 | - 2020-10-01 00:00:10.470 | 2020-10-01 00:00:15.036 | 97 | 123 | 131 | 8 | 1 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 107 | 32 | 1 | 1 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:05.958 | 87 | 102 | 38 | 4 | 0 | - 2020-10-01 00:00:11.784 | 2020-10-01 00:00:11.784 | 120 | 120 | 38 | 1 | 0 | - 2020-10-01 00:00:11.784 | 2020-10-01 00:00:11.784 | 120 | 120 | 38 | 1 | 0 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:08.502 | 71 | 114 | 107 | 12 | 0 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:16.926 | 116 | 116 | 107 | 1 | 0 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:16.926 | 116 | 116 | 107 | 1 | 0 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:13.224 | 88 | 110 | 99 | 16 | 6 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:06.600 | 90 | 111 | 27 | 2 | 1 | - 2020-10-01 00:00:18.546 | 2020-10-01 00:00:19.038 | 65 | 121 | 27 | 2 | 0 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:06.600 | 90 | 111 | 27 | 2 | 1 | - 2020-10-01 00:00:18.546 | 2020-10-01 00:00:19.038 | 65 | 121 | 27 | 2 | 0 | - 2020-10-01 00:00:11.838 | 2020-10-01 00:00:17.958 | 76 | 110 | 236 | 8 | 3 | - 2020-10-01 00:00:11.838 | 2020-10-01 00:00:17.958 | 76 | 110 | 236 | 8 | 3 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:19.854 | 52 | 116 | 155 | 32 | 4 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:19.854 | 52 | 116 | 155 | 32 | 4 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.021 | 109 | 109 | NULL | 1 | 0 | + 2020-10-01 00:00:00.033 | 2020-10-01 00:00:00.075 | 89 | 102 | NULL | 11 | 5 | + 2020-10-01 00:00:00.033 | 2020-10-01 00:00:00.075 | 89 | 102 | NULL | 11 | 5 | + 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.054 | 126 | 126 | 205 | 1 | 0 | + 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.054 | 126 | 126 | 205 | 1 | 0 | + 2020-10-01 00:00:00.084 | 2020-10-01 00:00:00.726 | 67 | 122 | 92 | 3 | 0 | + 2020-10-01 00:00:00.090 | 2020-10-01 00:00:15.366 | 78 | 118 | 197 | 30 | 5 | + 2020-10-01 00:00:00.090 | 2020-10-01 00:00:15.366 | 78 | 118 | 197 | 30 | 5 | + 2020-10-01 00:00:00.111 | 2020-10-01 00:00:00.237 | 52 | 122 | NULL | 31 | 13 | + 2020-10-01 00:00:00.111 | 2020-10-01 00:00:00.237 | 52 | 122 | NULL | 31 | 13 | -taos> select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 slimit 10 limit 10; +taos> select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | first(tinyint_col) | last(smallint_col) | u_tinyint_col | count(*) | ====================================================================================================================================== - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:09.570 | 55 | 5639 | 147 | 7 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:10.960 | 62 | 6459 | 147 | 2 | - 2020-10-01 00:00:13.746 | 2020-10-01 00:00:15.370 | 123 | 21469 | 147 | 8 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:09.570 | 55 | 5639 | 147 | 7 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:10.960 | 62 | 6459 | 147 | 2 | - 2020-10-01 00:00:13.746 | 2020-10-01 00:00:15.370 | 123 | 21469 | 147 | 8 | - 2020-10-01 00:00:07.740 | 2020-10-01 00:00:07.740 | 81 | 27479 | 131 | 1 | - 2020-10-01 00:00:09.234 | 2020-10-01 00:00:17.330 | 120 | 24450 | 131 | 11 | - 2020-10-01 00:00:09.234 | 2020-10-01 00:00:17.330 | 120 | 24450 | 131 | 11 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 6511 | 32 | 1 | - 2020-10-01 00:00:10.848 | 2020-10-01 00:00:12.260 | 93 | 5151 | 32 | 4 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 6511 | 32 | 1 | - 2020-10-01 00:00:10.848 | 2020-10-01 00:00:12.260 | 93 | 5151 | 32 | 4 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:15.340 | 87 | 11121 | 38 | 24 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:15.340 | 87 | 11121 | 38 | 24 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:11.740 | 71 | 26950 | 107 | 17 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:18.170 | 116 | 32395 | 107 | 7 | - 2020-10-01 00:00:19.104 | 2020-10-01 00:00:19.520 | 52 | 6720 | 107 | 2 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:11.740 | 71 | 26950 | 107 | 17 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:18.170 | 116 | 32395 | 107 | 7 | - 2020-10-01 00:00:19.104 | 2020-10-01 00:00:19.520 | 52 | 6720 | 107 | 2 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:12.150 | 88 | 16871 | 99 | 10 | - 2020-10-01 00:00:13.224 | 2020-10-01 00:00:18.380 | 110 | 19942 | 99 | 11 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:12.150 | 88 | 16871 | 99 | 10 | - 2020-10-01 00:00:13.224 | 2020-10-01 00:00:18.380 | 110 | 19942 | 99 | 11 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:07.670 | 90 | 26596 | 27 | 3 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:10.640 | 52 | 25550 | 155 | 17 | - 2020-10-01 00:00:02.664 | 2020-10-01 00:00:05.480 | 80 | 24136 | 233 | 4 | - 2020-10-01 00:00:05.982 | 2020-10-01 00:00:06.660 | 60 | 4626 | 233 | 4 | - 2020-10-01 00:00:09.690 | 2020-10-01 00:00:09.690 | 61 | 21514 | 233 | 1 | - 2020-10-01 00:00:10.824 | 2020-10-01 00:00:12.670 | 114 | 29983 | 233 | 5 | - 2020-10-01 00:00:02.664 | 2020-10-01 00:00:05.480 | 80 | 24136 | 233 | 4 | - 2020-10-01 00:00:05.982 | 2020-10-01 00:00:06.660 | 60 | 4626 | 233 | 4 | - 2020-10-01 00:00:09.690 | 2020-10-01 00:00:09.690 | 61 | 21514 | 233 | 1 | - 2020-10-01 00:00:10.824 | 2020-10-01 00:00:12.670 | 114 | 29983 | 233 | 5 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 80 | 32519 | 29 | 1 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.900 | 70 | 26112 | 77 | 3 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.035 | 109 | 3783 | NULL | 5 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.035 | 109 | 3783 | NULL | 5 | + 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.055 | 97 | 1901 | NULL | 2 | + 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.055 | 97 | 1901 | NULL | 2 | 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.870 | 126 | 16650 | 205 | 4 | - 2020-10-01 00:00:01.782 | 2020-10-01 00:00:08.740 | 113 | 4121 | 205 | 16 | - 2020-10-01 00:00:13.986 | 2020-10-01 00:00:14.230 | 82 | 21682 | 205 | 2 | - 2020-10-01 00:00:01.782 | 2020-10-01 00:00:08.740 | 113 | 4121 | 205 | 16 | - 2020-10-01 00:00:13.986 | 2020-10-01 00:00:14.230 | 82 | 21682 | 205 | 2 | + 2020-10-01 00:00:00.075 | 2020-10-01 00:00:00.075 | 102 | 3277 | NULL | 1 | + 2020-10-01 00:00:00.075 | 2020-10-01 00:00:00.075 | 102 | 3277 | NULL | 1 | + 2020-10-01 00:00:00.084 | 2020-10-01 00:00:03.890 | 67 | 2505 | 92 | 8 | -taos> select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 slimit 10 limit 10; +taos> select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | first(tinyint_col) | last(smallint_col) | u_tinyint_col | count(*) | count(u_int_col) | count(u_tinyint_col) | count(u_smallint_col) | ============================================================================================================================================================================================================== - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:09.570 | 55 | 5639 | 147 | 7 | 1 | 7 | 3 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:10.960 | 62 | 6459 | 147 | 2 | 1 | 2 | 1 | - 2020-10-01 00:00:13.746 | 2020-10-01 00:00:15.370 | 123 | 21469 | 147 | 8 | 2 | 8 | 3 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:09.570 | 55 | 5639 | 147 | 7 | 1 | 7 | 3 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:10.960 | 62 | 6459 | 147 | 2 | 1 | 2 | 1 | - 2020-10-01 00:00:13.746 | 2020-10-01 00:00:15.370 | 123 | 21469 | 147 | 8 | 2 | 8 | 3 | - 2020-10-01 00:00:07.740 | 2020-10-01 00:00:07.740 | 81 | 27479 | 131 | 1 | 1 | 1 | 1 | - 2020-10-01 00:00:09.234 | 2020-10-01 00:00:17.330 | 120 | 24450 | 131 | 11 | 2 | 11 | 5 | - 2020-10-01 00:00:09.234 | 2020-10-01 00:00:17.330 | 120 | 24450 | 131 | 11 | 2 | 11 | 5 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 6511 | 32 | 1 | 1 | 1 | 1 | - 2020-10-01 00:00:10.848 | 2020-10-01 00:00:12.260 | 93 | 5151 | 32 | 4 | 1 | 4 | 1 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 6511 | 32 | 1 | 1 | 1 | 1 | - 2020-10-01 00:00:10.848 | 2020-10-01 00:00:12.260 | 93 | 5151 | 32 | 4 | 1 | 4 | 1 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:15.340 | 87 | 11121 | 38 | 24 | 3 | 24 | 8 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:15.340 | 87 | 11121 | 38 | 24 | 3 | 24 | 8 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:11.740 | 71 | 26950 | 107 | 17 | 2 | 17 | 8 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:18.170 | 116 | 32395 | 107 | 7 | 2 | 7 | 2 | - 2020-10-01 00:00:19.104 | 2020-10-01 00:00:19.520 | 52 | 6720 | 107 | 2 | 1 | 2 | 1 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:11.740 | 71 | 26950 | 107 | 17 | 2 | 17 | 8 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:18.170 | 116 | 32395 | 107 | 7 | 2 | 7 | 2 | - 2020-10-01 00:00:19.104 | 2020-10-01 00:00:19.520 | 52 | 6720 | 107 | 2 | 1 | 2 | 1 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:12.150 | 88 | 16871 | 99 | 10 | 3 | 10 | 7 | - 2020-10-01 00:00:13.224 | 2020-10-01 00:00:18.380 | 110 | 19942 | 99 | 11 | 1 | 11 | 6 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:12.150 | 88 | 16871 | 99 | 10 | 3 | 10 | 7 | - 2020-10-01 00:00:13.224 | 2020-10-01 00:00:18.380 | 110 | 19942 | 99 | 11 | 1 | 11 | 6 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:07.670 | 90 | 26596 | 27 | 3 | 2 | 3 | 2 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:10.640 | 52 | 25550 | 155 | 17 | 2 | 17 | 9 | - 2020-10-01 00:00:02.664 | 2020-10-01 00:00:05.480 | 80 | 24136 | 233 | 4 | 1 | 4 | 2 | - 2020-10-01 00:00:05.982 | 2020-10-01 00:00:06.660 | 60 | 4626 | 233 | 4 | 1 | 4 | 2 | - 2020-10-01 00:00:09.690 | 2020-10-01 00:00:09.690 | 61 | 21514 | 233 | 1 | 1 | 1 | 1 | - 2020-10-01 00:00:10.824 | 2020-10-01 00:00:12.670 | 114 | 29983 | 233 | 5 | 2 | 5 | 2 | - 2020-10-01 00:00:02.664 | 2020-10-01 00:00:05.480 | 80 | 24136 | 233 | 4 | 1 | 4 | 2 | - 2020-10-01 00:00:05.982 | 2020-10-01 00:00:06.660 | 60 | 4626 | 233 | 4 | 1 | 4 | 2 | - 2020-10-01 00:00:09.690 | 2020-10-01 00:00:09.690 | 61 | 21514 | 233 | 1 | 1 | 1 | 1 | - 2020-10-01 00:00:10.824 | 2020-10-01 00:00:12.670 | 114 | 29983 | 233 | 5 | 2 | 5 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 80 | 32519 | 29 | 1 | 1 | 1 | 1 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.900 | 70 | 26112 | 77 | 3 | 1 | 3 | 3 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.035 | 109 | 3783 | NULL | 5 | 2 | 0 | 3 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.035 | 109 | 3783 | NULL | 5 | 2 | 0 | 3 | + 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.055 | 97 | 1901 | NULL | 2 | 1 | 0 | 1 | + 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.055 | 97 | 1901 | NULL | 2 | 1 | 0 | 1 | 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.870 | 126 | 16650 | 205 | 4 | 2 | 4 | 3 | - 2020-10-01 00:00:01.782 | 2020-10-01 00:00:08.740 | 113 | 4121 | 205 | 16 | 2 | 16 | 4 | - 2020-10-01 00:00:13.986 | 2020-10-01 00:00:14.230 | 82 | 21682 | 205 | 2 | 1 | 2 | 1 | - 2020-10-01 00:00:01.782 | 2020-10-01 00:00:08.740 | 113 | 4121 | 205 | 16 | 2 | 16 | 4 | - 2020-10-01 00:00:13.986 | 2020-10-01 00:00:14.230 | 82 | 21682 | 205 | 2 | 1 | 2 | 1 | + 2020-10-01 00:00:00.075 | 2020-10-01 00:00:00.075 | 102 | 3277 | NULL | 1 | 1 | 0 | 1 | + 2020-10-01 00:00:00.075 | 2020-10-01 00:00:00.075 | 102 | 3277 | NULL | 1 | 1 | 0 | 1 | + 2020-10-01 00:00:00.084 | 2020-10-01 00:00:03.890 | 67 | 2505 | 92 | 8 | 1 | 8 | 2 | -taos> select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 slimit 10 limit 10; +taos> select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | first(tinyint_col) | last(smallint_col) | u_tinyint_col | count(*) | count(u_int_col) | count(u_tinyint_col) | ====================================================================================================================================================================================== - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:09.570 | 55 | 5639 | 147 | 7 | 1 | 7 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:10.960 | 62 | 6459 | 147 | 2 | 1 | 2 | - 2020-10-01 00:00:13.746 | 2020-10-01 00:00:15.370 | 123 | 21469 | 147 | 8 | 2 | 8 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:09.570 | 55 | 5639 | 147 | 7 | 1 | 7 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:10.960 | 62 | 6459 | 147 | 2 | 1 | 2 | - 2020-10-01 00:00:13.746 | 2020-10-01 00:00:15.370 | 123 | 21469 | 147 | 8 | 2 | 8 | - 2020-10-01 00:00:07.740 | 2020-10-01 00:00:07.740 | 81 | 27479 | 131 | 1 | 1 | 1 | - 2020-10-01 00:00:09.234 | 2020-10-01 00:00:17.330 | 120 | 24450 | 131 | 11 | 2 | 11 | - 2020-10-01 00:00:09.234 | 2020-10-01 00:00:17.330 | 120 | 24450 | 131 | 11 | 2 | 11 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 6511 | 32 | 1 | 1 | 1 | - 2020-10-01 00:00:10.848 | 2020-10-01 00:00:12.260 | 93 | 5151 | 32 | 4 | 1 | 4 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 6511 | 32 | 1 | 1 | 1 | - 2020-10-01 00:00:10.848 | 2020-10-01 00:00:12.260 | 93 | 5151 | 32 | 4 | 1 | 4 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:15.340 | 87 | 11121 | 38 | 24 | 3 | 24 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:15.340 | 87 | 11121 | 38 | 24 | 3 | 24 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:11.740 | 71 | 26950 | 107 | 17 | 2 | 17 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:18.170 | 116 | 32395 | 107 | 7 | 2 | 7 | - 2020-10-01 00:00:19.104 | 2020-10-01 00:00:19.520 | 52 | 6720 | 107 | 2 | 1 | 2 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:11.740 | 71 | 26950 | 107 | 17 | 2 | 17 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:18.170 | 116 | 32395 | 107 | 7 | 2 | 7 | - 2020-10-01 00:00:19.104 | 2020-10-01 00:00:19.520 | 52 | 6720 | 107 | 2 | 1 | 2 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:12.150 | 88 | 16871 | 99 | 10 | 3 | 10 | - 2020-10-01 00:00:13.224 | 2020-10-01 00:00:18.380 | 110 | 19942 | 99 | 11 | 1 | 11 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:12.150 | 88 | 16871 | 99 | 10 | 3 | 10 | - 2020-10-01 00:00:13.224 | 2020-10-01 00:00:18.380 | 110 | 19942 | 99 | 11 | 1 | 11 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:07.670 | 90 | 26596 | 27 | 3 | 2 | 3 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:10.640 | 52 | 25550 | 155 | 17 | 2 | 17 | - 2020-10-01 00:00:02.664 | 2020-10-01 00:00:05.480 | 80 | 24136 | 233 | 4 | 1 | 4 | - 2020-10-01 00:00:05.982 | 2020-10-01 00:00:06.660 | 60 | 4626 | 233 | 4 | 1 | 4 | - 2020-10-01 00:00:09.690 | 2020-10-01 00:00:09.690 | 61 | 21514 | 233 | 1 | 1 | 1 | - 2020-10-01 00:00:10.824 | 2020-10-01 00:00:12.670 | 114 | 29983 | 233 | 5 | 2 | 5 | - 2020-10-01 00:00:02.664 | 2020-10-01 00:00:05.480 | 80 | 24136 | 233 | 4 | 1 | 4 | - 2020-10-01 00:00:05.982 | 2020-10-01 00:00:06.660 | 60 | 4626 | 233 | 4 | 1 | 4 | - 2020-10-01 00:00:09.690 | 2020-10-01 00:00:09.690 | 61 | 21514 | 233 | 1 | 1 | 1 | - 2020-10-01 00:00:10.824 | 2020-10-01 00:00:12.670 | 114 | 29983 | 233 | 5 | 2 | 5 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 80 | 32519 | 29 | 1 | 1 | 1 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.900 | 70 | 26112 | 77 | 3 | 1 | 3 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.035 | 109 | 3783 | NULL | 5 | 2 | 0 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.035 | 109 | 3783 | NULL | 5 | 2 | 0 | + 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.055 | 97 | 1901 | NULL | 2 | 1 | 0 | + 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.055 | 97 | 1901 | NULL | 2 | 1 | 0 | 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.870 | 126 | 16650 | 205 | 4 | 2 | 4 | - 2020-10-01 00:00:01.782 | 2020-10-01 00:00:08.740 | 113 | 4121 | 205 | 16 | 2 | 16 | - 2020-10-01 00:00:13.986 | 2020-10-01 00:00:14.230 | 82 | 21682 | 205 | 2 | 1 | 2 | - 2020-10-01 00:00:01.782 | 2020-10-01 00:00:08.740 | 113 | 4121 | 205 | 16 | 2 | 16 | - 2020-10-01 00:00:13.986 | 2020-10-01 00:00:14.230 | 82 | 21682 | 205 | 2 | 1 | 2 | + 2020-10-01 00:00:00.075 | 2020-10-01 00:00:00.075 | 102 | 3277 | NULL | 1 | 1 | 0 | + 2020-10-01 00:00:00.075 | 2020-10-01 00:00:00.075 | 102 | 3277 | NULL | 1 | 1 | 0 | + 2020-10-01 00:00:00.084 | 2020-10-01 00:00:03.890 | 67 | 2505 | 92 | 8 | 1 | 8 | -taos> select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 slimit 10 limit 10; +taos> select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | first(tinyint_col) | last(smallint_col) | u_tinyint_col | count(*) | count(u_int_col) | ============================================================================================================================================================== - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:09.570 | 55 | 5639 | 147 | 7 | 1 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:10.960 | 62 | 6459 | 147 | 2 | 1 | - 2020-10-01 00:00:13.746 | 2020-10-01 00:00:15.370 | 123 | 21469 | 147 | 8 | 2 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:09.570 | 55 | 5639 | 147 | 7 | 1 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:10.960 | 62 | 6459 | 147 | 2 | 1 | - 2020-10-01 00:00:13.746 | 2020-10-01 00:00:15.370 | 123 | 21469 | 147 | 8 | 2 | - 2020-10-01 00:00:07.740 | 2020-10-01 00:00:07.740 | 81 | 27479 | 131 | 1 | 1 | - 2020-10-01 00:00:09.234 | 2020-10-01 00:00:17.330 | 120 | 24450 | 131 | 11 | 2 | - 2020-10-01 00:00:09.234 | 2020-10-01 00:00:17.330 | 120 | 24450 | 131 | 11 | 2 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 6511 | 32 | 1 | 1 | - 2020-10-01 00:00:10.848 | 2020-10-01 00:00:12.260 | 93 | 5151 | 32 | 4 | 1 | - 2020-10-01 00:00:07.620 | 2020-10-01 00:00:07.620 | 107 | 6511 | 32 | 1 | 1 | - 2020-10-01 00:00:10.848 | 2020-10-01 00:00:12.260 | 93 | 5151 | 32 | 4 | 1 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:15.340 | 87 | 11121 | 38 | 24 | 3 | - 2020-10-01 00:00:03.444 | 2020-10-01 00:00:15.340 | 87 | 11121 | 38 | 24 | 3 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:11.740 | 71 | 26950 | 107 | 17 | 2 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:18.170 | 116 | 32395 | 107 | 7 | 2 | - 2020-10-01 00:00:19.104 | 2020-10-01 00:00:19.520 | 52 | 6720 | 107 | 2 | 1 | - 2020-10-01 00:00:02.364 | 2020-10-01 00:00:11.740 | 71 | 26950 | 107 | 17 | 2 | - 2020-10-01 00:00:16.926 | 2020-10-01 00:00:18.170 | 116 | 32395 | 107 | 7 | 2 | - 2020-10-01 00:00:19.104 | 2020-10-01 00:00:19.520 | 52 | 6720 | 107 | 2 | 1 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:12.150 | 88 | 16871 | 99 | 10 | 3 | - 2020-10-01 00:00:13.224 | 2020-10-01 00:00:18.380 | 110 | 19942 | 99 | 11 | 1 | - 2020-10-01 00:00:07.812 | 2020-10-01 00:00:12.150 | 88 | 16871 | 99 | 10 | 3 | - 2020-10-01 00:00:13.224 | 2020-10-01 00:00:18.380 | 110 | 19942 | 99 | 11 | 1 | - 2020-10-01 00:00:05.994 | 2020-10-01 00:00:07.670 | 90 | 26596 | 27 | 3 | 2 | - 2020-10-01 00:00:01.698 | 2020-10-01 00:00:10.640 | 52 | 25550 | 155 | 17 | 2 | - 2020-10-01 00:00:02.664 | 2020-10-01 00:00:05.480 | 80 | 24136 | 233 | 4 | 1 | - 2020-10-01 00:00:05.982 | 2020-10-01 00:00:06.660 | 60 | 4626 | 233 | 4 | 1 | - 2020-10-01 00:00:09.690 | 2020-10-01 00:00:09.690 | 61 | 21514 | 233 | 1 | 1 | - 2020-10-01 00:00:10.824 | 2020-10-01 00:00:12.670 | 114 | 29983 | 233 | 5 | 2 | - 2020-10-01 00:00:02.664 | 2020-10-01 00:00:05.480 | 80 | 24136 | 233 | 4 | 1 | - 2020-10-01 00:00:05.982 | 2020-10-01 00:00:06.660 | 60 | 4626 | 233 | 4 | 1 | - 2020-10-01 00:00:09.690 | 2020-10-01 00:00:09.690 | 61 | 21514 | 233 | 1 | 1 | - 2020-10-01 00:00:10.824 | 2020-10-01 00:00:12.670 | 114 | 29983 | 233 | 5 | 2 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 80 | 32519 | 29 | 1 | 1 | + 2020-10-01 00:00:00.012 | 2020-10-01 00:00:00.900 | 70 | 26112 | 77 | 3 | 1 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.035 | 109 | 3783 | NULL | 5 | 2 | + 2020-10-01 00:00:00.021 | 2020-10-01 00:00:00.035 | 109 | 3783 | NULL | 5 | 2 | + 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.055 | 97 | 1901 | NULL | 2 | 1 | + 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.055 | 97 | 1901 | NULL | 2 | 1 | 2020-10-01 00:00:00.054 | 2020-10-01 00:00:00.870 | 126 | 16650 | 205 | 4 | 2 | - 2020-10-01 00:00:01.782 | 2020-10-01 00:00:08.740 | 113 | 4121 | 205 | 16 | 2 | - 2020-10-01 00:00:13.986 | 2020-10-01 00:00:14.230 | 82 | 21682 | 205 | 2 | 1 | - 2020-10-01 00:00:01.782 | 2020-10-01 00:00:08.740 | 113 | 4121 | 205 | 16 | 2 | - 2020-10-01 00:00:13.986 | 2020-10-01 00:00:14.230 | 82 | 21682 | 205 | 2 | 1 | + 2020-10-01 00:00:00.075 | 2020-10-01 00:00:00.075 | 102 | 3277 | NULL | 1 | 1 | + 2020-10-01 00:00:00.075 | 2020-10-01 00:00:00.075 | 102 | 3277 | NULL | 1 | 1 | + 2020-10-01 00:00:00.084 | 2020-10-01 00:00:03.890 | 67 | 2505 | 92 | 8 | 1 | -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col count_window(10) slimit 10 limit 10; +taos> select _wstart, _wend, count(*) from (select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1) count_window(10) order by 1,2,3 limit 10; + _wstart | _wend | count(*) | +============================================================================ + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.004 | 10 | + 2020-10-01 00:00:00.004 | 2020-10-01 00:00:00.008 | 10 | + 2020-10-01 00:00:00.008 | 2020-10-01 00:00:00.012 | 10 | + 2020-10-01 00:00:00.014 | 2020-10-01 00:00:00.018 | 10 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.022 | 10 | + 2020-10-01 00:00:00.022 | 2020-10-01 00:00:00.026 | 10 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.032 | 10 | + 2020-10-01 00:00:00.032 | 2020-10-01 00:00:00.035 | 10 | + 2020-10-01 00:00:00.035 | 2020-10-01 00:00:00.039 | 10 | + 2020-10-01 00:00:00.040 | 2020-10-01 00:00:00.045 | 10 | + +taos> select _wstart, _wend, count(*) from (select * from test_vtable_select.vtb_virtual_stb partition by tinyint_col order by 1) count_window(10) order by 1,2,3 limit 10; + _wstart | _wend | count(*) | +============================================================================ + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.004 | 10 | + 2020-10-01 00:00:00.004 | 2020-10-01 00:00:00.008 | 10 | + 2020-10-01 00:00:00.008 | 2020-10-01 00:00:00.012 | 10 | + 2020-10-01 00:00:00.014 | 2020-10-01 00:00:00.018 | 10 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.022 | 10 | + 2020-10-01 00:00:00.022 | 2020-10-01 00:00:00.026 | 10 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.032 | 10 | + 2020-10-01 00:00:00.032 | 2020-10-01 00:00:00.035 | 10 | + 2020-10-01 00:00:00.035 | 2020-10-01 00:00:00.039 | 10 | + 2020-10-01 00:00:00.040 | 2020-10-01 00:00:00.045 | 10 | + +taos> select _wstart, _wend, count(*) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3 limit 10; + _wstart | _wend | count(*) | +============================================================================ + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.004 | 10 | + 2020-10-01 00:00:00.004 | 2020-10-01 00:00:00.008 | 10 | + 2020-10-01 00:00:00.008 | 2020-10-01 00:00:00.012 | 10 | + 2020-10-01 00:00:00.014 | 2020-10-01 00:00:00.018 | 10 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.022 | 10 | + 2020-10-01 00:00:00.022 | 2020-10-01 00:00:00.026 | 10 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.032 | 10 | + 2020-10-01 00:00:00.032 | 2020-10-01 00:00:00.035 | 10 | + 2020-10-01 00:00:00.035 | 2020-10-01 00:00:00.039 | 10 | + 2020-10-01 00:00:00.040 | 2020-10-01 00:00:00.045 | 10 | + +taos> select _wstart, _wend, count(*) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3 limit 10; + _wstart | _wend | count(*) | +============================================================================ + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.004 | 10 | + 2020-10-01 00:00:00.004 | 2020-10-01 00:00:00.008 | 10 | + 2020-10-01 00:00:00.008 | 2020-10-01 00:00:00.012 | 10 | + 2020-10-01 00:00:00.014 | 2020-10-01 00:00:00.018 | 10 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.022 | 10 | + 2020-10-01 00:00:00.022 | 2020-10-01 00:00:00.026 | 10 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.032 | 10 | + 2020-10-01 00:00:00.032 | 2020-10-01 00:00:00.035 | 10 | + 2020-10-01 00:00:00.035 | 2020-10-01 00:00:00.039 | 10 | + 2020-10-01 00:00:00.040 | 2020-10-01 00:00:00.045 | 10 | + +taos> select _wstart, _wend, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3,4 limit 10; + _wstart | _wend | count(*) | count(u_int_col) | count(u_tinyint_col) | count(u_smallint_col) | +==================================================================================================================================================== + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.004 | 10 | 3 | 7 | 6 | + 2020-10-01 00:00:00.004 | 2020-10-01 00:00:00.008 | 10 | 3 | 7 | 3 | + 2020-10-01 00:00:00.008 | 2020-10-01 00:00:00.012 | 10 | 3 | 7 | 6 | + 2020-10-01 00:00:00.014 | 2020-10-01 00:00:00.018 | 10 | 3 | 7 | 4 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.022 | 10 | 3 | 7 | 5 | + 2020-10-01 00:00:00.022 | 2020-10-01 00:00:00.026 | 10 | 3 | 7 | 3 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.032 | 10 | 3 | 7 | 6 | + 2020-10-01 00:00:00.032 | 2020-10-01 00:00:00.035 | 10 | 2 | 5 | 3 | + 2020-10-01 00:00:00.035 | 2020-10-01 00:00:00.039 | 10 | 1 | 6 | 6 | + 2020-10-01 00:00:00.040 | 2020-10-01 00:00:00.045 | 10 | 4 | 9 | 4 | + +taos> select _wstart, _wend, count(*), count(u_int_col),count(u_tinyint_col) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3,4 limit 10; + _wstart | _wend | count(*) | count(u_int_col) | count(u_tinyint_col) | +============================================================================================================================ + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.004 | 10 | 3 | 7 | + 2020-10-01 00:00:00.004 | 2020-10-01 00:00:00.008 | 10 | 3 | 7 | + 2020-10-01 00:00:00.008 | 2020-10-01 00:00:00.012 | 10 | 3 | 7 | + 2020-10-01 00:00:00.014 | 2020-10-01 00:00:00.018 | 10 | 3 | 7 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.022 | 10 | 3 | 7 | + 2020-10-01 00:00:00.022 | 2020-10-01 00:00:00.026 | 10 | 3 | 7 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.032 | 10 | 3 | 7 | + 2020-10-01 00:00:00.032 | 2020-10-01 00:00:00.035 | 10 | 2 | 5 | + 2020-10-01 00:00:00.035 | 2020-10-01 00:00:00.039 | 10 | 1 | 6 | + 2020-10-01 00:00:00.040 | 2020-10-01 00:00:00.045 | 10 | 4 | 9 | + +taos> select _wstart, _wend, count(*), count(u_int_col) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3,4 limit 10; + _wstart | _wend | count(*) | count(u_int_col) | +==================================================================================================== + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.004 | 10 | 3 | + 2020-10-01 00:00:00.004 | 2020-10-01 00:00:00.008 | 10 | 3 | + 2020-10-01 00:00:00.008 | 2020-10-01 00:00:00.012 | 10 | 3 | + 2020-10-01 00:00:00.014 | 2020-10-01 00:00:00.018 | 10 | 3 | + 2020-10-01 00:00:00.018 | 2020-10-01 00:00:00.022 | 10 | 3 | + 2020-10-01 00:00:00.022 | 2020-10-01 00:00:00.026 | 10 | 3 | + 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.032 | 10 | 3 | + 2020-10-01 00:00:00.032 | 2020-10-01 00:00:00.035 | 10 | 2 | + 2020-10-01 00:00:00.035 | 2020-10-01 00:00:00.039 | 10 | 1 | + 2020-10-01 00:00:00.040 | 2020-10-01 00:00:00.045 | 10 | 4 | + +taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 10 limit 10; _wstart | _wend | u_tinyint_col | count(*) | ============================================================================================ - 2020-10-01 00:00:00.232 | 2020-10-01 00:00:05.008 | 147 | 10 | - 2020-10-01 00:00:05.356 | 2020-10-01 00:00:11.266 | 147 | 10 | - 2020-10-01 00:00:11.432 | 2020-10-01 00:00:13.980 | 147 | 10 | - 2020-10-01 00:00:14.198 | 2020-10-01 00:00:18.632 | 147 | 10 | - 2020-10-01 00:00:18.774 | 2020-10-01 00:00:02.584 | 147 | 10 | - 2020-10-01 00:00:02.772 | 2020-10-01 00:00:09.930 | 147 | 10 | - 2020-10-01 00:00:10.776 | 2020-10-01 00:00:12.524 | 147 | 10 | - 2020-10-01 00:00:13.532 | 2020-10-01 00:00:15.818 | 147 | 10 | - 2020-10-01 00:00:16.082 | 2020-10-01 00:00:01.602 | 147 | 10 | - 2020-10-01 00:00:01.726 | 2020-10-01 00:00:07.086 | 147 | 10 | - 2020-10-01 00:00:00.008 | 2020-10-01 00:00:08.278 | 74 | 10 | - 2020-10-01 00:00:08.454 | 2020-10-01 00:00:11.846 | 74 | 10 | - 2020-10-01 00:00:11.882 | 2020-10-01 00:00:16.526 | 74 | 10 | - 2020-10-01 00:00:18.266 | 2020-10-01 00:00:07.958 | 74 | 10 | - 2020-10-01 00:00:08.246 | 2020-10-01 00:00:10.890 | 74 | 10 | - 2020-10-01 00:00:11.726 | 2020-10-01 00:00:16.116 | 74 | 10 | - 2020-10-01 00:00:16.214 | 2020-10-01 00:00:04.202 | 74 | 10 | - 2020-10-01 00:00:04.330 | 2020-10-01 00:00:10.626 | 74 | 10 | - 2020-10-01 00:00:10.670 | 2020-10-01 00:00:14.764 | 74 | 10 | - 2020-10-01 00:00:15.074 | 2020-10-01 00:00:19.962 | 74 | 6 | - 2020-10-01 00:00:01.558 | 2020-10-01 00:00:07.734 | 131 | 10 | - 2020-10-01 00:00:07.740 | 2020-10-01 00:00:14.128 | 131 | 10 | - 2020-10-01 00:00:14.474 | 2020-10-01 00:00:01.558 | 131 | 10 | - 2020-10-01 00:00:01.852 | 2020-10-01 00:00:07.740 | 131 | 10 | - 2020-10-01 00:00:07.982 | 2020-10-01 00:00:14.474 | 131 | 10 | - 2020-10-01 00:00:15.036 | 2020-10-01 00:00:01.852 | 131 | 10 | - 2020-10-01 00:00:02.898 | 2020-10-01 00:00:07.982 | 131 | 10 | - 2020-10-01 00:00:09.028 | 2020-10-01 00:00:15.036 | 131 | 10 | - 2020-10-01 00:00:16.806 | 2020-10-01 00:00:19.374 | 131 | 7 | - 2020-10-01 00:00:00.452 | 2020-10-01 00:00:04.760 | 32 | 10 | - 2020-10-01 00:00:05.600 | 2020-10-01 00:00:12.148 | 32 | 10 | - 2020-10-01 00:00:12.260 | 2020-10-01 00:00:18.436 | 32 | 10 | - 2020-10-01 00:00:18.888 | 2020-10-01 00:00:03.516 | 32 | 10 | - 2020-10-01 00:00:03.524 | 2020-10-01 00:00:10.848 | 32 | 10 | - 2020-10-01 00:00:12.136 | 2020-10-01 00:00:17.756 | 32 | 10 | - 2020-10-01 00:00:17.776 | 2020-10-01 00:00:02.412 | 32 | 10 | - 2020-10-01 00:00:03.210 | 2020-10-01 00:00:07.978 | 32 | 10 | - 2020-10-01 00:00:08.196 | 2020-10-01 00:00:15.242 | 32 | 10 | - 2020-10-01 00:00:16.990 | 2020-10-01 00:00:19.120 | 32 | 6 | - 2020-10-01 00:00:00.082 | 2020-10-01 00:00:03.444 | 38 | 10 | - 2020-10-01 00:00:03.654 | 2020-10-01 00:00:09.584 | 38 | 10 | - 2020-10-01 00:00:09.794 | 2020-10-01 00:00:14.410 | 38 | 10 | - 2020-10-01 00:00:14.662 | 2020-10-01 00:00:17.750 | 38 | 10 | - 2020-10-01 00:00:18.068 | 2020-10-01 00:00:00.284 | 38 | 10 | - 2020-10-01 00:00:01.700 | 2020-10-01 00:00:06.262 | 38 | 10 | - 2020-10-01 00:00:07.116 | 2020-10-01 00:00:11.436 | 38 | 10 | - 2020-10-01 00:00:11.784 | 2020-10-01 00:00:15.392 | 38 | 10 | - 2020-10-01 00:00:15.544 | 2020-10-01 00:00:18.642 | 38 | 10 | - 2020-10-01 00:00:19.068 | 2020-10-01 00:00:03.082 | 38 | 10 | - 2020-10-01 00:00:00.584 | 2020-10-01 00:00:04.496 | 107 | 10 | - 2020-10-01 00:00:06.744 | 2020-10-01 00:00:09.960 | 107 | 10 | - 2020-10-01 00:00:10.784 | 2020-10-01 00:00:17.306 | 107 | 10 | - 2020-10-01 00:00:17.338 | 2020-10-01 00:00:00.792 | 107 | 10 | - 2020-10-01 00:00:01.408 | 2020-10-01 00:00:07.266 | 107 | 10 | - 2020-10-01 00:00:07.344 | 2020-10-01 00:00:10.876 | 107 | 10 | - 2020-10-01 00:00:11.740 | 2020-10-01 00:00:17.510 | 107 | 10 | - 2020-10-01 00:00:17.742 | 2020-10-01 00:00:01.552 | 107 | 10 | - 2020-10-01 00:00:01.856 | 2020-10-01 00:00:07.446 | 107 | 10 | - 2020-10-01 00:00:08.002 | 2020-10-01 00:00:12.574 | 107 | 10 | - 2020-10-01 00:00:00.360 | 2020-10-01 00:00:06.506 | 99 | 10 | - 2020-10-01 00:00:06.666 | 2020-10-01 00:00:11.034 | 99 | 10 | - 2020-10-01 00:00:11.046 | 2020-10-01 00:00:13.224 | 99 | 10 | - 2020-10-01 00:00:14.098 | 2020-10-01 00:00:18.380 | 99 | 10 | - 2020-10-01 00:00:18.462 | 2020-10-01 00:00:03.416 | 99 | 10 | - 2020-10-01 00:00:03.784 | 2020-10-01 00:00:07.812 | 99 | 10 | - 2020-10-01 00:00:08.262 | 2020-10-01 00:00:12.270 | 99 | 10 | - 2020-10-01 00:00:12.576 | 2020-10-01 00:00:16.182 | 99 | 10 | - 2020-10-01 00:00:16.532 | 2020-10-01 00:00:19.918 | 99 | 10 | - 2020-10-01 00:00:00.360 | 2020-10-01 00:00:06.506 | 99 | 10 | - 2020-10-01 00:00:00.468 | 2020-10-01 00:00:02.478 | 27 | 10 | - 2020-10-01 00:00:03.812 | 2020-10-01 00:00:08.116 | 27 | 10 | - 2020-10-01 00:00:09.142 | 2020-10-01 00:00:14.842 | 27 | 10 | - 2020-10-01 00:00:15.454 | 2020-10-01 00:00:17.924 | 27 | 10 | - 2020-10-01 00:00:17.960 | 2020-10-01 00:00:00.990 | 27 | 10 | - 2020-10-01 00:00:01.098 | 2020-10-01 00:00:04.624 | 27 | 10 | - 2020-10-01 00:00:04.692 | 2020-10-01 00:00:11.542 | 27 | 10 | - 2020-10-01 00:00:11.764 | 2020-10-01 00:00:16.268 | 27 | 10 | - 2020-10-01 00:00:16.586 | 2020-10-01 00:00:19.992 | 27 | 10 | - 2020-10-01 00:00:00.468 | 2020-10-01 00:00:02.478 | 27 | 10 | - 2020-10-01 00:00:00.794 | 2020-10-01 00:00:06.518 | 236 | 10 | - 2020-10-01 00:00:08.436 | 2020-10-01 00:00:11.838 | 236 | 10 | - 2020-10-01 00:00:12.700 | 2020-10-01 00:00:00.794 | 236 | 10 | - 2020-10-01 00:00:01.788 | 2020-10-01 00:00:08.436 | 236 | 10 | - 2020-10-01 00:00:08.954 | 2020-10-01 00:00:12.700 | 236 | 10 | - 2020-10-01 00:00:12.730 | 2020-10-01 00:00:01.788 | 236 | 10 | - 2020-10-01 00:00:02.216 | 2020-10-01 00:00:08.954 | 236 | 10 | - 2020-10-01 00:00:09.506 | 2020-10-01 00:00:12.730 | 236 | 10 | - 2020-10-01 00:00:14.262 | 2020-10-01 00:00:18.764 | 236 | 7 | - 2020-10-01 00:00:00.244 | 2020-10-01 00:00:05.940 | 28 | 10 | - 2020-10-01 00:00:06.810 | 2020-10-01 00:00:10.728 | 28 | 10 | - 2020-10-01 00:00:10.748 | 2020-10-01 00:00:18.746 | 28 | 10 | - 2020-10-01 00:00:00.244 | 2020-10-01 00:00:05.940 | 28 | 10 | - 2020-10-01 00:00:06.810 | 2020-10-01 00:00:10.728 | 28 | 10 | - 2020-10-01 00:00:10.748 | 2020-10-01 00:00:18.746 | 28 | 10 | - 2020-10-01 00:00:00.244 | 2020-10-01 00:00:05.940 | 28 | 10 | - 2020-10-01 00:00:06.810 | 2020-10-01 00:00:10.728 | 28 | 10 | - 2020-10-01 00:00:10.748 | 2020-10-01 00:00:18.746 | 28 | 10 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 1 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 2 | 12 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 4 | 3 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 5 | 12 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 6 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 7 | 3 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 8 | 9 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 9 | 9 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 11 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 12 | 12 | -taos> select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col count_window(10) slimit 10 limit 10; - _wstart | _wend | tinyint_col | count(*) | -========================================================================================== - 2020-10-01 00:00:01.515 | 2020-10-01 00:00:09.222 | -1 | 10 | - 2020-10-01 00:00:09.396 | 2020-10-01 00:00:17.385 | -1 | 10 | - 2020-10-01 00:00:17.568 | 2020-10-01 00:00:25.878 | -1 | 10 | - 2020-10-01 00:00:25.932 | 2020-10-01 00:00:07.200 | -1 | 10 | - 2020-10-01 00:00:07.383 | 2020-10-01 00:00:14.319 | -1 | 10 | - 2020-10-01 00:00:14.652 | 2020-10-01 00:00:22.719 | -1 | 10 | - 2020-10-01 00:00:22.962 | 2020-10-01 00:00:29.937 | -1 | 8 | - 2020-10-01 00:00:00.993 | 2020-10-01 00:00:10.752 | -109 | 10 | - 2020-10-01 00:00:11.559 | 2020-10-01 00:00:16.995 | -109 | 10 | - 2020-10-01 00:00:17.157 | 2020-10-01 00:00:20.766 | -109 | 10 | - 2020-10-01 00:00:21.012 | 2020-10-01 00:00:23.424 | -109 | 10 | - 2020-10-01 00:00:23.616 | 2020-10-01 00:00:01.488 | -109 | 10 | - 2020-10-01 00:00:01.584 | 2020-10-01 00:00:12.408 | -109 | 10 | - 2020-10-01 00:00:12.786 | 2020-10-01 00:00:17.388 | -109 | 10 | - 2020-10-01 00:00:17.886 | 2020-10-01 00:00:21.495 | -109 | 10 | - 2020-10-01 00:00:22.137 | 2020-10-01 00:00:23.910 | -109 | 10 | - 2020-10-01 00:00:27.147 | 2020-10-01 00:00:29.976 | -109 | 6 | - 2020-10-01 00:00:00.561 | 2020-10-01 00:00:05.766 | 74 | 10 | - 2020-10-01 00:00:05.778 | 2020-10-01 00:00:09.543 | 74 | 10 | - 2020-10-01 00:00:10.815 | 2020-10-01 00:00:16.020 | 74 | 10 | - 2020-10-01 00:00:16.461 | 2020-10-01 00:00:24.798 | 74 | 10 | - 2020-10-01 00:00:24.918 | 2020-10-01 00:00:02.382 | 74 | 10 | - 2020-10-01 00:00:02.871 | 2020-10-01 00:00:07.428 | 74 | 10 | - 2020-10-01 00:00:07.890 | 2020-10-01 00:00:12.951 | 74 | 10 | - 2020-10-01 00:00:13.185 | 2020-10-01 00:00:20.472 | 74 | 10 | - 2020-10-01 00:00:21.150 | 2020-10-01 00:00:27.648 | 74 | 10 | - 2020-10-01 00:00:27.930 | 2020-10-01 00:00:28.944 | 74 | 2 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:05.553 | -125 | 10 | - 2020-10-01 00:00:06.423 | 2020-10-01 00:00:13.563 | -125 | 10 | - 2020-10-01 00:00:14.427 | 2020-10-01 00:00:23.880 | -125 | 10 | - 2020-10-01 00:00:24.309 | 2020-10-01 00:00:28.800 | -125 | 10 | - 2020-10-01 00:00:00.759 | 2020-10-01 00:00:05.553 | -125 | 10 | - 2020-10-01 00:00:06.423 | 2020-10-01 00:00:13.563 | -125 | 10 | - 2020-10-01 00:00:14.427 | 2020-10-01 00:00:23.880 | -125 | 10 | - 2020-10-01 00:00:24.309 | 2020-10-01 00:00:28.800 | -125 | 10 | - 2020-10-01 00:00:01.134 | 2020-10-01 00:00:05.115 | 32 | 10 | - 2020-10-01 00:00:05.346 | 2020-10-01 00:00:14.907 | 32 | 10 | - 2020-10-01 00:00:14.916 | 2020-10-01 00:00:20.646 | 32 | 10 | - 2020-10-01 00:00:20.838 | 2020-10-01 00:00:25.854 | 32 | 10 | - 2020-10-01 00:00:26.439 | 2020-10-01 00:00:02.832 | 32 | 10 | - 2020-10-01 00:00:03.138 | 2020-10-01 00:00:11.217 | 32 | 10 | - 2020-10-01 00:00:11.937 | 2020-10-01 00:00:18.294 | 32 | 10 | - 2020-10-01 00:00:18.309 | 2020-10-01 00:00:23.517 | 32 | 10 | - 2020-10-01 00:00:23.877 | 2020-10-01 00:00:28.158 | 32 | 10 | - 2020-10-01 00:00:00.900 | 2020-10-01 00:00:05.364 | 38 | 10 | - 2020-10-01 00:00:06.447 | 2020-10-01 00:00:15.972 | 38 | 10 | - 2020-10-01 00:00:16.248 | 2020-10-01 00:00:26.589 | 38 | 10 | - 2020-10-01 00:00:26.595 | 2020-10-01 00:00:02.166 | 38 | 10 | - 2020-10-01 00:00:02.649 | 2020-10-01 00:00:09.213 | 38 | 10 | - 2020-10-01 00:00:09.507 | 2020-10-01 00:00:16.866 | 38 | 10 | - 2020-10-01 00:00:21.543 | 2020-10-01 00:00:27.351 | 38 | 10 | - 2020-10-01 00:00:27.564 | 2020-10-01 00:00:28.884 | 38 | 4 | - 2020-10-01 00:00:01.218 | 2020-10-01 00:00:10.842 | 107 | 10 | - 2020-10-01 00:00:10.941 | 2020-10-01 00:00:15.390 | 107 | 10 | - 2020-10-01 00:00:15.891 | 2020-10-01 00:00:19.365 | 107 | 10 | - 2020-10-01 00:00:19.428 | 2020-10-01 00:00:04.185 | 107 | 10 | - 2020-10-01 00:00:04.530 | 2020-10-01 00:00:11.949 | 107 | 10 | - 2020-10-01 00:00:13.164 | 2020-10-01 00:00:17.046 | 107 | 10 | - 2020-10-01 00:00:17.262 | 2020-10-01 00:00:24.276 | 107 | 10 | - 2020-10-01 00:00:27.105 | 2020-10-01 00:00:27.963 | 107 | 2 | - 2020-10-01 00:00:00.813 | 2020-10-01 00:00:04.332 | 99 | 10 | - 2020-10-01 00:00:06.087 | 2020-10-01 00:00:14.040 | 99 | 10 | - 2020-10-01 00:00:15.882 | 2020-10-01 00:00:24.264 | 99 | 10 | - 2020-10-01 00:00:24.747 | 2020-10-01 00:00:01.167 | 99 | 10 | - 2020-10-01 00:00:01.365 | 2020-10-01 00:00:07.041 | 99 | 10 | - 2020-10-01 00:00:07.842 | 2020-10-01 00:00:16.182 | 99 | 10 | - 2020-10-01 00:00:16.644 | 2020-10-01 00:00:24.840 | 99 | 10 | - 2020-10-01 00:00:25.326 | 2020-10-01 00:00:29.445 | 99 | 6 | - 2020-10-01 00:00:01.086 | 2020-10-01 00:00:08.295 | 27 | 10 | - 2020-10-01 00:00:09.852 | 2020-10-01 00:00:16.335 | 27 | 10 | - 2020-10-01 00:00:21.465 | 2020-10-01 00:00:28.923 | 27 | 10 | - 2020-10-01 00:00:29.742 | 2020-10-01 00:00:07.281 | 27 | 10 | - 2020-10-01 00:00:08.295 | 2020-10-01 00:00:13.158 | 27 | 10 | - 2020-10-01 00:00:16.335 | 2020-10-01 00:00:28.140 | 27 | 10 | - 2020-10-01 00:00:28.923 | 2020-10-01 00:00:29.742 | 27 | 2 | - 2020-10-01 00:00:00.981 | 2020-10-01 00:00:04.446 | -20 | 10 | - 2020-10-01 00:00:06.093 | 2020-10-01 00:00:15.672 | -20 | 10 | - 2020-10-01 00:00:16.764 | 2020-10-01 00:00:21.795 | -20 | 10 | - 2020-10-01 00:00:22.455 | 2020-10-01 00:00:01.290 | -20 | 10 | - 2020-10-01 00:00:01.770 | 2020-10-01 00:00:06.252 | -20 | 10 | - 2020-10-01 00:00:06.939 | 2020-10-01 00:00:17.430 | -20 | 10 | - 2020-10-01 00:00:18.966 | 2020-10-01 00:00:22.809 | -20 | 10 | - 2020-10-01 00:00:24.147 | 2020-10-01 00:00:29.979 | -20 | 6 | - -taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; - _wstart | _wend | bool_col | count(*) | -======================================================================================= - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.042 | true | 10 | - 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.096 | true | 10 | - 2020-10-01 00:00:00.108 | 2020-10-01 00:00:00.153 | true | 10 | - 2020-10-01 00:00:00.156 | 2020-10-01 00:00:00.231 | true | 10 | - 2020-10-01 00:00:00.234 | 2020-10-01 00:00:00.285 | true | 10 | - 2020-10-01 00:00:00.288 | 2020-10-01 00:00:00.342 | true | 10 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:00.405 | true | 10 | - 2020-10-01 00:00:00.408 | 2020-10-01 00:00:00.459 | true | 10 | - 2020-10-01 00:00:00.465 | 2020-10-01 00:00:00.522 | true | 10 | - 2020-10-01 00:00:00.537 | 2020-10-01 00:00:00.606 | true | 10 | - 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.066 | false | 10 | - 2020-10-01 00:00:00.072 | 2020-10-01 00:00:00.129 | false | 10 | - 2020-10-01 00:00:00.135 | 2020-10-01 00:00:00.201 | false | 10 | - 2020-10-01 00:00:00.204 | 2020-10-01 00:00:00.246 | false | 10 | - 2020-10-01 00:00:00.249 | 2020-10-01 00:00:00.318 | false | 10 | - 2020-10-01 00:00:00.324 | 2020-10-01 00:00:00.363 | false | 10 | - 2020-10-01 00:00:00.375 | 2020-10-01 00:00:00.432 | false | 10 | - 2020-10-01 00:00:00.435 | 2020-10-01 00:00:00.489 | false | 10 | - 2020-10-01 00:00:00.492 | 2020-10-01 00:00:00.543 | false | 10 | - 2020-10-01 00:00:00.546 | 2020-10-01 00:00:00.588 | false | 10 | - -taos> select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; - _wstart | _wend | bool_col | count(*) | -======================================================================================= - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.042 | true | 10 | - 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.096 | true | 10 | - 2020-10-01 00:00:00.108 | 2020-10-01 00:00:00.153 | true | 10 | - 2020-10-01 00:00:00.156 | 2020-10-01 00:00:00.231 | true | 10 | - 2020-10-01 00:00:00.234 | 2020-10-01 00:00:00.285 | true | 10 | - 2020-10-01 00:00:00.288 | 2020-10-01 00:00:00.342 | true | 10 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:00.405 | true | 10 | - 2020-10-01 00:00:00.408 | 2020-10-01 00:00:00.459 | true | 10 | - 2020-10-01 00:00:00.465 | 2020-10-01 00:00:00.522 | true | 10 | - 2020-10-01 00:00:00.537 | 2020-10-01 00:00:00.606 | true | 10 | - 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.066 | false | 10 | - 2020-10-01 00:00:00.072 | 2020-10-01 00:00:00.129 | false | 10 | - 2020-10-01 00:00:00.135 | 2020-10-01 00:00:00.201 | false | 10 | - 2020-10-01 00:00:00.204 | 2020-10-01 00:00:00.246 | false | 10 | - 2020-10-01 00:00:00.249 | 2020-10-01 00:00:00.318 | false | 10 | - 2020-10-01 00:00:00.324 | 2020-10-01 00:00:00.363 | false | 10 | - 2020-10-01 00:00:00.375 | 2020-10-01 00:00:00.432 | false | 10 | - 2020-10-01 00:00:00.435 | 2020-10-01 00:00:00.489 | false | 10 | - 2020-10-01 00:00:00.492 | 2020-10-01 00:00:00.543 | false | 10 | - 2020-10-01 00:00:00.546 | 2020-10-01 00:00:00.588 | false | 10 | - -taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; - _wstart | _wend | bool_col | count(*) | count(u_int_col) | count(u_tinyint_col) | count(u_smallint_col) | -=============================================================================================================================================================== - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.042 | true | 10 | 3 | 6 | 10 | - 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.096 | true | 10 | 1 | 4 | 10 | - 2020-10-01 00:00:00.108 | 2020-10-01 00:00:00.153 | true | 10 | 2 | 6 | 10 | - 2020-10-01 00:00:00.156 | 2020-10-01 00:00:00.231 | true | 10 | 1 | 4 | 10 | - 2020-10-01 00:00:00.234 | 2020-10-01 00:00:00.285 | true | 10 | 3 | 6 | 10 | - 2020-10-01 00:00:00.288 | 2020-10-01 00:00:00.342 | true | 10 | 1 | 6 | 10 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:00.405 | true | 10 | 3 | 7 | 10 | - 2020-10-01 00:00:00.408 | 2020-10-01 00:00:00.459 | true | 10 | 1 | 5 | 10 | - 2020-10-01 00:00:00.465 | 2020-10-01 00:00:00.522 | true | 10 | 1 | 4 | 10 | - 2020-10-01 00:00:00.537 | 2020-10-01 00:00:00.606 | true | 10 | 2 | 6 | 10 | - 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.066 | false | 10 | 2 | 5 | 10 | - 2020-10-01 00:00:00.072 | 2020-10-01 00:00:00.129 | false | 10 | 2 | 5 | 10 | - 2020-10-01 00:00:00.135 | 2020-10-01 00:00:00.201 | false | 10 | 3 | 5 | 10 | - 2020-10-01 00:00:00.204 | 2020-10-01 00:00:00.246 | false | 10 | 2 | 5 | 10 | - 2020-10-01 00:00:00.249 | 2020-10-01 00:00:00.318 | false | 10 | 2 | 4 | 10 | - 2020-10-01 00:00:00.324 | 2020-10-01 00:00:00.363 | false | 10 | 2 | 3 | 10 | - 2020-10-01 00:00:00.375 | 2020-10-01 00:00:00.432 | false | 10 | 1 | 4 | 10 | - 2020-10-01 00:00:00.435 | 2020-10-01 00:00:00.489 | false | 10 | 3 | 6 | 10 | - 2020-10-01 00:00:00.492 | 2020-10-01 00:00:00.543 | false | 10 | 3 | 5 | 10 | - 2020-10-01 00:00:00.546 | 2020-10-01 00:00:00.588 | false | 10 | 3 | 6 | 10 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.012 | NULL | 10 | 3 | 7 | 5 | - 2020-10-01 00:00:00.014 | 2020-10-01 00:00:00.026 | NULL | 10 | 3 | 7 | 4 | - 2020-10-01 00:00:00.027 | 2020-10-01 00:00:00.039 | NULL | 10 | 2 | 6 | 5 | - 2020-10-01 00:00:00.040 | 2020-10-01 00:00:00.054 | NULL | 10 | 3 | 8 | 5 | - 2020-10-01 00:00:00.055 | 2020-10-01 00:00:00.066 | NULL | 10 | 3 | 6 | 4 | - 2020-10-01 00:00:00.068 | 2020-10-01 00:00:00.081 | NULL | 10 | 3 | 7 | 5 | - 2020-10-01 00:00:00.082 | 2020-10-01 00:00:00.094 | NULL | 10 | 2 | 7 | 4 | - 2020-10-01 00:00:00.095 | 2020-10-01 00:00:00.108 | NULL | 10 | 3 | 7 | 5 | - 2020-10-01 00:00:00.110 | 2020-10-01 00:00:00.122 | NULL | 10 | 3 | 7 | 4 | - 2020-10-01 00:00:00.123 | 2020-10-01 00:00:00.135 | NULL | 10 | 3 | 6 | 5 | - -taos> select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; - _wstart | _wend | bool_col | count(*) | count(u_int_col) | count(u_tinyint_col) | -======================================================================================================================================= - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.042 | true | 10 | 3 | 6 | - 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.096 | true | 10 | 1 | 4 | - 2020-10-01 00:00:00.108 | 2020-10-01 00:00:00.153 | true | 10 | 2 | 6 | - 2020-10-01 00:00:00.156 | 2020-10-01 00:00:00.231 | true | 10 | 1 | 4 | - 2020-10-01 00:00:00.234 | 2020-10-01 00:00:00.285 | true | 10 | 3 | 6 | - 2020-10-01 00:00:00.288 | 2020-10-01 00:00:00.342 | true | 10 | 1 | 6 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:00.405 | true | 10 | 3 | 7 | - 2020-10-01 00:00:00.408 | 2020-10-01 00:00:00.459 | true | 10 | 1 | 5 | - 2020-10-01 00:00:00.465 | 2020-10-01 00:00:00.522 | true | 10 | 1 | 4 | - 2020-10-01 00:00:00.537 | 2020-10-01 00:00:00.606 | true | 10 | 2 | 6 | - 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.066 | false | 10 | 2 | 5 | - 2020-10-01 00:00:00.072 | 2020-10-01 00:00:00.129 | false | 10 | 2 | 5 | - 2020-10-01 00:00:00.135 | 2020-10-01 00:00:00.201 | false | 10 | 3 | 5 | - 2020-10-01 00:00:00.204 | 2020-10-01 00:00:00.246 | false | 10 | 2 | 5 | - 2020-10-01 00:00:00.249 | 2020-10-01 00:00:00.318 | false | 10 | 2 | 4 | - 2020-10-01 00:00:00.324 | 2020-10-01 00:00:00.363 | false | 10 | 2 | 3 | - 2020-10-01 00:00:00.375 | 2020-10-01 00:00:00.432 | false | 10 | 1 | 4 | - 2020-10-01 00:00:00.435 | 2020-10-01 00:00:00.489 | false | 10 | 3 | 6 | - 2020-10-01 00:00:00.492 | 2020-10-01 00:00:00.543 | false | 10 | 3 | 5 | - 2020-10-01 00:00:00.546 | 2020-10-01 00:00:00.588 | false | 10 | 3 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.015 | NULL | 10 | 4 | 8 | - 2020-10-01 00:00:00.016 | 2020-10-01 00:00:00.032 | NULL | 10 | 3 | 9 | - 2020-10-01 00:00:00.034 | 2020-10-01 00:00:00.048 | NULL | 10 | 3 | 8 | - 2020-10-01 00:00:00.050 | 2020-10-01 00:00:00.065 | NULL | 10 | 4 | 8 | - 2020-10-01 00:00:00.066 | 2020-10-01 00:00:00.082 | NULL | 10 | 3 | 9 | - 2020-10-01 00:00:00.084 | 2020-10-01 00:00:00.098 | NULL | 10 | 3 | 8 | - 2020-10-01 00:00:00.100 | 2020-10-01 00:00:00.115 | NULL | 10 | 4 | 8 | - 2020-10-01 00:00:00.116 | 2020-10-01 00:00:00.132 | NULL | 10 | 3 | 9 | - 2020-10-01 00:00:00.134 | 2020-10-01 00:00:00.148 | NULL | 10 | 3 | 8 | - 2020-10-01 00:00:00.150 | 2020-10-01 00:00:00.165 | NULL | 10 | 4 | 8 | - -taos> select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; - _wstart | _wend | bool_col | count(*) | count(u_int_col) | -=============================================================================================================== - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.042 | true | 10 | 3 | - 2020-10-01 00:00:00.051 | 2020-10-01 00:00:00.096 | true | 10 | 1 | - 2020-10-01 00:00:00.108 | 2020-10-01 00:00:00.153 | true | 10 | 2 | - 2020-10-01 00:00:00.156 | 2020-10-01 00:00:00.231 | true | 10 | 1 | - 2020-10-01 00:00:00.234 | 2020-10-01 00:00:00.285 | true | 10 | 3 | - 2020-10-01 00:00:00.288 | 2020-10-01 00:00:00.342 | true | 10 | 1 | - 2020-10-01 00:00:00.348 | 2020-10-01 00:00:00.405 | true | 10 | 3 | - 2020-10-01 00:00:00.408 | 2020-10-01 00:00:00.459 | true | 10 | 1 | - 2020-10-01 00:00:00.465 | 2020-10-01 00:00:00.522 | true | 10 | 1 | - 2020-10-01 00:00:00.537 | 2020-10-01 00:00:00.606 | true | 10 | 2 | - 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.066 | false | 10 | 2 | - 2020-10-01 00:00:00.072 | 2020-10-01 00:00:00.129 | false | 10 | 2 | - 2020-10-01 00:00:00.135 | 2020-10-01 00:00:00.201 | false | 10 | 3 | - 2020-10-01 00:00:00.204 | 2020-10-01 00:00:00.246 | false | 10 | 2 | - 2020-10-01 00:00:00.249 | 2020-10-01 00:00:00.318 | false | 10 | 2 | - 2020-10-01 00:00:00.324 | 2020-10-01 00:00:00.363 | false | 10 | 2 | - 2020-10-01 00:00:00.375 | 2020-10-01 00:00:00.432 | false | 10 | 1 | - 2020-10-01 00:00:00.435 | 2020-10-01 00:00:00.489 | false | 10 | 3 | - 2020-10-01 00:00:00.492 | 2020-10-01 00:00:00.543 | false | 10 | 3 | - 2020-10-01 00:00:00.546 | 2020-10-01 00:00:00.588 | false | 10 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.045 | NULL | 10 | 10 | - 2020-10-01 00:00:00.050 | 2020-10-01 00:00:00.095 | NULL | 10 | 10 | - 2020-10-01 00:00:00.100 | 2020-10-01 00:00:00.145 | NULL | 10 | 10 | - 2020-10-01 00:00:00.150 | 2020-10-01 00:00:00.195 | NULL | 10 | 10 | - 2020-10-01 00:00:00.200 | 2020-10-01 00:00:00.245 | NULL | 10 | 10 | - 2020-10-01 00:00:00.250 | 2020-10-01 00:00:00.295 | NULL | 10 | 10 | - 2020-10-01 00:00:00.300 | 2020-10-01 00:00:00.345 | NULL | 10 | 10 | - 2020-10-01 00:00:00.350 | 2020-10-01 00:00:00.395 | NULL | 10 | 10 | - 2020-10-01 00:00:00.400 | 2020-10-01 00:00:00.445 | NULL | 10 | 10 | - 2020-10-01 00:00:00.450 | 2020-10-01 00:00:00.495 | NULL | 10 | 10 | - -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 10 limit 10; +taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 2 limit 10; _wstart | _wend | u_tinyint_col | count(*) | ============================================================================================ - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 147 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 147 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 147 | 12 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 147 | 6 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 147 | 6 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 147 | 3 | - 2020-10-01 00:00:09.000 | 2020-10-01 00:00:10.000 | 147 | 12 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 147 | 9 | - 2020-10-01 00:00:11.000 | 2020-10-01 00:00:12.000 | 147 | 12 | - 2020-10-01 00:00:12.000 | 2020-10-01 00:00:13.000 | 147 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 74 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 74 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 74 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 74 | 9 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 74 | 3 | - 2020-10-01 00:00:08.000 | 2020-10-01 00:00:09.000 | 74 | 9 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 74 | 21 | - 2020-10-01 00:00:11.000 | 2020-10-01 00:00:12.000 | 74 | 9 | - 2020-10-01 00:00:12.000 | 2020-10-01 00:00:13.000 | 74 | 6 | - 2020-10-01 00:00:13.000 | 2020-10-01 00:00:14.000 | 74 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 131 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 131 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 131 | 3 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 131 | 9 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 131 | 3 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 131 | 12 | - 2020-10-01 00:00:09.000 | 2020-10-01 00:00:10.000 | 131 | 6 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 131 | 6 | - 2020-10-01 00:00:11.000 | 2020-10-01 00:00:12.000 | 131 | 6 | - 2020-10-01 00:00:12.000 | 2020-10-01 00:00:13.000 | 131 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 32 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 32 | 9 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 32 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 32 | 9 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 32 | 3 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 32 | 6 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 32 | 6 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 32 | 6 | - 2020-10-01 00:00:08.000 | 2020-10-01 00:00:09.000 | 32 | 3 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 32 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 38 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 38 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 38 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 38 | 12 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 38 | 6 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 38 | 3 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 38 | 12 | - 2020-10-01 00:00:09.000 | 2020-10-01 00:00:10.000 | 38 | 9 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 38 | 6 | - 2020-10-01 00:00:11.000 | 2020-10-01 00:00:12.000 | 38 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 107 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 107 | 9 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 107 | 6 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 107 | 6 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 107 | 3 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 107 | 3 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 107 | 9 | - 2020-10-01 00:00:08.000 | 2020-10-01 00:00:09.000 | 107 | 15 | - 2020-10-01 00:00:09.000 | 2020-10-01 00:00:10.000 | 107 | 3 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 107 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 99 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 99 | 9 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 99 | 6 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 99 | 3 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 99 | 3 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 99 | 12 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 99 | 9 | - 2020-10-01 00:00:08.000 | 2020-10-01 00:00:09.000 | 99 | 9 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 99 | 3 | - 2020-10-01 00:00:11.000 | 2020-10-01 00:00:12.000 | 99 | 12 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 27 | 15 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 27 | 12 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 27 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 27 | 6 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 27 | 12 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 27 | 3 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 27 | 3 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 27 | 3 | - 2020-10-01 00:00:08.000 | 2020-10-01 00:00:09.000 | 27 | 3 | - 2020-10-01 00:00:09.000 | 2020-10-01 00:00:10.000 | 27 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 236 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 236 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 236 | 6 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 236 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 236 | 6 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 236 | 3 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 236 | 6 | - 2020-10-01 00:00:08.000 | 2020-10-01 00:00:09.000 | 236 | 6 | - 2020-10-01 00:00:09.000 | 2020-10-01 00:00:10.000 | 236 | 6 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 236 | 12 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 28 | 9 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 28 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 28 | 6 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 28 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 28 | 3 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 28 | 6 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 28 | 3 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 28 | 6 | - 2020-10-01 00:00:08.000 | 2020-10-01 00:00:09.000 | 28 | 6 | - 2020-10-01 00:00:09.000 | 2020-10-01 00:00:10.000 | 28 | 9 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 1 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 2 | 12 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 4 | 3 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 5 | 12 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 6 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 7 | 3 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 8 | 9 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 9 | 9 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 11 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 12 | 12 | -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 2 limit 10; +taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 2 limit 5; _wstart | _wend | u_tinyint_col | count(*) | ============================================================================================ - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 147 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 147 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 147 | 12 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 147 | 6 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 147 | 6 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 147 | 3 | - 2020-10-01 00:00:09.000 | 2020-10-01 00:00:10.000 | 147 | 12 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 147 | 9 | - 2020-10-01 00:00:11.000 | 2020-10-01 00:00:12.000 | 147 | 12 | - 2020-10-01 00:00:12.000 | 2020-10-01 00:00:13.000 | 147 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 74 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 74 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 74 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 74 | 9 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 74 | 3 | - 2020-10-01 00:00:08.000 | 2020-10-01 00:00:09.000 | 74 | 9 | - 2020-10-01 00:00:10.000 | 2020-10-01 00:00:11.000 | 74 | 21 | - 2020-10-01 00:00:11.000 | 2020-10-01 00:00:12.000 | 74 | 9 | - 2020-10-01 00:00:12.000 | 2020-10-01 00:00:13.000 | 74 | 6 | - 2020-10-01 00:00:13.000 | 2020-10-01 00:00:14.000 | 74 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 1 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 2 | 12 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 4 | 3 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 5 | 12 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 6 | 6 | -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 2 limit 5; +taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 20 limit 2; _wstart | _wend | u_tinyint_col | count(*) | ============================================================================================ - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 147 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 147 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 147 | 12 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 147 | 6 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 147 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 74 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 74 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 74 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 74 | 9 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 74 | 3 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 1 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 2 | 12 | -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 20 limit 2; +taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 20 limit 5; _wstart | _wend | u_tinyint_col | count(*) | ============================================================================================ - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 147 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 147 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 74 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 74 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 131 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 131 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 32 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 32 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 38 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 38 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 107 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 107 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 99 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 99 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 27 | 15 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 27 | 12 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 236 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 236 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 28 | 9 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 28 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 155 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 155 | 9 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 233 | 15 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 233 | 12 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 205 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 205 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 57 | 9 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 57 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 181 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 181 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 34 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 34 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 176 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 176 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 204 | 9 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 204 | 12 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 247 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 247 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 22 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 22 | 3 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 1 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 2 | 12 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 4 | 3 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 5 | 12 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 6 | 6 | -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 20 limit 5; +taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 10 limit 2; _wstart | _wend | u_tinyint_col | count(*) | ============================================================================================ - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 147 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 147 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 147 | 12 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 147 | 6 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 147 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 74 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 74 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 74 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 74 | 9 | - 2020-10-01 00:00:07.000 | 2020-10-01 00:00:08.000 | 74 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 131 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 131 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 131 | 3 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 131 | 9 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 131 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 32 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 32 | 9 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 32 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 32 | 9 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 32 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 38 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 38 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 38 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 38 | 12 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 38 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 107 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 107 | 9 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 107 | 6 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 107 | 6 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 107 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 99 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 99 | 9 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 99 | 6 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 99 | 3 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 99 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 27 | 15 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 27 | 12 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 27 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 27 | 6 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 27 | 12 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 236 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 236 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 236 | 6 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 236 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 236 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 28 | 9 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 28 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 28 | 6 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 28 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 28 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 155 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 155 | 9 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 155 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 155 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 155 | 15 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 233 | 15 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 233 | 12 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 233 | 3 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 233 | 9 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 233 | 12 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 205 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 205 | 9 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 205 | 15 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 205 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 205 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 57 | 9 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 57 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 57 | 6 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 57 | 9 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 57 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 181 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 181 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 181 | 18 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 181 | 6 | - 2020-10-01 00:00:05.000 | 2020-10-01 00:00:06.000 | 181 | 12 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 34 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 34 | 9 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 34 | 15 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 34 | 12 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 34 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 176 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 176 | 9 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 176 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 176 | 6 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 176 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 204 | 9 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 204 | 12 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 204 | 9 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 204 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 204 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 247 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 247 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 247 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 247 | 3 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 247 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 22 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 22 | 3 | - 2020-10-01 00:00:03.000 | 2020-10-01 00:00:04.000 | 22 | 6 | - 2020-10-01 00:00:04.000 | 2020-10-01 00:00:05.000 | 22 | 15 | - 2020-10-01 00:00:06.000 | 2020-10-01 00:00:07.000 | 22 | 9 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 1 | 6 | + 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 2 | 12 | -taos> select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 10 limit 2; - _wstart | _wend | u_tinyint_col | count(*) | -============================================================================================ - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 147 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 147 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 74 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 74 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 131 | 6 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 131 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 32 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 32 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 38 | 12 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 38 | 6 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 107 | 6 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 107 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 99 | 3 | - 2020-10-01 00:00:02.000 | 2020-10-01 00:00:03.000 | 99 | 9 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 27 | 15 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 27 | 12 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 236 | 3 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 236 | 3 | - 2020-10-01 00:00:00.000 | 2020-10-01 00:00:01.000 | 28 | 9 | - 2020-10-01 00:00:01.000 | 2020-10-01 00:00:02.000 | 28 | 3 | - -taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; +taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; count(*) | ======================== 23333 | 23333 | 23333 | -taos> select int_tag from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; +taos> select int_tag from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; int_tag | ============== - 3 | - 3 | - 3 | - 3 | - 3 | - 3 | - 3 | - 3 | - 3 | - 3 | 0 | 0 | 0 | @@ -2753,92 +784,52 @@ taos> select int_tag from test_vtable_select.vtb_virtual_stb partition by int_ta 0 | 0 | 0 | - 1 | - 1 | - 1 | - 1 | - 1 | - 1 | - 1 | - 1 | - 1 | - 1 | -taos> select int_tag, count(*) from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; +taos> select int_tag, count(*) from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; int_tag | count(*) | ====================================== - 1 | 23333 | 0 | 23333 | + 1 | 23333 | 3 | 23333 | -taos> select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; +taos> select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; avg(u_int_col) | ============================ 1064174999.6801 | 1064174999.6801 | 1064174999.6801 | -taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; +taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; avg(u_tinyint_col) | avg(u_smallint_col) | avg(u_int_col) | avg(u_bigint_col) | avg(tinyint_col) | avg(smallint_col) | avg(int_col) | avg(bigint_col) | avg(float_col) | avg(double_col) | ======================================================================================================================================================================================================================================================================================== + 127.1223 | 33072.8972 | 1064174999.6801 | 1070761472.7482 | -0.1846 | 169.9224 | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | -1822137.86790735 | + 127.1223 | 33072.8972 | 1064174999.6801 | 1070761472.7482 | -0.1846 | 169.9224 | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | -1822137.86790735 | 127.1223 | 33072.8972 | 1064174999.6801 | NULL | NULL | NULL | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | NULL | - 127.1223 | 33072.8972 | 1064174999.6801 | 1070761472.7482 | -0.1846 | 169.9224 | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | -1822137.86790735 | - 127.1223 | 33072.8972 | 1064174999.6801 | 1070761472.7482 | -0.1846 | 169.9224 | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | -1822137.86790735 | -taos> select * from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; +taos> select * from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1, 2, int_tag slimit 10 limit 10; ts | u_tinyint_col | u_smallint_col | u_int_col | u_bigint_col | tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | bool_col | binary_16_col | binary_32_col | nchar_16_col | nchar_32_col | int_tag | bool_tag | float_tag | double_tag | nchar_32_tag | binary_32_tag | ======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== - 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.004 | 1 | NULL | NULL | 514811543 | NULL | NULL | 683409189 | NULL | NULL | 94762575.40613 | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.005 | NULL | NULL | 1273134528 | NULL | NULL | -2199 | NULL | NULL | -31883.6 | NULL | NULL | Santa Clara | NULL | NULL | 森尼韦尔 - Sunnyvale | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.006 | 49 | 51523 | NULL | 654411 | -91 | NULL | -140653792 | -9223372036854775808 | NULL | 4540042.841226 | true | NULL | Shanghai - Los Angles | 六。Campbell | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.008 | 74 | NULL | NULL | 1158746468 | NULL | NULL | -439167365 | NULL | NULL | -16761361.20062 | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.009 | NULL | 4884 | NULL | NULL | 25 | NULL | NULL | -9223372036854775808 | NULL | NULL | true | NULL | NULL | 八。Sunnyvale | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.010 | 11 | NULL | 675749918 | 643987270 | NULL | 18263 | 296030311 | NULL | 70852.8 | -29472170.793985 | NULL | Los Angles | Harbin - Campbell | NULL | 山景城 - Mountain View | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.012 | 77 | 36105 | NULL | 1318736917 | 70 | NULL | -944313433 | -9223372036854775808 | NULL | 18127464.490065 | false | NULL | Shanghai - Los Angles | 七。Mountain | NULL | 3 | false | 3 | 3 | child3 | child3 | 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.004 | 1 | NULL | NULL | 514811543 | NULL | NULL | 683409189 | NULL | NULL | 94762575.40613 | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.005 | NULL | NULL | 1273134528 | NULL | NULL | -2199 | NULL | NULL | -31883.6 | NULL | NULL | Santa Clara | NULL | NULL | 森尼韦尔 - Sunnyvale | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.006 | 49 | 51523 | NULL | 654411 | -91 | NULL | -140653792 | -9223372036854775808 | NULL | 4540042.841226 | true | NULL | Shanghai - Los Angles | 六。Campbell | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.008 | 74 | NULL | NULL | 1158746468 | NULL | NULL | -439167365 | NULL | NULL | -16761361.20062 | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.009 | NULL | 4884 | NULL | NULL | 25 | NULL | NULL | -9223372036854775808 | NULL | NULL | true | NULL | NULL | 八。Sunnyvale | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.010 | 11 | NULL | 675749918 | 643987270 | NULL | 18263 | 296030311 | NULL | 70852.8 | -29472170.793985 | NULL | Los Angles | Harbin - Campbell | NULL | 山景城 - Mountain View | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.012 | 77 | 36105 | NULL | 1318736917 | 70 | NULL | -944313433 | -9223372036854775808 | NULL | 18127464.490065 | false | NULL | Shanghai - Los Angles | 七。Mountain | NULL | 0 | false | 0 | 0 | child0 | child0 | 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | NULL | NULL | NULL | -650873068 | -9223372036854775808 | 99528.7 | NULL | NULL | NULL | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | 2020-10-01 00:00:00.002 | 158 | NULL | NULL | NULL | NULL | NULL | -77824226 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 0 | false | 0 | 0 | child0 | child0 | 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | NULL | NULL | NULL | -9223372036854775808 | NULL | NULL | NULL | NULL | NULL | 三。San Diego | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.004 | 1 | NULL | NULL | NULL | NULL | NULL | 683409189 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.005 | NULL | NULL | 1273134528 | NULL | NULL | NULL | NULL | NULL | -31883.6 | NULL | NULL | NULL | NULL | NULL | 森尼韦尔 - Sunnyvale | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.006 | 49 | 51523 | NULL | NULL | NULL | NULL | -140653792 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 六。Campbell | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.008 | 74 | NULL | NULL | NULL | NULL | NULL | -439167365 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.009 | NULL | 4884 | NULL | NULL | NULL | NULL | NULL | -9223372036854775808 | NULL | NULL | NULL | NULL | NULL | 八。Sunnyvale | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.010 | 11 | NULL | 675749918 | NULL | NULL | NULL | 296030311 | NULL | 70852.8 | NULL | NULL | NULL | Harbin - Campbell | NULL | 山景城 - Mountain View | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.012 | 77 | 36105 | NULL | NULL | NULL | NULL | -944313433 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 七。Mountain | NULL | 1 | false | 1 | 1 | child1 | child1 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.004 | 1 | NULL | NULL | 514811543 | NULL | NULL | 683409189 | NULL | NULL | 94762575.40613 | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | -taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; +taos> select count(*) from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; count(*) | ======================== 23333 | 23333 | 23333 | -taos> select tbname from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; +taos> select tbname from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; tbname | ================================= - vtb_virtual_ctb_half_full | - vtb_virtual_ctb_half_full | - vtb_virtual_ctb_half_full | - vtb_virtual_ctb_half_full | - vtb_virtual_ctb_half_full | - vtb_virtual_ctb_half_full | - vtb_virtual_ctb_half_full | - vtb_virtual_ctb_half_full | - vtb_virtual_ctb_half_full | - vtb_virtual_ctb_half_full | vtb_virtual_ctb_full | vtb_virtual_ctb_full | vtb_virtual_ctb_full | @@ -2849,69 +840,39 @@ taos> select tbname from test_vtable_select.vtb_virtual_stb partition by tbname vtb_virtual_ctb_full | vtb_virtual_ctb_full | vtb_virtual_ctb_full | - vtb_virtual_ctb_mix | - vtb_virtual_ctb_mix | - vtb_virtual_ctb_mix | - vtb_virtual_ctb_mix | - vtb_virtual_ctb_mix | - vtb_virtual_ctb_mix | - vtb_virtual_ctb_mix | - vtb_virtual_ctb_mix | - vtb_virtual_ctb_mix | - vtb_virtual_ctb_mix | -taos> select tbname, count(*) from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; +taos> select tbname, count(*) from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; tbname | count(*) | ========================================================= + vtb_virtual_ctb_full | 23333 | vtb_virtual_ctb_half_full | 23333 | vtb_virtual_ctb_mix | 23333 | - vtb_virtual_ctb_full | 23333 | -taos> select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; +taos> select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; avg(u_int_col) | ============================ 1064174999.6801 | 1064174999.6801 | 1064174999.6801 | -taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; +taos> select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; avg(u_tinyint_col) | avg(u_smallint_col) | avg(u_int_col) | avg(u_bigint_col) | avg(tinyint_col) | avg(smallint_col) | avg(int_col) | avg(bigint_col) | avg(float_col) | avg(double_col) | ======================================================================================================================================================================================================================================================================================== + 127.1223 | 33072.8972 | 1064174999.6801 | 1070761472.7482 | -0.1846 | 169.9224 | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | -1822137.86790735 | + 127.1223 | 33072.8972 | 1064174999.6801 | 1070761472.7482 | -0.1846 | 169.9224 | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | -1822137.86790735 | 127.1223 | 33072.8972 | 1064174999.6801 | NULL | NULL | NULL | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | NULL | - 127.1223 | 33072.8972 | 1064174999.6801 | 1070761472.7482 | -0.1846 | 169.9224 | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | -1822137.86790735 | - 127.1223 | 33072.8972 | 1064174999.6801 | 1070761472.7482 | -0.1846 | 169.9224 | -146132.5514 | -9.22337203685478e+18 | 17.6425190647364 | -1822137.86790735 | -taos> select * from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10 +taos> select * from test_vtable_select.vtb_virtual_stb partition by tbname order by 1, 2, int_tag slimit 10 limit 10 ts | u_tinyint_col | u_smallint_col | u_int_col | u_bigint_col | tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | bool_col | binary_16_col | binary_32_col | nchar_16_col | nchar_32_col | int_tag | bool_tag | float_tag | double_tag | nchar_32_tag | binary_32_tag | ======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== - 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | NULL | NULL | NULL | -650873068 | -9223372036854775808 | 99528.7 | NULL | NULL | NULL | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.002 | 158 | NULL | NULL | NULL | NULL | NULL | -77824226 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | NULL | NULL | NULL | -9223372036854775808 | NULL | NULL | NULL | NULL | NULL | 三。San Diego | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.004 | 1 | NULL | NULL | NULL | NULL | NULL | 683409189 | NULL | NULL | NULL | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.005 | NULL | NULL | 1273134528 | NULL | NULL | NULL | NULL | NULL | -31883.6 | NULL | NULL | NULL | NULL | NULL | 森尼韦尔 - Sunnyvale | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.006 | 49 | 51523 | NULL | NULL | NULL | NULL | -140653792 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 六。Campbell | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.008 | 74 | NULL | NULL | NULL | NULL | NULL | -439167365 | NULL | NULL | NULL | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.009 | NULL | 4884 | NULL | NULL | NULL | NULL | NULL | -9223372036854775808 | NULL | NULL | NULL | NULL | NULL | 八。Sunnyvale | NULL | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.010 | 11 | NULL | 675749918 | NULL | NULL | NULL | 296030311 | NULL | 70852.8 | NULL | NULL | NULL | Harbin - Campbell | NULL | 山景城 - Mountain View | 1 | false | 1 | 1 | child1 | child1 | - 2020-10-01 00:00:00.012 | 77 | 36105 | NULL | NULL | NULL | NULL | -944313433 | -9223372036854775808 | NULL | NULL | NULL | NULL | Shanghai - Los Angles | 七。Mountain | NULL | 1 | false | 1 | 1 | child1 | child1 | 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.004 | 1 | NULL | NULL | 514811543 | NULL | NULL | 683409189 | NULL | NULL | 94762575.40613 | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.005 | NULL | NULL | 1273134528 | NULL | NULL | -2199 | NULL | NULL | -31883.6 | NULL | NULL | Santa Clara | NULL | NULL | 森尼韦尔 - Sunnyvale | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.006 | 49 | 51523 | NULL | 654411 | -91 | NULL | -140653792 | -9223372036854775808 | NULL | 4540042.841226 | true | NULL | Shanghai - Los Angles | 六。Campbell | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.008 | 74 | NULL | NULL | 1158746468 | NULL | NULL | -439167365 | NULL | NULL | -16761361.20062 | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.009 | NULL | 4884 | NULL | NULL | 25 | NULL | NULL | -9223372036854775808 | NULL | NULL | true | NULL | NULL | 八。Sunnyvale | NULL | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.010 | 11 | NULL | 675749918 | 643987270 | NULL | 18263 | 296030311 | NULL | 70852.8 | -29472170.793985 | NULL | Los Angles | Harbin - Campbell | NULL | 山景城 - Mountain View | 0 | false | 0 | 0 | child0 | child0 | - 2020-10-01 00:00:00.012 | 77 | 36105 | NULL | 1318736917 | 70 | NULL | -944313433 | -9223372036854775808 | NULL | 18127464.490065 | false | NULL | Shanghai - Los Angles | 七。Mountain | NULL | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | NULL | NULL | NULL | -650873068 | -9223372036854775808 | 99528.7 | NULL | NULL | NULL | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 1 | false | 1 | 1 | child1 | child1 | 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.002 | 158 | NULL | NULL | NULL | NULL | NULL | -77824226 | NULL | NULL | NULL | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 1 | false | 1 | 1 | child1 | child1 | 2020-10-01 00:00:00.002 | 158 | NULL | NULL | 722563855 | NULL | NULL | -77824226 | NULL | NULL | 34582987.167108 | NULL | NULL | Xian - Sunnyvale | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 0 | false | 0 | 0 | child0 | child0 | + 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | NULL | NULL | NULL | -9223372036854775808 | NULL | NULL | NULL | NULL | NULL | 三。San Diego | NULL | 1 | false | 1 | 1 | child1 | child1 | 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.004 | 1 | NULL | NULL | 514811543 | NULL | NULL | 683409189 | NULL | NULL | 94762575.40613 | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.005 | NULL | NULL | 1273134528 | NULL | NULL | -2199 | NULL | NULL | -31883.6 | NULL | NULL | Santa Clara | NULL | NULL | 森尼韦尔 - Sunnyvale | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.006 | 49 | 51523 | NULL | 654411 | -91 | NULL | -140653792 | -9223372036854775808 | NULL | 4540042.841226 | true | NULL | Shanghai - Los Angles | 六。Campbell | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.008 | 74 | NULL | NULL | 1158746468 | NULL | NULL | -439167365 | NULL | NULL | -16761361.20062 | NULL | NULL | Shanghai - Los Angles | NULL | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.009 | NULL | 4884 | NULL | NULL | 25 | NULL | NULL | -9223372036854775808 | NULL | NULL | true | NULL | NULL | 八。Sunnyvale | NULL | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.010 | 11 | NULL | 675749918 | 643987270 | NULL | 18263 | 296030311 | NULL | 70852.8 | -29472170.793985 | NULL | Los Angles | Harbin - Campbell | NULL | 山景城 - Mountain View | 3 | false | 3 | 3 | child3 | child3 | - 2020-10-01 00:00:00.012 | 77 | 36105 | NULL | 1318736917 | 70 | NULL | -944313433 | -9223372036854775808 | NULL | 18127464.490065 | false | NULL | Shanghai - Los Angles | 七。Mountain | NULL | 3 | false | 3 | 3 | child3 | child3 | + 2020-10-01 00:00:00.004 | 1 | NULL | NULL | 514811543 | NULL | NULL | 683409189 | NULL | NULL | 94762575.40613 | NULL | NULL | Taiyuan - Santa Clara | NULL | NULL | 0 | false | 0 | 0 | child0 | child0 | diff --git a/tests/army/vtable/ans/test_vstable_select_test_state.ans b/tests/army/vtable/ans/test_vstable_select_test_state.ans index 5a7b95e51b..b68e4158c4 100644 --- a/tests/army/vtable/ans/test_vstable_select_test_state.ans +++ b/tests/army/vtable/ans/test_vstable_select_test_state.ans @@ -2,7 +2,6 @@ taos> select _wstart, _wend, first(*), last(*), count(*) from test_vtable_select.vtb_virtual_stb state_window(bool_col) order by _wstart limit 100 ; _wstart | _wend | first(ts) | first(u_tinyint_col) | first(u_smallint_col) | first(u_int_col) | first(u_bigint_col) | first(tinyint_col) | first(smallint_col) | first(int_col) | first(bigint_col) | first(float_col) | first(double_col) | first(bool_col) | first(binary_16_col) | first(binary_32_col) | first(nchar_16_col) | first(nchar_32_col) | last(ts) | last(u_tinyint_col) | last(u_smallint_col) | last(u_int_col) | last(u_bigint_col) | last(tinyint_col) | last(smallint_col) | last(int_col) | last(bigint_col) | last(float_col) | last(double_col) | last(bool_col) | last(binary_16_col) | last(binary_32_col) | last(nchar_16_col) | last(nchar_32_col) | count(*) | ================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== - 1970-01-01 08:00:00.000 | 2020-10-01 00:00:49.995 | 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | NULL | NULL | NULL | -650873068 | -9223372036854775808 | 99528.7 | NULL | NULL | NULL | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 2020-10-01 00:00:45.975 | 183 | 26437 | 1670071451 | NULL | NULL | NULL | -785713543 | -9223372036854775808 | 24230.5 | NULL | NULL | NULL | Taiyuan - Santa Clara | 四。San Jose | 帕洛阿托 - Palo Alto | 0 | 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara | 1 | 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 2020-10-01 00:00:00.003 | NULL | 30154 | NULL | NULL | 44 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 三。San Diego | NULL | 2 | 2020-10-01 00:00:00.006 | 2020-10-01 00:00:00.009 | 2020-10-01 00:00:00.006 | 49 | 51523 | NULL | 654411 | -91 | NULL | -140653792 | -9223372036854775808 | NULL | 4540042.841226 | true | NULL | Shanghai - Los Angles | 六。Campbell | NULL | 2020-10-01 00:00:00.008 | 74 | 51523 | NULL | 1158746468 | -91 | NULL | -439167365 | -9223372036854775808 | NULL | -16761361.20062 | true | NULL | Shanghai - Los Angles | 六。Campbell | NULL | 4 | @@ -102,6 +101,7 @@ taos> select _wstart, _wend, first(*), last(*), count(*) from test_vtable_select 2020-10-01 00:00:00.639 | 2020-10-01 00:00:00.642 | 2020-10-01 00:00:00.639 | 71 | 23769 | 1047447204 | 902724244 | 79 | -15245 | -556439232 | -9223372036854775808 | -14500.9 | 2431931.650446 | true | Palo Alto | Tianjin - Mountain View | 一。San Franc | 圣克拉拉 - Santa Clara | 2020-10-01 00:00:00.640 | 71 | 23769 | 1047447204 | 902724244 | 79 | -15245 | -556439232 | -9223372036854775808 | -14500.9 | 2431931.650446 | true | Palo Alto | Tianjin - Mountain View | 一。San Franc | 圣克拉拉 - Santa Clara | 4 | 2020-10-01 00:00:00.645 | 2020-10-01 00:00:00.645 | 2020-10-01 00:00:00.645 | NULL | 50372 | 1756705093 | NULL | 4 | 11012 | NULL | -9223372036854775808 | -28602.3 | NULL | false | Mountain View | NULL | 二。Los Angle | 圣地亚哥 - San Diego | 2020-10-01 00:00:00.645 | NULL | 50372 | 1756705093 | NULL | 4 | 11012 | NULL | -9223372036854775808 | -28602.3 | NULL | false | Mountain View | NULL | 二。Los Angle | 圣地亚哥 - San Diego | 2 | 2020-10-01 00:00:00.648 | 2020-10-01 00:00:00.648 | 2020-10-01 00:00:00.648 | 36 | 40209 | NULL | 2011281951 | 87 | NULL | 237103738 | -9223372036854775808 | NULL | -60794244.376766 | true | NULL | Taiyuan - Santa Clara | 一。San Franc | NULL | 2020-10-01 00:00:00.648 | 36 | 40209 | NULL | 2011281951 | 87 | NULL | 237103738 | -9223372036854775808 | NULL | -60794244.376766 | true | NULL | Taiyuan - Santa Clara | 一。San Franc | NULL | 2 | + 2020-10-01 00:00:00.651 | 2020-10-01 00:00:00.651 | 2020-10-01 00:00:00.651 | NULL | 24193 | NULL | NULL | -86 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 七。Mountain | NULL | 2020-10-01 00:00:00.651 | NULL | 24193 | NULL | NULL | -86 | NULL | NULL | -9223372036854775808 | NULL | NULL | false | NULL | NULL | 七。Mountain | NULL | 2 | taos> select _wstart, _wend, first(bool_col), last(bool_col), count(bool_col) from test_vtable_select.vtb_virtual_stb state_window(bool_col) order by _wstart limit 100 ; _wstart | _wend | first(bool_col) | last(bool_col) | count(bool_col) | @@ -210,7 +210,6 @@ taos> select _wstart, _wend, first(bool_col), last(bool_col), count(bool_col) fr taos> select _wstart, _wend, first(bool_col), first(u_tinyint_col), last(bool_col), last(u_tinyint_col), count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb state_window(bool_col) order by _wstart limit 100; _wstart | _wend | first(bool_col) | first(u_tinyint_col) | last(bool_col) | last(u_tinyint_col) | count(u_tinyint_col) | ============================================================================================================================================================ - 1970-01-01 08:00:00.000 | 2020-10-01 00:00:19.998 | NULL | 29 | NULL | 137 | 0 | 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | true | 29 | true | 29 | 1 | 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | false | NULL | false | NULL | 0 | 2020-10-01 00:00:00.006 | 2020-10-01 00:00:00.009 | true | 49 | true | 74 | 4 | @@ -310,11 +309,11 @@ taos> select _wstart, _wend, first(bool_col), first(u_tinyint_col), last(bool_co 2020-10-01 00:00:00.639 | 2020-10-01 00:00:00.642 | true | 71 | true | 71 | 2 | 2020-10-01 00:00:00.645 | 2020-10-01 00:00:00.645 | false | NULL | false | NULL | 0 | 2020-10-01 00:00:00.648 | 2020-10-01 00:00:00.648 | true | 36 | true | 36 | 2 | + 2020-10-01 00:00:00.651 | 2020-10-01 00:00:00.651 | false | NULL | false | NULL | 0 | taos> select _wstart, _wend, first(bool_col), first(u_tinyint_col), first(u_smallint_col), last(bool_col), last(u_tinyint_col), last(u_smallint_col), count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb state_window(bool_col) order by _wstart limit 100 ; _wstart | _wend | first(bool_col) | first(u_tinyint_col) | first(u_smallint_col) | last(bool_col) | last(u_tinyint_col) | last(u_smallint_col) | count(u_tinyint_col) | =========================================================================================================================================================================================================== - 1970-01-01 08:00:00.000 | 2020-10-01 00:00:29.997 | NULL | 29 | 13238 | NULL | 72 | 28494 | 0 | 2020-10-01 00:00:00.000 | 2020-10-01 00:00:00.000 | true | 29 | 13238 | true | 29 | 13238 | 1 | 2020-10-01 00:00:00.003 | 2020-10-01 00:00:00.003 | false | NULL | 30154 | false | NULL | 30154 | 0 | 2020-10-01 00:00:00.006 | 2020-10-01 00:00:00.009 | true | 49 | 51523 | true | 74 | 51523 | 4 | @@ -414,4 +413,5 @@ taos> select _wstart, _wend, first(bool_col), first(u_tinyint_col), first(u_smal 2020-10-01 00:00:00.639 | 2020-10-01 00:00:00.642 | true | 71 | 23769 | true | 71 | 23769 | 2 | 2020-10-01 00:00:00.645 | 2020-10-01 00:00:00.645 | false | NULL | 50372 | false | NULL | 50372 | 0 | 2020-10-01 00:00:00.648 | 2020-10-01 00:00:00.648 | true | 36 | 40209 | true | 36 | 40209 | 2 | + 2020-10-01 00:00:00.651 | 2020-10-01 00:00:00.651 | false | NULL | 24193 | false | NULL | 24193 | 0 | diff --git a/tests/army/vtable/in/test_vstable_select_test_function.in b/tests/army/vtable/in/test_vstable_select_test_function.in index 4794ce5897..87f2513f0e 100644 --- a/tests/army/vtable/in/test_vstable_select_test_function.in +++ b/tests/army/vtable/in/test_vstable_select_test_function.in @@ -129,7 +129,6 @@ select avg(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select count(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select count(*) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select elapsed(ts) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; -select leastsquares(int_tag, 0, 1) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select spread(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select stddev(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select sum(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; @@ -150,11 +149,8 @@ select min(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select mode(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select tail(int_tag, 20) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select unique(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; -select csum(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select derivative(int_tag, 5a, 1) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; -select diff(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select irate(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; -select mavg(int_tag, 100) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select statecount(int_tag, "GT", 20) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select stateduration(int_tag, "GT", 20, 1a) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; select twa(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5; \ No newline at end of file diff --git a/tests/army/vtable/in/test_vstable_select_test_partition.in b/tests/army/vtable/in/test_vstable_select_test_partition.in index cbdf59437e..bfa2484c91 100644 --- a/tests/army/vtable/in/test_vstable_select_test_partition.in +++ b/tests/army/vtable/in/test_vstable_select_test_partition.in @@ -1,83 +1,83 @@ -select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; -select u_tinyint_col from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; -select u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; -select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; -select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; -select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col slimit 10 limit 10; +select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; +select u_tinyint_col from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; +select u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; +select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; +select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1 slimit 10 limit 10; +select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1, 2, int_tag slimit 10 limit 10; -select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; -select u_tinyint_col + 1 from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; -select u_tinyint_col + 1, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; -select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; -select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; -select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 slimit 10 limit 10; +select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; +select u_tinyint_col + 1 from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; +select u_tinyint_col + 1, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; +select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; +select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1 slimit 10 limit 10; +select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col + 1 order by 1, 2, int_tag slimit 10 limit 10; -select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; -select u_tinyint_col, tinyint_col from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; -select u_tinyint_col, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; -select avg(u_int_col), avg(tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; -select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; -select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col slimit 10 limit 10; +select count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; +select u_tinyint_col, tinyint_col from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; +select u_tinyint_col, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; +select avg(u_int_col), avg(tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; +select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1 slimit 10 limit 10; +select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col, tinyint_col order by 1, 2, int_tag slimit 10 limit 10; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(10s) slimit 10 limit 10; -select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col interval(10s) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(10s) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) slimit 10 limit 10; +select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(10s) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col interval(10s) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(10s) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by bool_col interval(1d) order by 1,2,3,4 slimit 10 limit 10; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col state_window(bool_col) slimit 10 limit 10; -select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col state_window(bool_col) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col state_window(bool_col) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) slimit 10 limit 10; +select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col state_window(bool_col) order by 1,2,3,4 slimit 10 limit 10; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col session(ts, 10a) slimit 10 limit 10; -select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col session(ts, 10a) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col session(ts, 10a) slimit 10 limit 10; -select _wstart, _wend, tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) slimit 10 limit 10; -select _wstart, _wend, tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) slimit 10 limit 10; -select _wstart, _wend, tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) slimit 10 limit 10; +select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tinyint_col session(ts, 10a) order by 1,2,3,4 slimit 10 limit 10; -select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 slimit 10 limit 10; -select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 slimit 10 limit 10; -select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 slimit 10 limit 10; -select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 slimit 10 limit 10; +select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, first(tinyint_col), last(tinyint_col), u_tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with tinyint_col > 100 order by 1,2,3,4 slimit 10 limit 10; -select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 slimit 10 limit 10; -select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 slimit 10 limit 10; -select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 slimit 10 limit 10; -select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 slimit 10 limit 10; +select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, first(tinyint_col), last(smallint_col), u_tinyint_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col event_window start with tinyint_col > 50 end with smallint_col > 1000 order by 1,2,3,4 slimit 10 limit 10; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col count_window(10) slimit 10 limit 10; -select _wstart, _wend, tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by tinyint_col count_window(10) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*), count(u_int_col),count(u_tinyint_col) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; -select _wstart, _wend, bool_col, count(*), count(u_int_col) from test_vtable_select.vtb_virtual_stb partition by bool_col count_window(10) slimit 10 limit 10; +select _wstart, _wend, count(*) from (select * from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col order by 1) count_window(10) order by 1,2,3 limit 10; +select _wstart, _wend, count(*) from (select * from test_vtable_select.vtb_virtual_stb partition by tinyint_col order by 1) count_window(10) order by 1,2,3 limit 10; +select _wstart, _wend, count(*) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3 limit 10; +select _wstart, _wend, count(*) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3 limit 10; +select _wstart, _wend, count(*), count(u_int_col),count(u_tinyint_col), count(u_smallint_col) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3,4 limit 10; +select _wstart, _wend, count(*), count(u_int_col),count(u_tinyint_col) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3,4 limit 10; +select _wstart, _wend, count(*), count(u_int_col) from (select * from test_vtable_select.vtb_virtual_stb partition by bool_col order by 1) count_window(10) order by 1,2,3,4 limit 10; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 10 limit 10; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 2 limit 10; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 2 limit 5; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 20 limit 2; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 20 limit 5; -select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) slimit 10 limit 2; +select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 10 limit 10; +select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 2 limit 10; +select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 2 limit 5; +select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 20 limit 2; +select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 20 limit 5; +select _wstart, _wend, u_tinyint_col, count(*) from test_vtable_select.vtb_virtual_stb partition by u_tinyint_col interval(1s) order by 1,2,3,4 slimit 10 limit 2; -select count(*) from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; -select int_tag from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; -select int_tag, count(*) from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; -select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; -select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; -select * from test_vtable_select.vtb_virtual_stb partition by int_tag slimit 10 limit 10; +select count(*) from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; +select int_tag from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; +select int_tag, count(*) from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; +select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; +select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1 slimit 10 limit 10; +select * from test_vtable_select.vtb_virtual_stb partition by int_tag order by 1, 2, int_tag slimit 10 limit 10; -select count(*) from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; -select tbname from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; -select tbname, count(*) from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; -select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; -select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; -select * from test_vtable_select.vtb_virtual_stb partition by tbname slimit 10 limit 10; \ No newline at end of file +select count(*) from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; +select tbname from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; +select tbname, count(*) from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; +select avg(u_int_col) from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; +select avg(u_tinyint_col), avg(u_smallint_col), avg(u_int_col), avg(u_bigint_col), avg(tinyint_col), avg(smallint_col), avg(int_col), avg(bigint_col), avg(float_col), avg(double_col) from test_vtable_select.vtb_virtual_stb partition by tbname order by 1 slimit 10 limit 10; +select * from test_vtable_select.vtb_virtual_stb partition by tbname order by 1, 2, int_tag slimit 10 limit 10; \ No newline at end of file diff --git a/tests/army/vtable/test_vtable_alter.py b/tests/army/vtable/test_vtable_alter.py index 3a8c2c9fa0..79df00ae17 100644 --- a/tests/army/vtable/test_vtable_alter.py +++ b/tests/army/vtable/test_vtable_alter.py @@ -328,6 +328,9 @@ class TDTestCase(TBase): # 1.6. change column length when column reference exists tdSql.error("alter vtable vtb_virtual_ntb0 modify column nchar_16_col nchar(32);") + # 1.7. add column with decimal type + tdSql.error("alter vtable vtb_virtual_ntb0 add column extra_decimal decimal(38,38)") + # 2. child table # 2.1. change column reference with wrong type tdSql.error("alter vtable vtb_virtual_ctb0 alter column int_col set vtb_org_child_19.tinyint_col") @@ -343,6 +346,12 @@ class TDTestCase(TBase): tdSql.execute("alter stable vtb_virtual_stb modify column nchar_16_col nchar(32);") tdSql.error("select nchar_16_col from vtb_virtual_ctb0;") + # 3.3. add column with decimal type + tdSql.error("alter stable vtb_virtual_stb add column extra_decimal decimal(38,38)") + + # 3.4. add tag with decimal type + tdSql.error("alter stable vtb_virtual_stb add tag extra_decimal_tag decimal(38,38)") + def run(self): tdLog.debug(f"start to excute {__file__}") diff --git a/tests/army/vtable/test_vtable_auth_alter_drop_child.py b/tests/army/vtable/test_vtable_auth_alter_drop_child.py index 8c2a9089d1..263aadd38a 100644 --- a/tests/army/vtable/test_vtable_auth_alter_drop_child.py +++ b/tests/army/vtable/test_vtable_auth_alter_drop_child.py @@ -58,9 +58,9 @@ class TDTestCase(TBase): if (priv_orgtb != "none"): tdSql.execute(f"grant {priv_orgtb} on test_vctable_auth_alter.test_vtable_auth_org_table_2 to test_vct_user_alter;") - sleep(1) + sleep(2) - tdLog.info(f"priv_db: {priv_db}, priv_tb1: {priv_vtb}, priv_tb2: {priv_orgtb}") + tdLog.info(f"priv_db: {priv_db}, priv_stb: {priv_vtb}, priv_ctb: {priv_orgtb}") testSql.execute("use test_vctable_auth_alter;") if (priv_db == "read"): if (priv_vtb == "write" or priv_vtb == "all"): diff --git a/tests/army/vtable/test_vtable_create.py b/tests/army/vtable/test_vtable_create.py index b3e102e3c5..e2a0bddb82 100644 --- a/tests/army/vtable/test_vtable_create.py +++ b/tests/army/vtable/test_vtable_create.py @@ -702,6 +702,77 @@ class TDTestCase(TBase): "geo_32_col FROM vtb_org_child_18.geo_32_col)" "USING vtb_virtual_stb TAGS (13, false, 13, 13, 'vchild13', 'vchild13')") + # 11. create virtual table using decimal + # 11.1 super table + # 11.1.1 decimal column + tdSql.error(f"CREATE STABLE `vtb_virtual_stb_error` (" + "ts timestamp, " + "u_tinyint_col tinyint unsigned, " + "u_smallint_col smallint unsigned, " + "u_int_col int unsigned, " + "u_bigint_col bigint unsigned, " + "tinyint_col tinyint, " + "smallint_col smallint, " + "int_col int, " + "bigint_col bigint, " + "float_col float, " + "double_col double, " + "bool_col bool, " + "binary_16_col binary(16)," + "binary_32_col binary(32)," + "nchar_16_col nchar(16)," + "nchar_32_col nchar(32)," + "varbinary_16_col varbinary(16)," + "varbinary_32_col varbinary(32)," + "geo_16_col geometry(16)," + "geo_32_col geometry(32)," + "decimal_col decimal(38,38)" + ") TAGS (" + "int_tag int," + "bool_tag bool," + "float_tag float," + "double_tag double," + "nchar_32_tag nchar(32)," + "binary_32_tag binary(32))" + "VIRTUAL 1") + # 11.1.2 decimal tag + tdSql.error(f"CREATE STABLE `vtb_virtual_stb_error` (" + "ts timestamp, " + "u_tinyint_col tinyint unsigned, " + "u_smallint_col smallint unsigned, " + "u_int_col int unsigned, " + "u_bigint_col bigint unsigned, " + "tinyint_col tinyint, " + "smallint_col smallint, " + "int_col int, " + "bigint_col bigint, " + "float_col float, " + "double_col double, " + "bool_col bool, " + "binary_16_col binary(16)," + "binary_32_col binary(32)," + "nchar_16_col nchar(16)," + "nchar_32_col nchar(32)," + "varbinary_16_col varbinary(16)," + "varbinary_32_col varbinary(32)," + "geo_16_col geometry(16)," + "geo_32_col geometry(32)" + ") TAGS (" + "int_tag int," + "bool_tag bool," + "float_tag float," + "double_tag double," + "nchar_32_tag nchar(32)," + "binary_32_tag binary(32))," + "decimal_tag decimal(38,38)" + "VIRTUAL 1") + + # 11.2 virtual normal table + tdSql.error("CREATE VTABLE `error_vtb_virtual_ntb8` (" + "ts timestamp FROM vtb_org_normal_0.ts, " + "u_tinyint_col tinyint unsigned from vtb_org_normal_0.u_tinyint_col, " + "u_smallint_col smallint unsigned from vtb_org_normal_1.u_smallint_col, " + "decimal_col decimal(38,38))") def run(self): tdLog.debug(f"start to excute {__file__}") diff --git a/tests/army/vtable/test_vtable_query.py b/tests/army/vtable/test_vtable_query.py index eb5f781460..678e274347 100644 --- a/tests/army/vtable/test_vtable_query.py +++ b/tests/army/vtable/test_vtable_query.py @@ -257,12 +257,12 @@ class TDTestCase(TBase): #self.test_normal_query("test_vstable_select_test_function") self.test_normal_query("test_vstable_select_test_interval") - #self.test_normal_query("test_vstable_select_test_state") + self.test_normal_query("test_vstable_select_test_state") self.test_normal_query("test_vstable_select_test_session") - #self.test_normal_query("test_vstable_select_test_event") + self.test_normal_query("test_vstable_select_test_event") self.test_normal_query("test_vstable_select_test_count") - #self.test_normal_query("test_vstable_select_test_partition") + self.test_normal_query("test_vstable_select_test_partition") self.test_normal_query("test_vstable_select_test_group") self.test_normal_query("test_vstable_select_test_orderby")