Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837
This commit is contained in:
commit
43390b1c36
|
@ -100,6 +100,9 @@ tests/examples/JDBC/JDBCDemo/.project
|
|||
tests/examples/JDBC/JDBCDemo/.settings/
|
||||
source/libs/parser/inc/sql.*
|
||||
tests/script/tmqResult.txt
|
||||
tests/system-test/case_to_run.txt
|
||||
tests/develop-test/case_to_run.txt
|
||||
tests/scripts/case_to_run.txt
|
||||
tests/tmqResult.txt
|
||||
tests/script/jenkins/basic.txt
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -174,10 +174,14 @@ static void tRSmaInfoHashFreeNode(void *data) {
|
|||
|
||||
if ((pRSmaInfo = *(SRSmaInfo **)data)) {
|
||||
if ((pItem = RSMA_INFO_ITEM((SRSmaInfo *)pRSmaInfo, 0)) && pItem->level) {
|
||||
(void)taosHashRemove(smaMgmt.refHash, &pItem, POINTER_BYTES);
|
||||
if (TSDB_CODE_SUCCESS != taosHashRemove(smaMgmt.refHash, &pItem, POINTER_BYTES)) {
|
||||
smaError("failed to hash remove %s:%d", __FUNCTION__, __LINE__);
|
||||
}
|
||||
}
|
||||
if ((pItem = RSMA_INFO_ITEM((SRSmaInfo *)pRSmaInfo, 1)) && pItem->level) {
|
||||
(void)taosHashRemove(smaMgmt.refHash, &pItem, POINTER_BYTES);
|
||||
if (TSDB_CODE_SUCCESS != taosHashRemove(smaMgmt.refHash, &pItem, POINTER_BYTES)) {
|
||||
smaError("failed to hash remove %s:%d", __FUNCTION__, __LINE__);
|
||||
}
|
||||
}
|
||||
(void)tdFreeRSmaInfo(pRSmaInfo->pSma, pRSmaInfo);
|
||||
}
|
||||
|
|
|
@ -50,10 +50,14 @@ int32_t streamTaskSnapReaderOpen(STQ* pTq, int64_t sver, int64_t ever, SStreamTa
|
|||
}
|
||||
|
||||
STablePair pair1 = {.tbl = pTq->pStreamMeta->pTaskDb, .type = SNAP_DATA_STREAM_TASK};
|
||||
(void)taosArrayPush(pReader->tdbTbList, &pair1);
|
||||
if (NULL == taosArrayPush(pReader->tdbTbList, &pair1)) {
|
||||
TAOS_CHECK_GOTO(terrno, NULL, _err);
|
||||
}
|
||||
|
||||
STablePair pair2 = {.tbl = pTq->pStreamMeta->pCheckpointDb, .type = SNAP_DATA_STREAM_TASK_CHECKPOINT};
|
||||
(void)taosArrayPush(pReader->tdbTbList, &pair2);
|
||||
if (NULL == taosArrayPush(pReader->tdbTbList, &pair2)) {
|
||||
TAOS_CHECK_GOTO(terrno, NULL, _err);
|
||||
}
|
||||
|
||||
pReader->pos = 0;
|
||||
|
||||
|
|
|
@ -679,9 +679,9 @@ int32_t tsdbCacheCommitNoLock(STsdb *pTsdb) {
|
|||
static int32_t tsdbCacheGetValuesFromRocks(STsdb *pTsdb, size_t numKeys, const char *const *ppKeysList,
|
||||
size_t *pKeysListSizes, char ***pppValuesList, size_t **ppValuesListSizes) {
|
||||
char **valuesList = taosMemoryCalloc(numKeys, sizeof(char *));
|
||||
if(!valuesList) return terrno;
|
||||
if (!valuesList) return terrno;
|
||||
size_t *valuesListSizes = taosMemoryCalloc(numKeys, sizeof(size_t));
|
||||
if(!valuesListSizes) {
|
||||
if (!valuesListSizes) {
|
||||
taosMemoryFreeClear(valuesList);
|
||||
return terrno;
|
||||
}
|
||||
|
@ -1178,7 +1178,7 @@ static int32_t tsdbCacheUpdate(STsdb *pTsdb, tb_uid_t suid, tb_uid_t uid, SArray
|
|||
size_t *values_list_sizes = NULL;
|
||||
char **errs = NULL;
|
||||
keys_list = taosMemoryCalloc(num_keys, sizeof(char *));
|
||||
if(!keys_list) {
|
||||
if (!keys_list) {
|
||||
(void)taosThreadMutexUnlock(&pTsdb->lruMutex);
|
||||
return terrno;
|
||||
}
|
||||
|
@ -1692,19 +1692,18 @@ static int32_t tsdbCacheLoadFromRocks(STsdb *pTsdb, tb_uid_t uid, SArray *pLastA
|
|||
goto _exit;
|
||||
}
|
||||
|
||||
SLastCol lastCol = *pLastCol;
|
||||
TAOS_CHECK_EXIT(tsdbCacheReallocSLastCol(&lastCol, NULL));
|
||||
|
||||
LRUStatus status = taosLRUCacheInsert(pCache, &idxKey->key, ROCKS_KEY_LEN, pLastCol, charge, tsdbCacheDeleter,
|
||||
NULL, TAOS_LRU_PRIORITY_LOW, &pTsdb->flushState);
|
||||
if (status != TAOS_LRU_STATUS_OK) {
|
||||
code = -1;
|
||||
}
|
||||
|
||||
SLastCol lastCol = *pLastCol;
|
||||
TAOS_CHECK_EXIT(tsdbCacheReallocSLastCol(&lastCol, NULL));
|
||||
|
||||
taosArraySet(pLastArray, idxKey->idx, &lastCol);
|
||||
taosArrayRemove(remainCols, j);
|
||||
taosArrayRemove(ignoreFromRocks, j);
|
||||
|
||||
} else {
|
||||
++j;
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ int32_t createAggregateOperatorInfo(SOperatorInfo* downstream, SAggPhysiNode* pA
|
|||
SAggOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SAggOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -536,7 +536,7 @@ int32_t doInitAggInfoSup(SAggSupporter* pAggSup, SqlFunctionCtx* pCtx, int32_t n
|
|||
pAggSup->pResultRowHashTable = tSimpleHashInit(100, taosFastHash);
|
||||
|
||||
if (pAggSup->keyBuf == NULL || pAggSup->pResultRowHashTable == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
uint32_t defaultPgsz = 0;
|
||||
|
|
|
@ -107,7 +107,7 @@ int32_t createCacherowsScanOperator(SLastRowScanPhysiNode* pScanNode, SReadHandl
|
|||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ int32_t createCountwindowOperatorInfo(SOperatorInfo* downstream, SPhysiNode* phy
|
|||
SCountWindowOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SCountWindowOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ int32_t createEventwindowOperatorInfo(SOperatorInfo* downstream, SPhysiNode* phy
|
|||
SEventWindowOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SEventWindowOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -408,7 +408,7 @@ int32_t createExchangeOperatorInfo(void* pTransporter, SExchangePhysiNode* pExNo
|
|||
SExchangeInfo* pInfo = taosMemoryCalloc(1, sizeof(SExchangeInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -322,13 +322,13 @@ int32_t prepareDataBlockBuf(SSDataBlock* pDataBlock, SColMatchInfo* pMatchInfo)
|
|||
if (IS_VAR_DATA_TYPE(pItem->dataType.type)) {
|
||||
pBlockInfo->pks[0].pData = taosMemoryCalloc(1, pInfoData->info.bytes);
|
||||
if (pBlockInfo->pks[0].pData == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
pBlockInfo->pks[1].pData = taosMemoryCalloc(1, pInfoData->info.bytes);
|
||||
if (pBlockInfo->pks[1].pData == NULL) {
|
||||
taosMemoryFreeClear(pBlockInfo->pks[0].pData);
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
pBlockInfo->pks[0].nData = pInfoData->info.bytes;
|
||||
|
@ -520,7 +520,6 @@ static EDealRes getColumn(SNode** pNode, void* pContext) {
|
|||
static int32_t createResultData(SDataType* pType, int32_t numOfRows, SScalarParam* pParam) {
|
||||
SColumnInfoData* pColumnData = taosMemoryCalloc(1, sizeof(SColumnInfoData));
|
||||
if (pColumnData == NULL) {
|
||||
terrno = TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
|
@ -759,7 +758,7 @@ int32_t getColInfoResultForGroupby(void* pVnode, SNodeList* group, STableListInf
|
|||
|
||||
keyBuf = taosMemoryCalloc(1, keyLen);
|
||||
if (keyBuf == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
@ -1981,7 +1980,7 @@ static int32_t setSelectValueColumnInfo(SqlFunctionCtx* pCtx, int32_t numOfOutpu
|
|||
SqlFunctionCtx* p = NULL;
|
||||
SqlFunctionCtx** pValCtx = taosMemoryCalloc(numOfOutput, POINTER_BYTES);
|
||||
if (pValCtx == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
SHashObj* pSelectFuncs = taosHashInit(8, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), false, HASH_ENTRY_LOCK);
|
||||
|
|
|
@ -1236,7 +1236,6 @@ int32_t initQueryTableDataCondForTmq(SQueryTableDataCond* pCond, SSnapContext* s
|
|||
if (pCond->colList == NULL || pCond->pSlotList == NULL) {
|
||||
taosMemoryFreeClear(pCond->colList);
|
||||
taosMemoryFreeClear(pCond->pSlotList);
|
||||
terrno = TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
|
|
|
@ -421,7 +421,7 @@ static int32_t doCreateConstantValColumnSMAInfo(SInputColumnInfoData* pInput, SF
|
|||
if (pInput->pData[paramIndex] == NULL) {
|
||||
pInput->pData[paramIndex] = taosMemoryCalloc(1, sizeof(SColumnInfoData));
|
||||
if (pInput->pData[paramIndex] == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
// Set the correct column info (data type and bytes)
|
||||
|
@ -1092,7 +1092,7 @@ int32_t createDataSinkParam(SDataSinkNode* pNode, void** pParam, SExecTaskInfo*
|
|||
case QUERY_NODE_PHYSICAL_PLAN_QUERY_INSERT: {
|
||||
SInserterParam* pInserterParam = taosMemoryCalloc(1, sizeof(SInserterParam));
|
||||
if (NULL == pInserterParam) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
pInserterParam->readHandle = readHandle;
|
||||
|
||||
|
@ -1102,7 +1102,7 @@ int32_t createDataSinkParam(SDataSinkNode* pNode, void** pParam, SExecTaskInfo*
|
|||
case QUERY_NODE_PHYSICAL_PLAN_DELETE: {
|
||||
SDeleterParam* pDeleterParam = taosMemoryCalloc(1, sizeof(SDeleterParam));
|
||||
if (NULL == pDeleterParam) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
SArray* pInfoList = NULL;
|
||||
|
|
|
@ -430,7 +430,7 @@ int32_t createFillOperatorInfo(SOperatorInfo* downstream, SFillPhysiNode* pPhyFi
|
|||
SFillOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SFillOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -1298,7 +1298,7 @@ static int32_t initGroupCacheExecInfo(SOperatorInfo* pOperator) {
|
|||
SGroupCacheOperatorInfo* pInfo = pOperator->info;
|
||||
pInfo->execInfo.pDownstreamBlkNum = taosMemoryCalloc(pOperator->numOfDownstream, sizeof(int64_t));
|
||||
if (NULL == pInfo->execInfo.pDownstreamBlkNum) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
@ -1342,7 +1342,7 @@ static int32_t initGroupCacheDownstreamCtx(SOperatorInfo* pOperator) {
|
|||
SGroupCacheOperatorInfo* pInfo = pOperator->info;
|
||||
pInfo->pDownstreams = taosMemoryCalloc(pOperator->numOfDownstream, sizeof(*pInfo->pDownstreams));
|
||||
if (NULL == pInfo->pDownstreams) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
pInfo->downstreamNum = pOperator->numOfDownstream;
|
||||
|
||||
|
@ -1450,7 +1450,7 @@ int32_t createGroupCacheOperatorInfo(SOperatorInfo** pDownstream, int32_t numOfD
|
|||
SGroupCacheOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SGroupCacheOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pOperator == NULL || pInfo == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ static int32_t initGroupOptrInfo(SArray** pGroupColVals, int32_t* keyLen, char**
|
|||
key.isNull = false;
|
||||
key.pData = taosMemoryCalloc(1, pCol->bytes);
|
||||
if (key.pData == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
void* tmp = taosArrayPush((*pGroupColVals), &key);
|
||||
|
@ -126,7 +126,7 @@ static int32_t initGroupOptrInfo(SArray** pGroupColVals, int32_t* keyLen, char**
|
|||
|
||||
(*keyBuf) = taosMemoryCalloc(1, (*keyLen));
|
||||
if ((*keyBuf) == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
return TSDB_CODE_SUCCESS;
|
||||
|
@ -1675,7 +1675,7 @@ int32_t createStreamPartitionOperatorInfo(SOperatorInfo* downstream, SStreamPart
|
|||
SStreamPartitionOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamPartitionOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -388,7 +388,7 @@ static int32_t hJoinBuildResColsMap(SHJoinOperatorInfo* pInfo, SHashJoinPhysiNod
|
|||
pInfo->pResColNum = pJoinNode->pTargets->length;
|
||||
pInfo->pResColMap = taosMemoryCalloc(pJoinNode->pTargets->length, sizeof(int8_t));
|
||||
if (NULL == pInfo->pResColMap) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
SNode* pNode = NULL;
|
||||
|
@ -1188,7 +1188,7 @@ int32_t createHashJoinOperatorInfo(SOperatorInfo** pDownstream, int32_t numOfDow
|
|||
SHJoinOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SHJoinOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pOperator == NULL || pInfo == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _return;
|
||||
}
|
||||
|
||||
|
|
|
@ -565,7 +565,7 @@ int32_t createMultiwayMergeOperatorInfo(SOperatorInfo** downStreams, size_t numS
|
|||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
SDataBlockDescNode* pDescNode = pPhyNode->pOutputDataBlockDesc;
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ int32_t optrDummyOpenFn(SOperatorInfo* pOperator) {
|
|||
int32_t appendDownstream(SOperatorInfo* p, SOperatorInfo** pDownstream, int32_t num) {
|
||||
p->pDownstream = taosMemoryCalloc(1, num * POINTER_BYTES);
|
||||
if (p->pDownstream == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
memcpy(p->pDownstream, pDownstream, num * POINTER_BYTES);
|
||||
|
@ -826,7 +826,7 @@ int32_t setOperatorParams(struct SOperatorInfo* pOperator, SOperatorParam* pInpu
|
|||
if (NULL == *pppDownstramParam) {
|
||||
*pppDownstramParam = taosMemoryCalloc(pOperator->numOfDownstream, POINTER_BYTES);
|
||||
if (NULL == *pppDownstramParam) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ int32_t createProjectOperatorInfo(SOperatorInfo* downstream, SProjectPhysiNode*
|
|||
SProjectOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SProjectOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -450,7 +450,7 @@ int32_t createIndefinitOutputOperatorInfo(SOperatorInfo* downstream, SPhysiNode*
|
|||
SIndefOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SIndefOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ int32_t doCreateTask(uint64_t queryId, uint64_t taskId, int32_t vgId, EOPTR_EXEC
|
|||
|
||||
SExecTaskInfo* p = taosMemoryCalloc(1, sizeof(SExecTaskInfo));
|
||||
if (p == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
setTaskStatus(p, TASK_NOT_COMPLETED);
|
||||
|
@ -217,6 +217,7 @@ SSchemaWrapper* extractQueriedColumnSchema(SScanPhysiNode* pScanNode) {
|
|||
|
||||
pqSw->pSchema = taosMemoryCalloc(numOfCols + numOfTags, sizeof(SSchema));
|
||||
if (pqSw->pSchema == NULL) {
|
||||
taosMemoryFree(pqSw);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -1450,7 +1450,7 @@ int32_t createTableScanOperatorInfo(STableScanPhysiNode* pTableScanNode, SReadHa
|
|||
STableScanInfo* pInfo = taosMemoryCalloc(1, sizeof(STableScanInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -1549,7 +1549,7 @@ int32_t createTableSeqScanOperatorInfo(void* pReadHandle, SExecTaskInfo* pTaskIn
|
|||
STableScanInfo* pInfo = taosMemoryCalloc(1, sizeof(STableScanInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _end;
|
||||
}
|
||||
|
||||
|
@ -3299,7 +3299,7 @@ int32_t streamScanOperatorEncode(SStreamScanInfo* pInfo, void** pBuff, int32_t*
|
|||
len += encodeSTimeWindowAggSupp(NULL, &pInfo->twAggSup);
|
||||
*pBuff = taosMemoryCalloc(1, len);
|
||||
if (!(*pBuff)) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
}
|
||||
void* buf = *pBuff;
|
||||
|
@ -4035,7 +4035,7 @@ int32_t createRawScanOperatorInfo(SReadHandle* pHandle, SExecTaskInfo* pTaskInfo
|
|||
SStreamRawScanInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamRawScanInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
lino = __LINE__;
|
||||
goto _end;
|
||||
}
|
||||
|
@ -4118,7 +4118,7 @@ void streamScanReleaseState(SOperatorInfo* pOperator) {
|
|||
|
||||
pBuff = taosMemoryCalloc(1, len);
|
||||
if (!pBuff) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
}
|
||||
|
||||
|
@ -4154,7 +4154,7 @@ void streamScanReloadState(SOperatorInfo* pOperator) {
|
|||
|
||||
SUpdateInfo* pUpInfo = taosMemoryCalloc(1, sizeof(SUpdateInfo));
|
||||
if (!pUpInfo) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
}
|
||||
|
||||
|
@ -4231,7 +4231,7 @@ int32_t createStreamScanOperatorInfo(SReadHandle* pHandle, STableScanPhysiNode*
|
|||
const char* idstr = pTaskInfo->id.str;
|
||||
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -4536,7 +4536,6 @@ static void tagScanFreeUidTag(void* p) {
|
|||
static int32_t tagScanCreateResultData(SDataType* pType, int32_t numOfRows, SScalarParam* pParam) {
|
||||
SColumnInfoData* pColumnData = taosMemoryCalloc(1, sizeof(SColumnInfoData));
|
||||
if (pColumnData == NULL) {
|
||||
terrno = TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
|
@ -4945,7 +4944,7 @@ int32_t createTagScanOperatorInfo(SReadHandle* pReadHandle, STagScanPhysiNode* p
|
|||
STagScanInfo* pInfo = taosMemoryCalloc(1, sizeof(STagScanInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -5225,7 +5224,7 @@ static int32_t initSubTablesMergeInfo(STableMergeScanInfo* pInfo) {
|
|||
}
|
||||
STmsSubTablesMergeInfo* pSubTblsInfo = taosMemoryCalloc(1, sizeof(STmsSubTablesMergeInfo));
|
||||
if (pSubTblsInfo == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
pSubTblsInfo->pTsOrderInfo = taosArrayGet(pInfo->pSortInfo, 0);
|
||||
if (!pSubTblsInfo->pTsOrderInfo) {
|
||||
|
@ -5245,7 +5244,7 @@ static int32_t initSubTablesMergeInfo(STableMergeScanInfo* pInfo) {
|
|||
pSubTblsInfo->aInputs = taosMemoryCalloc(pSubTblsInfo->numSubTables, sizeof(STmsSubTableInput));
|
||||
if (pSubTblsInfo->aInputs == NULL) {
|
||||
taosMemoryFree(pSubTblsInfo);
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
int32_t bufPageSize = pInfo->bufPageSize;
|
||||
int32_t inMemSize = (pSubTblsInfo->numSubTables - pSubTblsInfo->numTableBlocksInMem) * bufPageSize;
|
||||
|
@ -6170,7 +6169,7 @@ int32_t createTableMergeScanOperatorInfo(STableScanPhysiNode* pTableScanNode, SR
|
|||
STableMergeScanInfo* pInfo = taosMemoryCalloc(1, sizeof(STableMergeScanInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -6413,7 +6412,7 @@ int32_t createTableCountScanOperatorInfo(SReadHandle* readHandle, STableCountSca
|
|||
STableCountScanOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(STableCountScanOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (!pInfo || !pOperator) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ int32_t createSortOperatorInfo(SOperatorInfo* downstream, SSortPhysiNode* pSortN
|
|||
SSortOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SSortOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ int32_t createSortOperatorInfo(SOperatorInfo* downstream, SSortPhysiNode* pSortN
|
|||
int32_t keyLen;
|
||||
SSortOpGroupIdCalc* pGroupIdCalc = pInfo->pGroupIdCalc = taosMemoryCalloc(1, sizeof(SSortOpGroupIdCalc));
|
||||
if (!pGroupIdCalc) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
SNodeList* pSortColsNodeArr = makeColsNodeArrFromSortKeys(pSortNode->pSortKeys);
|
||||
|
@ -784,7 +784,7 @@ int32_t createGroupSortOperatorInfo(SOperatorInfo* downstream, SGroupSortPhysiNo
|
|||
SGroupSortOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SGroupSortOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -484,7 +484,7 @@ void doStreamCountSaveCheckpoint(SOperatorInfo* pOperator) {
|
|||
int32_t len = doStreamCountEncodeOpState(NULL, 0, pOperator, true);
|
||||
pBuf = taosMemoryCalloc(1, len);
|
||||
if (!pBuf) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
}
|
||||
void* pTmpBuf = pBuf;
|
||||
|
@ -816,7 +816,7 @@ int32_t createStreamCountAggOperatorInfo(SOperatorInfo* downstream, SPhysiNode*
|
|||
SStreamCountAggOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamCountAggOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _error);
|
||||
}
|
||||
|
||||
|
|
|
@ -867,7 +867,7 @@ int32_t createStreamEventAggOperatorInfo(SOperatorInfo* downstream, SPhysiNode*
|
|||
SStreamEventAggOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamEventAggOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -1169,7 +1169,7 @@ static SStreamFillSupporter* initStreamFillSup(SStreamFillPhysiNode* pPhyFillNod
|
|||
int32_t lino = 0;
|
||||
SStreamFillSupporter* pFillSup = taosMemoryCalloc(1, sizeof(SStreamFillSupporter));
|
||||
if (!pFillSup) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
}
|
||||
pFillSup->numOfFillCols = numOfFillCols;
|
||||
|
@ -1222,7 +1222,7 @@ SStreamFillInfo* initStreamFillInfo(SStreamFillSupporter* pFillSup, SSDataBlock*
|
|||
int32_t lino = 0;
|
||||
SStreamFillInfo* pFillInfo = taosMemoryCalloc(1, sizeof(SStreamFillInfo));
|
||||
if (!pFillInfo) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
}
|
||||
|
||||
|
@ -1233,7 +1233,7 @@ SStreamFillInfo* initStreamFillInfo(SStreamFillSupporter* pFillSup, SSDataBlock*
|
|||
pFillInfo->needFill = false;
|
||||
pFillInfo->pLinearInfo = taosMemoryCalloc(1, sizeof(SStreamFillLinearInfo));
|
||||
if (!pFillInfo) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
}
|
||||
|
||||
|
@ -1285,14 +1285,14 @@ SStreamFillInfo* initStreamFillInfo(SStreamFillSupporter* pFillSup, SSDataBlock*
|
|||
pFillSup->type == TSDB_FILL_NULL || pFillSup->type == TSDB_FILL_NULL_F) {
|
||||
pFillInfo->pResRow = taosMemoryCalloc(1, sizeof(SResultRowData));
|
||||
if (!pFillInfo->pResRow) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
}
|
||||
|
||||
pFillInfo->pResRow->key = INT64_MIN;
|
||||
pFillInfo->pResRow->pRowVal = taosMemoryCalloc(1, pFillSup->rowSize);
|
||||
if (!pFillInfo->pResRow->pRowVal) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
}
|
||||
|
||||
|
@ -1371,7 +1371,7 @@ int32_t createStreamFillOperatorInfo(SOperatorInfo* downstream, SStreamFillPhysi
|
|||
SStreamFillOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamFillOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _error);
|
||||
}
|
||||
|
||||
|
|
|
@ -1896,7 +1896,7 @@ int32_t createStreamFinalIntervalOperatorInfo(SOperatorInfo* downstream, SPhysiN
|
|||
SStreamIntervalOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamIntervalOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _error);
|
||||
}
|
||||
|
||||
|
@ -3771,7 +3771,7 @@ int32_t createStreamSessionAggOperatorInfo(SOperatorInfo* downstream, SPhysiNode
|
|||
SStreamSessionAggOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamSessionAggOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -4950,7 +4950,7 @@ int32_t createStreamStateAggOperatorInfo(SOperatorInfo* downstream, SPhysiNode*
|
|||
SStreamStateAggOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamStateAggOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _error);
|
||||
}
|
||||
|
||||
|
@ -5267,7 +5267,7 @@ int32_t createStreamIntervalOperatorInfo(SOperatorInfo* downstream, SPhysiNode*
|
|||
SStreamIntervalOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamIntervalOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
QUERY_CHECK_CODE(code, lino, _error);
|
||||
}
|
||||
|
||||
|
|
|
@ -2236,7 +2236,7 @@ int32_t createSysTableScanOperatorInfo(void* readHandle, SSystemTableScanPhysiNo
|
|||
SSysTableScanInfo* pInfo = taosMemoryCalloc(1, sizeof(SSysTableScanInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
lino = __LINE__;
|
||||
goto _error;
|
||||
}
|
||||
|
@ -2832,7 +2832,6 @@ static int32_t initTableblockDistQueryCond(uint64_t uid, SQueryTableDataCond* pC
|
|||
pCond->colList = taosMemoryCalloc(1, sizeof(SColumnInfo));
|
||||
pCond->pSlotList = taosMemoryMalloc(sizeof(int32_t));
|
||||
if (pCond->colList == NULL || pCond->pSlotList == NULL) {
|
||||
terrno = TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
|
@ -2862,7 +2861,7 @@ int32_t createDataBlockInfoScanOperator(SReadHandle* readHandle, SBlockDistScanP
|
|||
SBlockDistInfo* pInfo = taosMemoryCalloc(1, sizeof(SBlockDistInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
pTaskInfo->code = code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
pTaskInfo->code = code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -652,7 +652,7 @@ static int32_t initGroupKeyKeeper(STimeSliceOperatorInfo* pInfo, SExprSupp* pExp
|
|||
|
||||
pInfo->pPrevGroupKey = taosMemoryCalloc(1, sizeof(SGroupKeys));
|
||||
if (pInfo->pPrevGroupKey == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
return terrno;
|
||||
}
|
||||
|
||||
for (int32_t i = 0; i < pExprSup->numOfExprs; ++i) {
|
||||
|
@ -1112,7 +1112,7 @@ int32_t createTimeSliceOperatorInfo(SOperatorInfo* downstream, SPhysiNode* pPhyN
|
|||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
|
||||
if (pOperator == NULL || pInfo == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -1327,7 +1327,7 @@ int32_t createIntervalOperatorInfo(SOperatorInfo* downstream, SIntervalPhysiNode
|
|||
SIntervalAggOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SIntervalAggOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -1623,7 +1623,7 @@ int32_t createStatewindowOperatorInfo(SOperatorInfo* downstream, SStateWinodwPhy
|
|||
SStateWindowOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SStateWindowOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -1734,7 +1734,7 @@ int32_t createSessionAggOperatorInfo(SOperatorInfo* downstream, SSessionWinodwPh
|
|||
SSessionAggOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SSessionAggOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -2034,7 +2034,7 @@ int32_t createMergeAlignedIntervalOperatorInfo(SOperatorInfo* downstream, SMerge
|
|||
SMergeAlignedIntervalAggOperatorInfo* miaInfo = taosMemoryCalloc(1, sizeof(SMergeAlignedIntervalAggOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (miaInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
@ -2372,7 +2372,7 @@ int32_t createMergeIntervalOperatorInfo(SOperatorInfo* downstream, SMergeInterva
|
|||
SMergeIntervalAggOperatorInfo* pMergeIntervalInfo = taosMemoryCalloc(1, sizeof(SMergeIntervalAggOperatorInfo));
|
||||
SOperatorInfo* pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
|
||||
if (pMergeIntervalInfo == NULL || pOperator == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
goto _error;
|
||||
}
|
||||
|
||||
|
|
|
@ -260,7 +260,7 @@ static int32_t doAddNewBucket(SLHashObj* pHashObj) {
|
|||
SLHashObj* tHashInit(int32_t inMemPages, int32_t pageSize, _hash_fn_t fn, int32_t numOfTuplePerPage) {
|
||||
SLHashObj* pHashObj = taosMemoryCalloc(1, sizeof(SLHashObj));
|
||||
if (pHashObj == NULL) {
|
||||
terrno = TSDB_CODE_OUT_OF_MEMORY;
|
||||
terrno = terrno;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -1357,7 +1357,7 @@ static int32_t createSortMemFile(SSortHandle* pHandle) {
|
|||
int32_t code = TSDB_CODE_SUCCESS;
|
||||
SSortMemFile* pMemFile = taosMemoryCalloc(1, sizeof(SSortMemFile));
|
||||
if (pMemFile == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
code = terrno;
|
||||
}
|
||||
if (code == TSDB_CODE_SUCCESS) {
|
||||
taosGetTmpfilePath(tsTempDir, "sort-ext-mem", pMemFile->memFilePath);
|
||||
|
|
|
@ -409,16 +409,19 @@ static int32_t addNamespace(STranslateContext* pCxt, void* pTable) {
|
|||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
}
|
||||
if (pCxt->currLevel == currTotalLevel) {
|
||||
(void)taosArrayPush(pTables, &pTable);
|
||||
if (NULL == taosArrayPush(pTables, &pTable)) {
|
||||
taosArrayDestroy(pTables);
|
||||
return terrno;
|
||||
}
|
||||
if (hasSameTableAlias(pTables)) {
|
||||
(void)taosArrayDestroy(pTables);
|
||||
taosArrayDestroy(pTables);
|
||||
return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_NOT_UNIQUE_TABLE_ALIAS,
|
||||
"Not unique table/alias: '%s'", ((STableNode*)pTable)->tableAlias);
|
||||
}
|
||||
}
|
||||
if (NULL == taosArrayPush(pCxt->pNsLevel, &pTables)) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
(void)taosArrayDestroy(pTables);
|
||||
taosArrayDestroy(pTables);
|
||||
break;
|
||||
}
|
||||
++currTotalLevel;
|
||||
|
@ -820,7 +823,7 @@ static int32_t resetHighLevelTranslateNamespace(STranslateContext* pCxt) {
|
|||
}
|
||||
|
||||
for (int32_t i = size - 1; i >= pCxt->currLevel; --i) {
|
||||
(void)taosArrayDestroy(taosArrayGetP(pCxt->pNsLevel, i));
|
||||
taosArrayDestroy(taosArrayGetP(pCxt->pNsLevel, i));
|
||||
}
|
||||
taosArrayPopTailBatch(pCxt->pNsLevel, levelNum);
|
||||
|
||||
|
@ -837,9 +840,9 @@ static int32_t resetTranslateNamespace(STranslateContext* pCxt) {
|
|||
if (NULL != pCxt->pNsLevel) {
|
||||
size_t size = taosArrayGetSize(pCxt->pNsLevel);
|
||||
for (size_t i = 0; i < size; ++i) {
|
||||
(void)taosArrayDestroy(taosArrayGetP(pCxt->pNsLevel, i));
|
||||
taosArrayDestroy(taosArrayGetP(pCxt->pNsLevel, i));
|
||||
}
|
||||
(void)taosArrayDestroy(pCxt->pNsLevel);
|
||||
taosArrayDestroy(pCxt->pNsLevel);
|
||||
}
|
||||
pCxt->pNsLevel = taosArrayInit(TARRAY_MIN_SIZE, POINTER_BYTES);
|
||||
if (NULL == pCxt->pNsLevel) {
|
||||
|
@ -852,9 +855,9 @@ static void destroyTranslateContext(STranslateContext* pCxt) {
|
|||
if (NULL != pCxt->pNsLevel) {
|
||||
size_t size = taosArrayGetSize(pCxt->pNsLevel);
|
||||
for (size_t i = 0; i < size; ++i) {
|
||||
(void)taosArrayDestroy(taosArrayGetP(pCxt->pNsLevel, i));
|
||||
taosArrayDestroy(taosArrayGetP(pCxt->pNsLevel, i));
|
||||
}
|
||||
(void)taosArrayDestroy(pCxt->pNsLevel);
|
||||
taosArrayDestroy(pCxt->pNsLevel);
|
||||
}
|
||||
|
||||
if (NULL != pCxt->pCmdMsg) {
|
||||
|
@ -1208,7 +1211,9 @@ static int32_t setColumnInfoByExpr(STempTableNode* pTable, SExprNode* pExpr, SCo
|
|||
SAssociationNode assNode;
|
||||
assNode.pPlace = (SNode**)pColRef;
|
||||
assNode.pAssociationNode = (SNode*)*pColRef;
|
||||
(void)taosArrayPush(pExpr->pAssociation, &assNode);
|
||||
if (NULL == taosArrayPush(pExpr->pAssociation, &assNode)) {
|
||||
return terrno;
|
||||
}
|
||||
|
||||
strcpy(pCol->tableAlias, pTable->table.tableAlias);
|
||||
pCol->isPrimTs = isPrimaryKeyImpl((SNode*)pExpr);
|
||||
|
@ -3882,7 +3887,7 @@ static int32_t setVnodeSysTableVgroupList(STranslateContext* pCxt, SName* pName,
|
|||
if (TSDB_CODE_SUCCESS == code) {
|
||||
code = toVgroupsInfo(pVgs, &pRealTable->pVgroupList);
|
||||
}
|
||||
(void)taosArrayDestroy(pVgs);
|
||||
taosArrayDestroy(pVgs);
|
||||
|
||||
return code;
|
||||
}
|
||||
|
@ -3893,7 +3898,7 @@ static int32_t setDnodeSysTableVgroupList(STranslateContext* pCxt, SName* pName,
|
|||
if (TSDB_CODE_SUCCESS == code) {
|
||||
code = dnodeToVgroupsInfo(pDnodes, &pRealTable->pVgroupList);
|
||||
}
|
||||
(void)taosArrayDestroy(pDnodes);
|
||||
taosArrayDestroy(pDnodes);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
@ -3913,7 +3918,7 @@ static int32_t setSuperTableVgroupList(STranslateContext* pCxt, SName* pName, SR
|
|||
if (TSDB_CODE_SUCCESS == code) {
|
||||
code = toVgroupsInfo(vgroupList, &pRealTable->pVgroupList);
|
||||
}
|
||||
(void)taosArrayDestroy(vgroupList);
|
||||
taosArrayDestroy(vgroupList);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
@ -4033,7 +4038,10 @@ static int32_t setTableTsmas(STranslateContext* pCxt, SName* pName, SRealTableNo
|
|||
}
|
||||
pVgpsInfo->numOfVgroups = 1;
|
||||
pVgpsInfo->vgroups[0] = vgInfo;
|
||||
(void)taosArrayPush(pRealTable->tsmaTargetTbVgInfo, &pVgpsInfo);
|
||||
if (NULL == taosArrayPush(pRealTable->tsmaTargetTbVgInfo, &pVgpsInfo)) {
|
||||
code = terrno;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
@ -4062,7 +4070,10 @@ static int32_t setTableTsmas(STranslateContext* pCxt, SName* pName, SRealTableNo
|
|||
// ignore table not exists error
|
||||
code = TSDB_CODE_SUCCESS;
|
||||
}
|
||||
(void)taosArrayPush(pRealTable->tsmaTargetTbInfo, &ctbInfo);
|
||||
if (NULL == taosArrayPush(pRealTable->tsmaTargetTbInfo, &ctbInfo)) {
|
||||
code = terrno;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6003,20 +6014,28 @@ static int32_t isOperatorEqTbnameCond(STranslateContext* pCxt, SOperatorNode* pO
|
|||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
char* pTableAlias = NULL;
|
||||
if (LIST_LENGTH(pTbnameFunc->pParameterList) == 0) {
|
||||
*ppTableAlias = NULL;
|
||||
} else if (LIST_LENGTH(pTbnameFunc->pParameterList) == 1) {
|
||||
SNode* pQualNode = nodesListGetNode(pTbnameFunc->pParameterList, 0);
|
||||
if (nodeType(pQualNode) != QUERY_NODE_VALUE) return false;
|
||||
SValueNode* pQualValNode = (SValueNode*)pQualNode;
|
||||
*ppTableAlias = pQualValNode->literal;
|
||||
pTableAlias = pQualValNode->literal;
|
||||
} else {
|
||||
*pRet = false;
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
*ppTabNames = taosArrayInit(1, sizeof(void*));
|
||||
if (!*ppTabNames) return TSDB_CODE_OUT_OF_MEMORY;
|
||||
(void)taosArrayPush(*ppTabNames, &(pValueNode->literal));
|
||||
SArray* pTabNames = NULL;
|
||||
pTabNames = taosArrayInit(1, sizeof(void*));
|
||||
if (!pTabNames) {
|
||||
return terrno;
|
||||
}
|
||||
if (NULL == taosArrayPush(pTabNames, &(pValueNode->literal))) {
|
||||
taosArrayDestroy(pTabNames);
|
||||
return terrno;
|
||||
}
|
||||
*ppTableAlias = pTableAlias;
|
||||
*ppTabNames = pTabNames;
|
||||
*pRet = true;
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
@ -6054,7 +6073,11 @@ static int32_t isOperatorTbnameInCond(STranslateContext* pCxt, SOperatorNode* pO
|
|||
*pRet = false;
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
(void)taosArrayPush(*ppTbNames, &((SValueNode*)pValNode)->literal);
|
||||
if (NULL == taosArrayPush(*ppTbNames, &((SValueNode*)pValNode)->literal)) {
|
||||
taosArrayDestroy(*ppTbNames);
|
||||
*ppTbNames = NULL;
|
||||
return terrno;
|
||||
}
|
||||
}
|
||||
*pRet = true;
|
||||
return TSDB_CODE_SUCCESS;
|
||||
|
@ -6082,7 +6105,7 @@ static int32_t findEqCondTbNameInOperatorNode(STranslateContext* pCxt, SNode* pW
|
|||
*pRet = true;
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
(void)taosArrayDestroy(pInfo->aTbnames);
|
||||
taosArrayDestroy(pInfo->aTbnames);
|
||||
pInfo->aTbnames = NULL;
|
||||
}
|
||||
*pRet = false;
|
||||
|
@ -6116,7 +6139,7 @@ static int32_t findEqualCondTbnameInLogicCondAnd(STranslateContext* pCxt, SNode*
|
|||
break;
|
||||
}
|
||||
} else {
|
||||
(void)taosArrayDestroy(info.aTbnames);
|
||||
taosArrayDestroy(info.aTbnames);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6135,7 +6158,7 @@ static int32_t unionEqualCondTbnamesOfSameTable(SArray* aTableTbnames, SEqCondTb
|
|||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
break;
|
||||
}
|
||||
(void)taosArrayDestroy(pInfo->aTbnames);
|
||||
taosArrayDestroy(pInfo->aTbnames);
|
||||
pInfo->aTbnames = NULL;
|
||||
bFoundTable = true;
|
||||
break;
|
||||
|
@ -6175,7 +6198,7 @@ static int32_t findEqualCondTbnameInLogicCondOr(STranslateContext* pCxt, SNode*
|
|||
if (TSDB_CODE_SUCCESS == code && !bAllTbName) {
|
||||
for (int i = 0; i < taosArrayGetSize(aTableTbnames); ++i) {
|
||||
SEqCondTbNameTableInfo* pInfo = taosArrayGet(aTableTbnames, i);
|
||||
(void)taosArrayDestroy(pInfo->aTbnames);
|
||||
taosArrayDestroy(pInfo->aTbnames);
|
||||
pInfo->aTbnames = NULL;
|
||||
}
|
||||
taosArrayClear(aTableTbnames);
|
||||
|
@ -6338,7 +6361,10 @@ static int32_t setEqualTbnameTableVgroups(STranslateContext* pCxt, SSelectStmt*
|
|||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
break;
|
||||
}
|
||||
(void)taosArrayPush(pTbNames, &pNewTbName);
|
||||
if (NULL == taosArrayPush(pTbNames, &pNewTbName)) {
|
||||
code = terrno;
|
||||
break;
|
||||
}
|
||||
sprintf(pNewTbName, "%s.%s_%s", pTsma->dbFName, pTsma->name, pTbName);
|
||||
int32_t len = taosCreateMD5Hash(pNewTbName, strlen(pNewTbName));
|
||||
}
|
||||
|
@ -6349,7 +6375,9 @@ static int32_t setEqualTbnameTableVgroups(STranslateContext* pCxt, SSelectStmt*
|
|||
if (TSDB_CODE_SUCCESS == code) {
|
||||
findVgroupsFromEqualTbname(pCxt, pTbNames, pInfo->pRealTable->table.dbName, numOfVgs, vgsInfo);
|
||||
if (vgsInfo->numOfVgroups != 0) {
|
||||
(void)taosArrayPush(pInfo->pRealTable->tsmaTargetTbVgInfo, &vgsInfo);
|
||||
if (NULL == taosArrayPush(pInfo->pRealTable->tsmaTargetTbVgInfo, &vgsInfo)) {
|
||||
code = terrno;
|
||||
}
|
||||
} else {
|
||||
taosMemoryFree(vgsInfo);
|
||||
}
|
||||
|
@ -6378,9 +6406,9 @@ static int32_t setTableVgroupsFromEqualTbnameCond(STranslateContext* pCxt, SSele
|
|||
}
|
||||
for (int i = 0; i < taosArrayGetSize(aTables); ++i) {
|
||||
SEqCondTbNameTableInfo* pInfo = taosArrayGet(aTables, i);
|
||||
(void)taosArrayDestroy(pInfo->aTbnames);
|
||||
taosArrayDestroy(pInfo->aTbnames);
|
||||
}
|
||||
(void)taosArrayDestroy(aTables);
|
||||
taosArrayDestroy(aTables);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
@ -7980,7 +8008,7 @@ static int32_t columnDefNodeToField(SNodeList* pList, SArray** pArray, bool calB
|
|||
}
|
||||
}
|
||||
if (TSDB_CODE_SUCCESS != code) {
|
||||
(void)taosArrayDestroy(*pArray);
|
||||
taosArrayDestroy(*pArray);
|
||||
*pArray = NULL;
|
||||
}
|
||||
return code;
|
||||
|
@ -8004,7 +8032,11 @@ static int32_t tagDefNodeToField(SNodeList* pList, SArray** pArray, bool calByte
|
|||
if (pCol->sma) {
|
||||
field.flags |= COL_SMA_ON;
|
||||
}
|
||||
(void)taosArrayPush(*pArray, &field);
|
||||
if (NULL == taosArrayPush(*pArray, &field)) {
|
||||
taosArrayDestroy(*pArray);
|
||||
*pArray = NULL;
|
||||
return terrno;
|
||||
}
|
||||
}
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
@ -8746,7 +8778,13 @@ static int32_t buildRollupFuncs(SNodeList* pFuncs, SArray** pArray) {
|
|||
*pArray = taosArrayInit(LIST_LENGTH(pFuncs), TSDB_FUNC_NAME_LEN);
|
||||
if (!*pArray) return TSDB_CODE_OUT_OF_MEMORY;
|
||||
SNode* pNode;
|
||||
FOREACH(pNode, pFuncs) { (void)taosArrayPush(*pArray, ((SFunctionNode*)pNode)->functionName); }
|
||||
FOREACH(pNode, pFuncs) {
|
||||
if (NULL == taosArrayPush(*pArray, ((SFunctionNode*)pNode)->functionName)) {
|
||||
taosArrayDestroy(*pArray);
|
||||
*pArray = NULL;
|
||||
return terrno;
|
||||
}
|
||||
}
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -8911,7 +8949,7 @@ static int32_t buildAlterSuperTableReq(STranslateContext* pCxt, SAlterTableStmt*
|
|||
break;
|
||||
}
|
||||
case TSDB_ALTER_TABLE_ADD_COLUMN_WITH_COMPRESS_OPTION: {
|
||||
(void)taosArrayDestroy(pAlterReq->pFields);
|
||||
taosArrayDestroy(pAlterReq->pFields);
|
||||
|
||||
pAlterReq->pFields = taosArrayInit(1, sizeof(SFieldWithOptions));
|
||||
if (!pAlterReq->pFields) return TSDB_CODE_OUT_OF_MEMORY;
|
||||
|
@ -10678,7 +10716,7 @@ static int32_t adjustOrderOfProjections(STranslateContext* pCxt, SNodeList** ppC
|
|||
}
|
||||
|
||||
if (TSDB_CODE_SUCCESS == code) {
|
||||
(void)taosArrayDestroy(pProjColPos);
|
||||
taosArrayDestroy(pProjColPos);
|
||||
nodesDestroyList(*pProjections);
|
||||
nodesDestroyList(*ppCols);
|
||||
*pProjections = pNewProjections;
|
||||
|
@ -10790,7 +10828,7 @@ static int32_t adjustOrderOfTags(STranslateContext* pCxt, SNodeList* pTags, cons
|
|||
}
|
||||
|
||||
if (TSDB_CODE_SUCCESS == code) {
|
||||
(void)taosArrayDestroy(pTagPos);
|
||||
taosArrayDestroy(pTagPos);
|
||||
nodesDestroyList(*pTagExprs);
|
||||
*pTagExprs = pNewTagExprs;
|
||||
} else {
|
||||
|
@ -13416,7 +13454,7 @@ static void destroyCreateTbReqBatch(void* data) {
|
|||
tdDestroySVCreateTbReq(pTableReq);
|
||||
}
|
||||
|
||||
(void)taosArrayDestroy(pTbBatch->req.pArray);
|
||||
taosArrayDestroy(pTbBatch->req.pArray);
|
||||
}
|
||||
|
||||
int32_t rewriteToVnodeModifyOpStmt(SQuery* pQuery, SArray* pBufArray) {
|
||||
|
@ -13439,7 +13477,7 @@ static void destroyCreateTbReqArray(SArray* pArray) {
|
|||
taosMemoryFreeClear(pVg->pData);
|
||||
taosMemoryFreeClear(pVg);
|
||||
}
|
||||
(void)taosArrayDestroy(pArray);
|
||||
taosArrayDestroy(pArray);
|
||||
}
|
||||
|
||||
static int32_t buildCreateTableDataBlock(int32_t acctId, const SCreateTableStmt* pStmt, const SVgroupInfo* pInfo,
|
||||
|
@ -13528,12 +13566,12 @@ static int32_t addCreateTbReqIntoVgroup(SHashObj* pVgroupHashmap, const char* db
|
|||
if (!tBatch.req.pArray) {
|
||||
code = terrno;
|
||||
} else if (NULL == taosArrayPush(tBatch.req.pArray, &req)) {
|
||||
(void)taosArrayDestroy(tBatch.req.pArray);
|
||||
taosArrayDestroy(tBatch.req.pArray);
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
} else {
|
||||
code = taosHashPut(pVgroupHashmap, &pVgInfo->vgId, sizeof(pVgInfo->vgId), &tBatch, sizeof(tBatch));
|
||||
if (TSDB_CODE_SUCCESS != code) {
|
||||
(void)taosArrayDestroy(tBatch.req.pArray);
|
||||
taosArrayDestroy(tBatch.req.pArray);
|
||||
}
|
||||
}
|
||||
} else { // add to the correct vgroup
|
||||
|
@ -13630,7 +13668,7 @@ static int32_t buildKVRowForBindTags(STranslateContext* pCxt, SCreateSubTableCla
|
|||
taosMemoryFreeClear(p->pData);
|
||||
}
|
||||
}
|
||||
(void)taosArrayDestroy(pTagArray);
|
||||
taosArrayDestroy(pTagArray);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
@ -13693,7 +13731,7 @@ static int32_t buildKVRowForAllTags(STranslateContext* pCxt, SCreateSubTableClau
|
|||
taosMemoryFreeClear(p->pData);
|
||||
}
|
||||
}
|
||||
(void)taosArrayDestroy(pTagArray);
|
||||
taosArrayDestroy(pTagArray);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
@ -13744,7 +13782,7 @@ static int32_t rewriteCreateSubTable(STranslateContext* pCxt, SCreateSubTableCla
|
|||
taosMemoryFree(pTag);
|
||||
}
|
||||
|
||||
(void)taosArrayDestroy(tagName);
|
||||
taosArrayDestroy(tagName);
|
||||
taosMemoryFreeClear(pSuperTableMeta);
|
||||
return code;
|
||||
}
|
||||
|
@ -14151,10 +14189,9 @@ _ERR:
|
|||
return code;
|
||||
}
|
||||
|
||||
static int32_t resetParseFileContext(SParseFileContext* pParFileCxt) {
|
||||
static void resetParseFileContext(SParseFileContext* pParFileCxt) {
|
||||
taosArrayClear(pParFileCxt->aCreateTbData);
|
||||
taosArrayClearEx(pParFileCxt->aTagVals, clearTagValArrayFp);
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
static int32_t createSubTableFromFile(SMsgBuf* pMsgBuf, SParseContext* pParseCxt, SVnodeModifyOpStmt* pModifyStmt) {
|
||||
|
@ -14189,7 +14226,7 @@ static int32_t createSubTableFromFile(SMsgBuf* pMsgBuf, SParseContext* pParseCxt
|
|||
}
|
||||
}
|
||||
|
||||
(void)resetParseFileContext(pModifyStmt->pParFileCxt);
|
||||
resetParseFileContext(pModifyStmt->pParFileCxt);
|
||||
|
||||
return code;
|
||||
}
|
||||
|
@ -14217,7 +14254,7 @@ int32_t serializeVgroupsCreateTableBatch(SHashObj* pVgroupHashmap, SArray** pOut
|
|||
} while (true);
|
||||
|
||||
if (TSDB_CODE_SUCCESS != code) {
|
||||
(void)taosArrayDestroy(pBufArray);
|
||||
taosArrayDestroy(pBufArray);
|
||||
} else {
|
||||
*pOut = pBufArray;
|
||||
}
|
||||
|
@ -14343,14 +14380,14 @@ static int32_t addDropTbReqIntoVgroup(SHashObj* pVgroupHashmap, SVgroupInfo* pVg
|
|||
tBatch.info = *pVgInfo;
|
||||
tBatch.req.pArray = taosArrayInit(TARRAY_MIN_SIZE, sizeof(SVDropTbReq));
|
||||
if (NULL == taosArrayPush(tBatch.req.pArray, pReq)) {
|
||||
(void)taosArrayDestroy(tBatch.req.pArray);
|
||||
taosArrayDestroy(tBatch.req.pArray);
|
||||
tBatch.req.pArray = NULL;
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
code = taosHashPut(pVgroupHashmap, &pVgInfo->vgId, sizeof(pVgInfo->vgId), &tBatch, sizeof(tBatch));
|
||||
if (TSDB_CODE_SUCCESS != code) {
|
||||
(void)taosArrayDestroy(tBatch.req.pArray);
|
||||
taosArrayDestroy(tBatch.req.pArray);
|
||||
tBatch.req.pArray = NULL;
|
||||
return code;
|
||||
}
|
||||
|
@ -14397,7 +14434,7 @@ over:
|
|||
|
||||
static void destroyDropTbReqBatch(void* data) {
|
||||
SVgroupDropTableBatch* pTbBatch = (SVgroupDropTableBatch*)data;
|
||||
(void)taosArrayDestroy(pTbBatch->req.pArray);
|
||||
taosArrayDestroy(pTbBatch->req.pArray);
|
||||
}
|
||||
|
||||
static int32_t serializeVgroupDropTableBatch(SVgroupDropTableBatch* pTbBatch, SArray* pBufArray) {
|
||||
|
@ -14459,7 +14496,7 @@ int32_t serializeVgroupsDropTableBatch(SHashObj* pVgroupHashmap, SArray** pOut)
|
|||
code = serializeVgroupDropTableBatch(pTbBatch, pBufArray);
|
||||
if (TSDB_CODE_SUCCESS != code) {
|
||||
taosHashCancelIterate(pVgroupHashmap, pTbBatch);
|
||||
(void)taosArrayDestroy(pBufArray);
|
||||
taosArrayDestroy(pBufArray);
|
||||
break;
|
||||
}
|
||||
} while (true);
|
||||
|
@ -14537,7 +14574,7 @@ static int32_t rewriteDropTable(STranslateContext* pCxt, SQuery* pQuery) {
|
|||
if (TSDB_CODE_SUCCESS == code) {
|
||||
code = buildCmdMsg(pCxt, TDMT_MND_DROP_TB_WITH_TSMA, (FSerializeFunc)tSerializeSMDropTbsReq, &req);
|
||||
}
|
||||
(void)taosArrayDestroy(req.pVgReqs);
|
||||
taosArrayDestroy(req.pVgReqs);
|
||||
}
|
||||
taosHashCleanup(pVgroupHashmap);
|
||||
return code;
|
||||
|
@ -14902,7 +14939,7 @@ static int32_t buildModifyVnodeArray(STranslateContext* pCxt, SAlterTableStmt* p
|
|||
if (TSDB_CODE_SUCCESS == code) {
|
||||
*pArray = pTmpArray;
|
||||
} else {
|
||||
(void)taosArrayDestroy(pTmpArray);
|
||||
taosArrayDestroy(pTmpArray);
|
||||
}
|
||||
|
||||
return code;
|
||||
|
@ -14920,7 +14957,7 @@ static void destoryAlterTbReq(SVAlterTbReq* pReq) {
|
|||
taosMemoryFreeClear(p->pData);
|
||||
}
|
||||
}
|
||||
(void)taosArrayDestroy(pReq->pTagArray);
|
||||
taosArrayDestroy(pReq->pTagArray);
|
||||
if (pReq->tagFree) tTagFree((STag*)pReq->pTagVal);
|
||||
}
|
||||
|
||||
|
@ -15005,7 +15042,7 @@ static int32_t serializeFlushDb(SArray* pVgs, SArray** pOutput) {
|
|||
for (int32_t i = 0; i < numOfVgs; ++i) {
|
||||
int32_t code = serializeFlushVgroup((SVgroupInfo*)taosArrayGet(pVgs, i), pBufArray);
|
||||
if (TSDB_CODE_SUCCESS != code) {
|
||||
(void)taosArrayDestroy(pBufArray);
|
||||
taosArrayDestroy(pBufArray);
|
||||
return code;
|
||||
}
|
||||
}
|
||||
|
@ -15027,9 +15064,9 @@ static int32_t rewriteFlushDatabase(STranslateContext* pCxt, SQuery* pQuery) {
|
|||
code = rewriteToVnodeModifyOpStmt(pQuery, pBufArray);
|
||||
}
|
||||
if (TSDB_CODE_SUCCESS != code) {
|
||||
(void)taosArrayDestroy(pBufArray);
|
||||
taosArrayDestroy(pBufArray);
|
||||
}
|
||||
(void)taosArrayDestroy(pVgs);
|
||||
taosArrayDestroy(pVgs);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
@ -15662,7 +15699,7 @@ static int32_t toMsgType(ENodeType type) {
|
|||
|
||||
static int32_t setRefreshMeta(STranslateContext* pCxt, SQuery* pQuery) {
|
||||
if (NULL != pCxt->pDbs) {
|
||||
(void)taosArrayDestroy(pQuery->pDbList);
|
||||
taosArrayDestroy(pQuery->pDbList);
|
||||
pQuery->pDbList = taosArrayInit(taosHashGetSize(pCxt->pDbs), TSDB_DB_FNAME_LEN);
|
||||
if (NULL == pQuery->pDbList) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
|
@ -15678,7 +15715,7 @@ static int32_t setRefreshMeta(STranslateContext* pCxt, SQuery* pQuery) {
|
|||
}
|
||||
|
||||
if (NULL != pCxt->pTables) {
|
||||
(void)taosArrayDestroy(pQuery->pTableList);
|
||||
taosArrayDestroy(pQuery->pTableList);
|
||||
pQuery->pTableList = taosArrayInit(taosHashGetSize(pCxt->pTables), sizeof(SName));
|
||||
if (NULL == pQuery->pTableList) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
|
@ -15694,7 +15731,7 @@ static int32_t setRefreshMeta(STranslateContext* pCxt, SQuery* pQuery) {
|
|||
}
|
||||
|
||||
if (NULL != pCxt->pTargetTables) {
|
||||
(void)taosArrayDestroy(pQuery->pTargetTableList);
|
||||
taosArrayDestroy(pQuery->pTargetTableList);
|
||||
pQuery->pTargetTableList = taosArrayInit(taosHashGetSize(pCxt->pTargetTables), sizeof(SName));
|
||||
if (NULL == pQuery->pTargetTableList) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
|
|
|
@ -1706,7 +1706,9 @@ EDealRes fltTreeToGroup(SNode *pNode, void *pContext) {
|
|||
cell = cell->pNext;
|
||||
}
|
||||
|
||||
(void)taosArrayAddAll(ctx->group, preGroup);
|
||||
if (NULL == taosArrayAddAll(ctx->group, preGroup)) {
|
||||
FLT_ERR_JRET(terrno);
|
||||
}
|
||||
|
||||
taosArrayDestroy(preGroup);
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ class TAdapter:
|
|||
"enable" : True
|
||||
},
|
||||
"node_exporter" : {
|
||||
"enable" : True
|
||||
"enable" : False
|
||||
},
|
||||
"prometheus" : {
|
||||
"enable" : True
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
python3 ./test.py -f multi-level/mlevel_basic.py -N 3 -L 3 -D 2
|
||||
python3 ./test.py -f db-encrypt/basic.py
|
||||
python3 ./test.py -f s3/s3Basic.py -N 3
|
||||
python3 ./test.py -f cluster/snapshot.py -N 3 -L 3 -D 2
|
||||
python3 ./test.py -f query/function/test_func_elapsed.py
|
||||
python3 ./test.py -f query/function/concat.py
|
||||
python3 ./test.py -f query/function/cast.py
|
||||
python3 ./test.py -f query/test_join.py
|
||||
python3 ./test.py -f query/test_compare.py
|
||||
python3 ./test.py -f insert/test_column_tag_boundary.py
|
||||
python3 ./test.py -f query/fill/fill_desc.py -N 3 -L 3 -D 2
|
||||
python3 ./test.py -f query/fill/fill_null.py
|
||||
python3 ./test.py -f cluster/incSnapshot.py -N 3
|
||||
python3 ./test.py -f query/query_basic.py -N 3
|
||||
python3 ./test.py -f query/accuracy/test_query_accuracy.py
|
||||
python3 ./test.py -f insert/insert_basic.py -N 3
|
||||
python3 ./test.py -f cluster/splitVgroupByLearner.py -N 3
|
||||
python3 ./test.py -f authorith/authBasic.py -N 3
|
||||
python3 ./test.py -f cmdline/fullopt.py
|
||||
python3 ./test.py -f query/show.py -N 3
|
||||
python3 ./test.py -f alter/alterConfig.py -N 3
|
||||
python3 ./test.py -f query/subquery/subqueryBugs.py -N 3
|
||||
python3 ./test.py -f storage/oneStageComp.py -N 3 -L 3 -D 1
|
||||
python3 ./test.py -f storage/compressBasic.py -N 3
|
||||
python3 ./test.py -f grant/grantBugs.py -N 3
|
||||
python3 ./test.py -f query/queryBugs.py -N 3
|
||||
python3 ./test.py -f tmq/tmqBugs.py -N 3
|
||||
python3 ./test.py -f query/fill/fill_compare_asc_desc.py
|
||||
python3 ./test.py -f query/last/test_last.py
|
|
@ -32,7 +32,9 @@ source_dirs = [
|
|||
|
||||
# List of directories to exclude
|
||||
exclude_dirs = [
|
||||
f"{TD_project_path}/community/source/client/jni"
|
||||
f"{TD_project_path}/community/source/client/jni",
|
||||
f"{TD_project_path}/enterprise/src/plugins/taosx",
|
||||
f"{TD_project_path}/enterprise/src/plugins/explorer",
|
||||
]
|
||||
|
||||
# List of files to exclude
|
||||
|
|
|
@ -5,20 +5,35 @@ parm_path=$(pwd ${parm_path})
|
|||
echo "execute path:${parm_path}"
|
||||
cd ${parm_path}
|
||||
cp cases.task ${case_file}
|
||||
# comment udf and stream case in windows
|
||||
# comment udf and stream and sma case in windows
|
||||
sed -i '/udf/d' ${case_file}
|
||||
sed -i '/Udf/d' ${case_file}
|
||||
sed -i '/stream/d' ${case_file}
|
||||
sed -i '/^$/d' ${case_file}
|
||||
sed -i '$a\%%FINISHED%%' ${case_file}
|
||||
#unsupported case:sma
|
||||
sed -i '/tsim\/sync\/vnodesnapshot-rsma-test.sim/d' ${case_file}
|
||||
sed -i '/tsim\/sma/d' ${case_file}
|
||||
sed -i '/tsim\/tagindex\/sma_and_tag_index.sim/d' ${case_file}
|
||||
#unsupported case:to_char
|
||||
sed -i '/tsim\/query\/sort-pre-cols.sim/d' ${case_file}
|
||||
sed -i '/2-query\/nestedQueryInterval.py/d' ${case_file}
|
||||
#unsupported case:stream
|
||||
sed -i '/database_pre_suf/d' ${case_file}
|
||||
sed -i '/tsma/d' ${case_file}
|
||||
|
||||
|
||||
utest="unit-test"
|
||||
tsimtest="script"
|
||||
systest="system-test"
|
||||
devtest="develop-test"
|
||||
doctest="docs-examples-test"
|
||||
rm -rf win-${utest}.log win-${tsimtest}.log win-${systest}.log win-${devtest}.log win-${doctest}.log
|
||||
rm -rf ${parm_path}/../${utest}/win-test-file ${parm_path}/../${tsimtest}/win-test-file ${parm_path}/../${systest}/win-test-file ${parm_path}/../${devtest}/win-test-file
|
||||
armytest="army"
|
||||
|
||||
rm -rf win-${utest}.log win-${tsimtest}.log win-${systest}.log win-${devtest}.log win-${doctest}.log win-${armytest}.log
|
||||
|
||||
rm -rf ${parm_path}/../${utest}/win-test-file ${parm_path}/../${tsimtest}/win-test-file ${parm_path}/../${systest}/win-test-file ${parm_path}/../${devtest}/win-test-file ${parm_path}/../${doctest}/win-test-file ${parm_path}/../${armytest}/win-test-file
|
||||
|
||||
while read -r line
|
||||
do
|
||||
echo "$line"|grep -q "^#"
|
||||
|
@ -44,6 +59,15 @@ do
|
|||
fi
|
||||
continue
|
||||
fi
|
||||
if [[ "${exec_dir}" == "${armytest}" ]]; then
|
||||
if [[ "${case_cmd}" =~ "pytest.sh" ]]; then
|
||||
case_cmd=$(echo "$case_cmd"|cut -d ' ' -f 2-)
|
||||
echo "${case_cmd}" >> win-${armytest}.log
|
||||
else
|
||||
echo "${case_cmd}" >> win-${armytest}.log
|
||||
fi
|
||||
continue
|
||||
fi
|
||||
if [[ "${exec_dir}" == "${devtest}" ]]; then
|
||||
echo ${case_cmd} >> win-${devtest}.log
|
||||
continue
|
||||
|
@ -57,6 +81,7 @@ mv win-${utest}.log ${parm_path}/../${utest}/win-test-file
|
|||
mv win-${tsimtest}.log ${parm_path}/../${tsimtest}/win-test-file
|
||||
mv win-${systest}.log ${parm_path}/../${systest}/win-test-file
|
||||
mv win-${devtest}.log ${parm_path}/../${devtest}/win-test-file
|
||||
|
||||
mv win-${armytest}.log ${parm_path}/../${armytest}/win-test-file
|
||||
mv win-${doctest}.log ${parm_path}/../${armytest}/win-test-file
|
||||
|
||||
rm -rf ${case_file}
|
||||
|
|
|
@ -979,6 +979,155 @@ class TDCom:
|
|||
for stream_name in stream_name_list:
|
||||
tdSql.execute(f'drop stream if exists {stream_name};')
|
||||
|
||||
|
||||
def check_stream_wal_info(self, wal_info):
|
||||
# This method is defined for the 'info' column of the 'information_schema.ins_stream_tasks'.
|
||||
# Define the regular expression pattern to match the required format
|
||||
# This pattern looks for a number followed by an optional space and then a pair of square brackets
|
||||
# containing two numbers separated by a comma.
|
||||
pattern = r'(\d+)\s*\[(\d+),\s*(\d+)\]'
|
||||
|
||||
# Use the search function from the re module to find a match in the string
|
||||
match = re.search(pattern, wal_info)
|
||||
|
||||
# Check if a match was found
|
||||
if match:
|
||||
# Extract the numbers from the matching groups
|
||||
first_number = int(match.group(1)) # The number before the brackets
|
||||
second_number = int(match.group(3)) # The second number inside the brackets
|
||||
|
||||
# Compare the extracted numbers and return the result
|
||||
if second_number >=5 :
|
||||
if first_number >= second_number-5 and first_number <= second_number:
|
||||
return True
|
||||
elif second_number < 5:
|
||||
if first_number >= second_number-1 and first_number <= second_number:
|
||||
return True
|
||||
|
||||
# If no match was found, or the pattern does not match the expected format, return False
|
||||
return False
|
||||
|
||||
def check_stream_task_status(self, stream_name, vgroups, stream_timeout=None):
|
||||
"""check stream status
|
||||
|
||||
Args:
|
||||
stream_name (str): stream_name
|
||||
vgroups (int): vgroups
|
||||
Returns:
|
||||
str: status
|
||||
"""
|
||||
timeout = self.stream_timeout if stream_timeout is None else stream_timeout
|
||||
|
||||
#check stream task rows
|
||||
sql_task_all = f"select `task_id`,node_id,stream_name,status,info,history_task_id from information_schema.ins_stream_tasks where stream_name='{stream_name}' and `level`='source';"
|
||||
sql_task_status = f"select distinct(status) from information_schema.ins_stream_tasks where stream_name='{stream_name}' and `level`='source';"
|
||||
sql_task_history = f"select distinct(history_task_id) from information_schema.ins_stream_tasks where stream_name='{stream_name}' and `level`='source';"
|
||||
tdSql.query(sql_task_all)
|
||||
tdSql.checkRows(vgroups)
|
||||
|
||||
#check stream task status
|
||||
checktimes = 1
|
||||
check_stream_success = 0
|
||||
vgroup_num = 0
|
||||
while checktimes <= timeout:
|
||||
tdLog.notice(f"checktimes:{checktimes}")
|
||||
try:
|
||||
result_task_alll = tdSql.query(sql_task_all,row_tag=True)
|
||||
result_task_alll_rows = tdSql.query(sql_task_all)
|
||||
result_task_status = tdSql.query(sql_task_status,row_tag=True)
|
||||
result_task_status_rows = tdSql.query(sql_task_status)
|
||||
result_task_history = tdSql.query(sql_task_history,row_tag=True)
|
||||
result_task_history_rows = tdSql.query(sql_task_history)
|
||||
|
||||
tdLog.notice(f"Try to check stream status, check times: {checktimes} and stream task list[{check_stream_success}]")
|
||||
print(f"result_task_status:{result_task_status},result_task_history:{result_task_history},result_task_alll:{result_task_alll}")
|
||||
if result_task_status_rows == 1 and result_task_status ==[('ready',)] :
|
||||
if result_task_history_rows == 1 and result_task_history == [(None,)] :
|
||||
for vgroup_num in range(vgroups):
|
||||
if self.check_stream_wal_info(result_task_alll[vgroup_num][4]) :
|
||||
check_stream_success += 1
|
||||
tdLog.info(f"check stream task list[{check_stream_success}] sucessfully :")
|
||||
else:
|
||||
check_stream_success = 0
|
||||
break
|
||||
|
||||
if check_stream_success == vgroups:
|
||||
break
|
||||
time.sleep(1)
|
||||
checktimes += 1
|
||||
vgroup_num = vgroup_num
|
||||
except Exception as e:
|
||||
tdLog.notice(f"Try to check stream status again, check times: {checktimes}")
|
||||
checktimes += 1
|
||||
tdSql.print_error_frame_info(result_task_alll[vgroup_num],"status is ready,info is finished and history_task_id is NULL",sql_task_all)
|
||||
else:
|
||||
checktimes_end = checktimes - 1
|
||||
tdLog.notice(f"it has spend {checktimes_end} for checking stream task status but it failed")
|
||||
if checktimes_end == timeout:
|
||||
tdSql.print_error_frame_info(result_task_alll[vgroup_num],"status is ready,info is finished and history_task_id is NULL",sql_task_all)
|
||||
|
||||
# def check_stream_task_status(self, stream_name, vgroups, stream_timeout=None):
|
||||
# """check stream status
|
||||
|
||||
# Args:
|
||||
# stream_name (str): stream_name
|
||||
# vgroups (int): vgroups
|
||||
# Returns:
|
||||
# str: status
|
||||
# """
|
||||
# timeout = self.stream_timeout if stream_timeout is None else stream_timeout
|
||||
|
||||
# #check stream task rows
|
||||
# sql_task_all = f"select `task_id`,node_id,stream_name,status,info,history_task_id from information_schema.ins_stream_tasks where stream_name='{stream_name}' and `level`='source';"
|
||||
# sql_task_status = f"select distinct(status) from information_schema.ins_stream_tasks where stream_name='{stream_name}' and `level`='source';"
|
||||
# sql_task_history = f"select distinct(history_task_id) from information_schema.ins_stream_tasks where stream_name='{stream_name}' and `level`='source';"
|
||||
# tdSql.query(sql_task_all)
|
||||
# tdSql.checkRows(vgroups)
|
||||
|
||||
# #check stream task status
|
||||
# checktimes = 1
|
||||
# check_stream_success = 0
|
||||
# vgroup_num = 0
|
||||
# while checktimes <= timeout:
|
||||
# print(f"checktimes:{checktimes}")
|
||||
# try:
|
||||
# result_task_alll = tdSql.query(sql_task_all,row_tag=True)
|
||||
# result_task_alll_rows = tdSql.query(sql_task_all)
|
||||
# result_task_status = tdSql.query(sql_task_status,row_tag=True)
|
||||
# result_task_status_rows = tdSql.query(sql_task_status)
|
||||
# result_task_history = tdSql.query(sql_task_history,row_tag=True)
|
||||
# result_task_history_rows = tdSql.query(sql_task_history)
|
||||
|
||||
# tdLog.notice(f"Try to check stream status, check times: {checktimes} and stream task list[{check_stream_success}]")
|
||||
# print(f"result_task_status:{result_task_status},result_task_history:{result_task_history},result_task_alll:{result_task_alll}")
|
||||
# for vgroup_num in range(vgroups):
|
||||
# if result_task_alll[vgroup_num][3] == "ready" and self.check_stream_wal_info(result_task_alll[vgroup_num][4]) and result_task_alll[vgroup_num][5] == None:
|
||||
# check_stream_success += 1
|
||||
# tdLog.info(f"check stream task list[{check_stream_success}] sucessfully :")
|
||||
# else:
|
||||
# check_stream_success = 0
|
||||
# break
|
||||
|
||||
# if check_stream_success == vgroups:
|
||||
# break
|
||||
# time.sleep(1)
|
||||
# checktimes += 1
|
||||
# vgroup_num = vgroup_num
|
||||
# except Exception as e:
|
||||
# tdLog.notice(f"Try to check stream status again, check times: {checktimes}")
|
||||
# checktimes += 1
|
||||
# tdSql.print_error_frame_info(result_task_alll[vgroup_num],"status is ready,info is finished and history_task_id is NULL",sql_task_all)
|
||||
|
||||
# else:
|
||||
# checktimes_end = checktimes - 1
|
||||
# tdLog.notice(f"it has spend {checktimes_end} for checking stream task status but it failed")
|
||||
# if checktimes_end == timeout:
|
||||
# tdSql.print_error_frame_info(result_task_alll[vgroup_num],"status is ready,info is finished and history_task_id is NULL",sql_task_all)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def drop_db(self, dbname="test"):
|
||||
"""drop a db
|
||||
|
||||
|
|
|
@ -61,6 +61,13 @@ class TDSql:
|
|||
def close(self):
|
||||
self.cursor.close()
|
||||
|
||||
def print_error_frame_info(self, elm, expect_elm, sql=None):
|
||||
caller = inspect.getframeinfo(inspect.stack()[1][0])
|
||||
print_sql = self.sql if sql is None else sql
|
||||
args = (caller.filename, caller.lineno, print_sql, elm, expect_elm)
|
||||
# tdLog.info("%s(%d) failed: sql:%s, elm:%s != expect_elm:%s" % args)
|
||||
raise Exception("%s(%d) failed: sql:%s, elm:%s != expect_elm:%s" % args)
|
||||
|
||||
def prepare(self, dbname="db", drop=True, **kwargs):
|
||||
tdLog.info(f"prepare database:{dbname}")
|
||||
s = 'reset query cache'
|
||||
|
@ -331,13 +338,14 @@ class TDSql:
|
|||
return self.queryRows
|
||||
|
||||
def checkRows(self, expectedRows):
|
||||
if self.queryRows == expectedRows:
|
||||
tdLog.info("sql:%s, queryRows:%d == expect:%d" % (self.sql, self.queryRows, expectedRows))
|
||||
return True
|
||||
else:
|
||||
caller = inspect.getframeinfo(inspect.stack()[1][0])
|
||||
args = (caller.filename, caller.lineno, self.sql, self.queryRows, expectedRows)
|
||||
tdLog.exit("%s(%d) failed: sql:%s, queryRows:%d != expect:%d" % args)
|
||||
return self.checkEqual(self.queryRows, expectedRows)
|
||||
# if self.queryRows == expectedRows:
|
||||
# tdLog.info("sql:%s, queryRows:%d == expect:%d" % (self.sql, self.queryRows, expectedRows))
|
||||
# return True
|
||||
# else:
|
||||
# caller = inspect.getframeinfo(inspect.stack()[1][0])
|
||||
# args = (caller.filename, caller.lineno, self.sql, self.queryRows, expectedRows)
|
||||
# tdLog.exit("%s(%d) failed: sql:%s, queryRows:%d != expect:%d" % args)
|
||||
|
||||
def checkRows_not_exited(self, expectedRows):
|
||||
"""
|
||||
|
@ -636,15 +644,11 @@ class TDSql:
|
|||
def checkEqual(self, elm, expect_elm):
|
||||
if elm == expect_elm:
|
||||
tdLog.info("sql:%s, elm:%s == expect_elm:%s" % (self.sql, elm, expect_elm))
|
||||
return
|
||||
return True
|
||||
if self.__check_equal(elm, expect_elm):
|
||||
tdLog.info("sql:%s, elm:%s == expect_elm:%s" % (self.sql, elm, expect_elm))
|
||||
return
|
||||
|
||||
caller = inspect.getframeinfo(inspect.stack()[1][0])
|
||||
args = (caller.filename, caller.lineno, self.sql, elm, expect_elm)
|
||||
# tdLog.info("%s(%d) failed: sql:%s, elm:%s != expect_elm:%s" % args)
|
||||
raise Exception("%s(%d) failed: sql:%s, elm:%s != expect_elm:%s" % args)
|
||||
return True
|
||||
self.print_error_frame_info(elm, expect_elm)
|
||||
|
||||
def checkNotEqual(self, elm, expect_elm):
|
||||
if elm != expect_elm:
|
||||
|
|
|
@ -97,6 +97,6 @@ else
|
|||
if [ $python_error -ne 0 ] || [ $python_taos_error -ne 0 ] ; then
|
||||
cat ${LOG_DIR}/*.info |grep "#" | grep -w "TDinternal"
|
||||
fi
|
||||
cat ${LOG_DIR}/*.asan
|
||||
cat ${LOG_DIR}/*.asan |grep "#" | grep -w "TDinternal"
|
||||
exit 1
|
||||
fi
|
|
@ -4,5 +4,5 @@ rem echo taskkill /F /IM taosd.exe
|
|||
|
||||
wmic process where "name='taosd.exe'" call terminate > NUL 2>&1
|
||||
taskkill /F /IM taosd.exe > NUL 2>&1
|
||||
|
||||
sleep 2
|
||||
rem echo taskkill /F /IM taosd.exe finished
|
|
@ -15,42 +15,42 @@ fi
|
|||
|
||||
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
|
||||
while [ -n "$PID" ]; do
|
||||
echo kill -15 $PID
|
||||
#pkill -15 taosd
|
||||
kill -15 $PID
|
||||
echo kill -9 $PID
|
||||
#pkill -9 taosd
|
||||
kill -9 $PID
|
||||
echo "Killing taosd processes"
|
||||
if [ "$OS_TYPE" != "Darwin" ]; then
|
||||
fuser -k -n tcp 6030
|
||||
else
|
||||
lsof -nti:6030 | xargs kill -15
|
||||
lsof -nti:6030 | xargs kill -9
|
||||
fi
|
||||
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
|
||||
done
|
||||
|
||||
PID=`ps -ef|grep -w taos | grep -v grep | awk '{print $2}'`
|
||||
while [ -n "$PID" ]; do
|
||||
echo kill -15 $PID
|
||||
echo kill -9 $PID
|
||||
#pkill -9 taos
|
||||
kill -15 $PID
|
||||
kill -9 $PID
|
||||
echo "Killing taos processes"
|
||||
if [ "$OS_TYPE" != "Darwin" ]; then
|
||||
fuser -k -n tcp 6030
|
||||
else
|
||||
lsof -nti:6030 | xargs kill -15
|
||||
lsof -nti:6030 | xargs kill -9
|
||||
fi
|
||||
PID=`ps -ef|grep -w taos | grep -v grep | awk '{print $2}'`
|
||||
done
|
||||
|
||||
PID=`ps -ef|grep -w tmq_sim | grep -v grep | awk '{print $2}'`
|
||||
while [ -n "$PID" ]; do
|
||||
echo kill -15 $PID
|
||||
#pkill -15 tmq_sim
|
||||
kill -15 $PID
|
||||
echo kill -9 $PID
|
||||
#pkill -9 tmq_sim
|
||||
kill -9 $PID
|
||||
echo "Killing tmq_sim processes"
|
||||
if [ "$OS_TYPE" != "Darwin" ]; then
|
||||
fuser -k -n tcp 6030
|
||||
else
|
||||
lsof -nti:6030 | xargs kill -15
|
||||
lsof -nti:6030 | xargs kill -9
|
||||
fi
|
||||
PID=`ps -ef|grep -w tmq_sim | grep -v grep | awk '{print $2}'`
|
||||
done
|
|
@ -308,4 +308,4 @@ if $rows != 2 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
#system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
|
|
|
@ -200,7 +200,6 @@
|
|||
./test.sh -f tsim/query/unionall_as_table.sim
|
||||
./test.sh -f tsim/query/multi_order_by.sim
|
||||
./test.sh -f tsim/query/sys_tbname.sim
|
||||
./test.sh -f tsim/query/sort-pre-cols.sim
|
||||
./test.sh -f tsim/query/groupby.sim
|
||||
./test.sh -f tsim/query/groupby_distinct.sim
|
||||
./test.sh -f tsim/query/event.sim
|
||||
|
@ -289,12 +288,6 @@
|
|||
./test.sh -f tsim/stable/tag_rename.sim
|
||||
./test.sh -f tsim/stable/values.sim
|
||||
./test.sh -f tsim/stable/vnode3.sim
|
||||
./test.sh -f tsim/sma/drop_sma.sim
|
||||
./test.sh -f tsim/sma/sma_leak.sim
|
||||
./test.sh -f tsim/sma/tsmaCreateInsertQuery.sim
|
||||
./test.sh -f tsim/sma/rsmaCreateInsertQuery.sim
|
||||
./test.sh -f tsim/sma/rsmaCreateInsertQueryDelete.sim
|
||||
./test.sh -f tsim/sync/vnodesnapshot-rsma-test.sim
|
||||
./test.sh -f tsim/valgrind/checkError1.sim
|
||||
./test.sh -f tsim/valgrind/checkError2.sim
|
||||
./test.sh -f tsim/valgrind/checkError3.sim
|
||||
|
@ -406,7 +399,6 @@
|
|||
./test.sh -f tsim/tag/tbNameIn.sim
|
||||
./test.sh -f tmp/monitor.sim
|
||||
./test.sh -f tsim/tagindex/add_index.sim
|
||||
./test.sh -f tsim/tagindex/sma_and_tag_index.sim
|
||||
./test.sh -f tsim/tagindex/indexOverflow.sim
|
||||
./test.sh -f tsim/view/view.sim
|
||||
./test.sh -f tsim/query/cache_last.sim
|
||||
|
|
|
@ -42,19 +42,19 @@ class TDTestCase:
|
|||
type = 'stable'
|
||||
tdSql.execute(f'create topic if not exists {name} as {type} {name}')
|
||||
tdSql.query('show topics')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0],name)
|
||||
tdSql.checkData(0, 0, name)
|
||||
tdSql.execute(f'drop topic {name}')
|
||||
tdSql.execute(f'create topic if not exists `{name}` as {type} {name}')
|
||||
tdSql.query('show topics')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0],name)
|
||||
tdSql.checkData(0, 0, name)
|
||||
tdSql.execute(f'drop topic {name}')
|
||||
tdSql.execute(f'create topic if not exists `{name}` as {type} `{name}`')
|
||||
tdSql.query('show topics')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0],name)
|
||||
tdSql.checkData(0, 0, name)
|
||||
tdSql.execute(f'drop topic {name}')
|
||||
tdSql.execute(f'create topic if not exists `{name}` as {type} `{name}`')
|
||||
tdSql.query('show topics')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0],name)
|
||||
tdSql.checkData(0, 0, name)
|
||||
tdSql.execute(f'drop topic `{name}`')
|
||||
|
||||
def db_name_check(self):
|
||||
|
@ -70,14 +70,14 @@ class TDTestCase:
|
|||
|
||||
time.sleep(15)
|
||||
tdSql.query('show streams')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0],self.streamname)
|
||||
tdSql.checkData(0, 0, self.streamname)
|
||||
tdSql.execute(f'drop stream {self.streamname}')
|
||||
tdSql.execute(f'drop stable {self.streamtb}')
|
||||
tdSql.execute(f'create stream {self.streamname} into `{self.streamtb}` as select count(*) from {self.stbname} interval(10s);')
|
||||
|
||||
time.sleep(10)
|
||||
tdSql.query('show streams')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0],self.streamname)
|
||||
tdSql.checkData(0, 0, self.streamname)
|
||||
tdSql.execute(f'drop stream `{self.streamname}`')
|
||||
tdSql.execute(f'drop database {self.dbname}')
|
||||
|
||||
|
@ -89,17 +89,17 @@ class TDTestCase:
|
|||
tdSql.execute(f'insert into {self.ntbname1} values(now(),1,1)')
|
||||
tdSql.execute(f'insert into {self.ntbname2} values(now(),2,2)')
|
||||
tdSql.query(f'select `{self.ntbname1}`.`c0`, `{self.ntbname1}`.`c1` from `{self.ntbname1}`')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0], 1)
|
||||
tdSql.checkData(0, 0, 1)
|
||||
tdSql.query(f'select `{self.ntbname1}`.`c0`, `{self.ntbname1}`.`c1` from `{self.dbname}`.`{self.ntbname1}`')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0], 1)
|
||||
tdSql.checkData(0, 0, 1)
|
||||
tdSql.query(f'select `{self.ntbname1}`.`c0` from `{self.ntbname2}` `{self.ntbname1}`')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0], 2)
|
||||
tdSql.checkData(0, 0, 2)
|
||||
tdSql.query(f'select `{self.ntbname1}`.`c0` from (select * from `{self.ntbname2}`) `{self.ntbname1}`')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0], 2)
|
||||
tdSql.checkData(0, 0, 2)
|
||||
# select `t1`.`col1`, `col2`, `col3` from (select ts `col1`, 123 `col2`, c0 + c1 as `col3` from t2) `t1`;
|
||||
tdSql.query(f'select `{self.ntbname1}`.`col1`, `col2`, `col3` from (select ts `col1`, 123 `col2`, c0 + c1 as `col3` from {self.ntbname2}) `{self.ntbname1}`')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][1], 123)
|
||||
tdSql.checkEqual(tdSql.queryResult[0][2], 4)
|
||||
tdSql.checkData(0, 1, 123)
|
||||
tdSql.checkData(0, 2, 4)
|
||||
|
||||
# tdSql.execute(f'drop database {self.dbname}')
|
||||
|
||||
|
@ -117,15 +117,15 @@ class TDTestCase:
|
|||
|
||||
tdSql.query(f'select `t1`.`ts`, `t1`.`c0` + `t2`.`c0` as `c0`, `t1`.`c1` * `t2`.`c1` as `c1` from `{self.ntbname1}` `t1` join `{self.ntbname2}` `t2` on timetruncate(`t1`.`ts`, 1s) = timetruncate(`t2`.`ts`, 1s);')
|
||||
tdSql.checkRows(1)
|
||||
tdSql.checkEqual(tdSql.queryResult[0][1], 3)
|
||||
tdSql.checkData(0, 1, 3)
|
||||
|
||||
tdSql.query(f'select `t1`.`ts`, `t1`.`c1`, `t1`.`c2` from (select `ts`, `c0` + 1 as `c1`, `c1` + 2 as `c2` from `{self.ntbname1}`) `t1`;')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][1], 2)
|
||||
tdSql.checkEqual(tdSql.queryResult[0][2], 3)
|
||||
tdSql.checkData(0, 1, 2)
|
||||
tdSql.checkData(0, 2, 3)
|
||||
|
||||
tdSql.query(f'select `t`.`ts`, cast(`t`.`v1` as int) + `t`.`c0` as `v` from (select `ts`, "12" as `v1`, `c0`, `c1` from `ntb1`) `t`;')
|
||||
tdSql.checkRows(1)
|
||||
tdSql.checkEqual(tdSql.queryResult[0][1], 13)
|
||||
tdSql.checkData(0, 1, 13)
|
||||
|
||||
tdSql.query(f'select count(`t1`.`ts`) from (select `t`.`ts` from `{self.ntbname1}` `t`) `t1`;')
|
||||
tdSql.checkRows(1)
|
||||
|
@ -133,6 +133,7 @@ class TDTestCase:
|
|||
def run(self):
|
||||
self.topic_name_check()
|
||||
self.db_name_check()
|
||||
if platform.system().lower() == 'windows':
|
||||
self.stream_name_check()
|
||||
self.table_name_check()
|
||||
self.view_name_check()
|
||||
|
|
|
@ -16,7 +16,7 @@ import random
|
|||
import time
|
||||
import copy
|
||||
import string
|
||||
|
||||
import platform
|
||||
import taos
|
||||
from util.log import *
|
||||
from util.cases import *
|
||||
|
@ -380,6 +380,7 @@ class TDTestCase:
|
|||
# forbid
|
||||
def checkForbid(self):
|
||||
# stream
|
||||
if platform.system().lower() != 'windows':
|
||||
tdLog.info("check forbid split having stream...")
|
||||
tdSql.execute("create database streamdb;")
|
||||
tdSql.execute("use streamdb;")
|
||||
|
|
|
@ -16,7 +16,7 @@ import random
|
|||
import time
|
||||
import copy
|
||||
import string
|
||||
|
||||
import platform
|
||||
import taos
|
||||
from util.log import *
|
||||
from util.cases import *
|
||||
|
@ -380,6 +380,7 @@ class TDTestCase:
|
|||
# forbid
|
||||
def checkForbid(self):
|
||||
# stream
|
||||
if platform.system().lower() != 'windows':
|
||||
tdLog.info("check forbid split having stream...")
|
||||
tdSql.execute("create database streamdb;")
|
||||
tdSql.execute("use streamdb;")
|
||||
|
|
|
@ -154,6 +154,9 @@ class TDTestCase:
|
|||
tdSql.query("use source_db")
|
||||
tdSql.query("create table if not exists source_db.stb (ts timestamp, k int) tags (a int);")
|
||||
tdSql.query("create table source_db.ct1 using source_db.stb tags(1000);create table source_db.ct2 using source_db.stb tags(2000);create table source_db.ct3 using source_db.stb tags(3000);")
|
||||
if platform.system().lower() == 'windows':
|
||||
pass
|
||||
else:
|
||||
tdSql.query("create stream s1 into source_db.output_stb as select _wstart AS startts, min(k), max(k), sum(k) from source_db.stb interval(10m);")
|
||||
|
||||
|
||||
|
|
|
@ -17,6 +17,9 @@ class TDTestCase:
|
|||
self.replicaVar = int(replicaVar)
|
||||
tdLog.debug("start to execute %s" % __file__)
|
||||
tdSql.init(conn.cursor(), logSql)
|
||||
if platform.system().lower() == 'windows':
|
||||
self.buffer_boundary = [3, 4097]
|
||||
else:
|
||||
self.buffer_boundary = [3, 4097, 8193, 12289, 16384]
|
||||
# remove the value > free_memory, 70% is the weight to calculate the max value
|
||||
# if platform.system() == "Linux" and platform.machine() == "aarch64":
|
||||
|
|
|
@ -22,6 +22,7 @@ from util.cases import tdCases
|
|||
from util.sql import tdSql
|
||||
from util.dnodes import tdDnodes
|
||||
from util.dnodes import *
|
||||
from util.common import *
|
||||
|
||||
class TDTestCase:
|
||||
updatecfgDict = {'maxSQLLength':1048576,'debugFlag': 135}
|
||||
|
@ -158,7 +159,8 @@ class TDTestCase:
|
|||
fake.pystr() ,fake.pystr() ,fake.pyfloat(),fake.pyfloat(),fake.random_int(min=-2147483647, max=2147483647, step=1)))
|
||||
|
||||
# create stream
|
||||
tdSql.execute('''create stream current_stream trigger at_once IGNORE EXPIRED 0 into stream_max_stable_1 as select _wstart as startts, _wend as wend, max(q_int) as max_int, min(q_bigint) as min_int from stable_1 where ts is not null interval (5s);''')
|
||||
stream_name="current_stream"
|
||||
tdSql.execute(f'''create stream {stream_name} trigger at_once IGNORE EXPIRED 0 into stream_max_stable_1 as select _wstart as startts, _wend as wend, max(q_int) as max_int, min(q_bigint) as min_int from stable_1 where ts is not null interval (5s);''')
|
||||
|
||||
# insert data positive
|
||||
for i in range(num_random*n):
|
||||
|
@ -287,8 +289,8 @@ class TDTestCase:
|
|||
tdSql.query("select count(*) from hn_table_1_r;")
|
||||
tdSql.checkData(0,0,num_random*n)
|
||||
|
||||
sleep(5)
|
||||
# stream data check
|
||||
tdCom.check_stream_task_status(stream_name,vgroups,90)
|
||||
tdSql.query("select startts,wend,max_int from stream_max_stable_1 ;")
|
||||
tdSql.checkRows(20)
|
||||
tdSql.query("select sum(max_int) from stream_max_stable_1 ;")
|
||||
|
|
|
@ -162,6 +162,7 @@ class TDTestCase:
|
|||
self.drop_ntb_check()
|
||||
self.drop_stb_ctb_check()
|
||||
self.drop_topic_check()
|
||||
if platform.system().lower() == 'windows':
|
||||
self.drop_stream_check()
|
||||
pass
|
||||
def stop(self):
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
import sys
|
||||
import random
|
||||
import time
|
||||
|
||||
import platform
|
||||
import taos
|
||||
from util.log import *
|
||||
from util.cases import *
|
||||
|
@ -149,6 +149,7 @@ class TDTestCase:
|
|||
tdSql.execute(sql)
|
||||
|
||||
# create stream
|
||||
if platform.system().lower() != 'windows':
|
||||
sql = "create stream ma into sta as select count(ts) from st interval(100b)"
|
||||
tdLog.info(sql)
|
||||
tdSql.execute(sql)
|
||||
|
@ -315,6 +316,7 @@ class TDTestCase:
|
|||
self.checkWhere()
|
||||
|
||||
# check stream
|
||||
if platform.system().lower() != 'windows':
|
||||
self.checkStream()
|
||||
|
||||
# stop
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
import sys
|
||||
import random
|
||||
import time
|
||||
|
||||
import platform
|
||||
import taos
|
||||
from util.log import *
|
||||
from util.cases import *
|
||||
|
@ -149,6 +149,7 @@ class TDTestCase:
|
|||
tdSql.execute(sql)
|
||||
|
||||
# create stream
|
||||
if platform.system().lower() != 'windows':
|
||||
sql = "create stream ma into sta as select count(ts) from st interval(100u)"
|
||||
tdLog.info(sql)
|
||||
tdSql.execute(sql)
|
||||
|
@ -289,6 +290,7 @@ class TDTestCase:
|
|||
self.checkWhere()
|
||||
|
||||
# check stream
|
||||
if platform.system().lower() != 'windows':
|
||||
self.checkStream()
|
||||
|
||||
# stop
|
||||
|
|
|
@ -25,7 +25,9 @@ class TDTestCase:
|
|||
self.tag2 = f'using {self.stable0}(groupId) tags(2)'
|
||||
self.file1 = f"{self.testcasePath}/b.csv"
|
||||
self.file2 = f"{self.testcasePath}/c.csv"
|
||||
|
||||
if platform.system().lower() == 'windows':
|
||||
self.file1 = self.file1.replace("\\","\\\\")
|
||||
self.file2 = self.file2.replace("\\","\\\\")
|
||||
tdLog.debug(f"start to excute {__file__}")
|
||||
tdSql.init(conn.cursor(), logSql)
|
||||
|
||||
|
|
|
@ -56,9 +56,12 @@ class TDTestCase(TDTestCase):
|
|||
|
||||
|
||||
def check_sql_result_include(self, sql,include_result):
|
||||
result = os.popen("taos -s 'reset query cache; %s'" %sql)
|
||||
result = os.popen(f"taos -s \"reset query cache; {sql}\"" )
|
||||
res = result.read()
|
||||
#tdLog.info(res)
|
||||
if res is None or res == '':
|
||||
tdLog.info(sql)
|
||||
tdLog.exit(f"check_sql_result_include : taos -s return null")
|
||||
else:
|
||||
if (include_result in res):
|
||||
tdLog.info(f"check_sql_result_include : checkEqual success")
|
||||
else :
|
||||
|
@ -67,9 +70,13 @@ class TDTestCase(TDTestCase):
|
|||
tdLog.exit(f"check_sql_result_include : checkEqual error")
|
||||
|
||||
def check_sql_result_not_include(self, sql,not_include_result):
|
||||
result = os.popen("taos -s 'reset query cache; %s'" %sql)
|
||||
result = os.popen(f"taos -s \"reset query cache; {sql}\"" )
|
||||
res = result.read()
|
||||
#tdLog.info(res)
|
||||
if res is None or res == '':
|
||||
tdLog.info(sql)
|
||||
tdLog.exit(f"check_sql_result_not_include : taos -s return null")
|
||||
else:
|
||||
if (not_include_result in res):
|
||||
tdLog.info(res)
|
||||
tdLog.info(sql)
|
||||
|
@ -325,6 +332,7 @@ class TDTestCase(TDTestCase):
|
|||
|
||||
for i in range(2):
|
||||
self.cachemodel_none()
|
||||
tdLog.info("last_row")
|
||||
tdSql.query("alter database nested cachemodel 'last_row' ")
|
||||
tdSql.query("reset query cache;")
|
||||
self.cachemodel_last_row()
|
||||
|
|
|
@ -65,9 +65,12 @@ class TDTestCase:
|
|||
while count < self.mnodeCheckCnt:
|
||||
time.sleep(1)
|
||||
tdSql.query("select * from information_schema.ins_mnodes;")
|
||||
rst = tdSql.checkRows(self.mnodes)
|
||||
print(f"rst: {rst}")
|
||||
if tdSql.checkRows(self.mnodes) :
|
||||
tdLog.debug("mnode is three nodes")
|
||||
else:
|
||||
tdSql.print_error_frame_info(tdSql.queryRows,3)
|
||||
tdLog.exit("mnode number is correct")
|
||||
|
||||
roleOfMnode0 = tdSql.queryResult[0][self.roleIndex]
|
||||
|
|
|
@ -1,2 +1,19 @@
|
|||
#python3 ./test.py -f 2-query/last.py -Q 3
|
||||
#./test.sh -f tsim/mnode/basic4.sim
|
||||
python3 ./test.py -f 2-query/match.py
|
||||
python3 ./test.py -f 0-others/splitVGroup.py -N 3 -n 1
|
||||
python3 ./test.py -f 2-query/tsma.py
|
||||
python3 ./test.py -f 2-query/tsma2.py
|
||||
python3 ./test.py -f 1-insert/database_pre_suf.py
|
||||
python3 ./test.py -f 0-others/splitVGroup.py -N 3 -n 1
|
||||
python3 ./test.py -f 0-others/splitVGroupWal.py -N 3 -n 1
|
||||
python3 ./test.py -f 0-others/delete_check.py
|
||||
python3 ./test.py -f 1-insert/alter_database.py
|
||||
python3 ./test.py -f 1-insert/db_tb_name_check.py
|
||||
python3 ./test.py -f 1-insert/precisionUS.py
|
||||
python3 ./test.py -f 1-insert/precisionNS.py
|
||||
python3 ./test.py -f 1-insert/ts-4272.py
|
||||
python3 ./test.py -f 2-query/last+last_row.py
|
||||
python3 ./test.py -f 2-query/normal.py
|
||||
python3 ./test.py -f 2-query/To_iso8601.py
|
||||
python3 ./test.py -f 2-query/normal.py
|
||||
python3 ./test.py -f 5-taos-tools/taosbenchmark/insertMix.py -N 3
|
||||
python3 ./test.py -f 7-tmq/tmq_taosx.py
|
|
@ -44,7 +44,7 @@ def checkRunTimeError():
|
|||
time.sleep(1)
|
||||
timeCount = timeCount + 1
|
||||
print("checkRunTimeError",timeCount)
|
||||
if (timeCount>600):
|
||||
if (timeCount>1200):
|
||||
print("stop the test.")
|
||||
os.system("TASKKILL /F /IM taosd.exe")
|
||||
os.system("TASKKILL /F /IM taos.exe")
|
||||
|
|
|
@ -104,7 +104,6 @@ python3 ./test.py -f 2-query/insert_null_none.py -R
|
|||
python3 ./test.py -f 2-query/insert_null_none.py -Q 2
|
||||
python3 ./test.py -f 2-query/insert_null_none.py -Q 3
|
||||
python3 ./test.py -f 2-query/insert_null_none.py -Q 4
|
||||
python3 ./test.py -f 1-insert/database_pre_suf.py
|
||||
python3 ./test.py -f 2-query/concat.py -Q 3
|
||||
python3 ./test.py -f 2-query/out_of_order.py -Q 2
|
||||
python3 ./test.py -f 2-query/out_of_order.py -Q 4
|
||||
|
@ -572,7 +571,6 @@ python3 ./test.py -f 2-query/join2.py
|
|||
python3 ./test.py -f 2-query/union1.py
|
||||
python3 ./test.py -f 2-query/concat2.py
|
||||
python3 ./test.py -f 2-query/json_tag.py
|
||||
python3 ./test.py -f 2-query/nestedQueryInterval.py
|
||||
python3 ./test.py -f 2-query/systable_func.py
|
||||
python3 ./test.py -f 2-query/test_ts4382.py
|
||||
python3 ./test.py -f 2-query/test_ts4403.py
|
||||
|
@ -687,7 +685,6 @@ python3 ./test.py -f 2-query/arctan.py -Q 2
|
|||
python3 ./test.py -f 2-query/query_cols_tags_and_or.py -Q 2
|
||||
python3 ./test.py -f 2-query/interp.py -Q 2
|
||||
python3 ./test.py -f 2-query/fill.py -Q 2
|
||||
python3 ./test.py -f 2-query/nestedQueryInterval.py -Q 2
|
||||
python3 ./test.py -f 2-query/stablity.py -Q 2
|
||||
python3 ./test.py -f 2-query/stablity_1.py -Q 2
|
||||
python3 ./test.py -f 2-query/avg.py -Q 2
|
||||
|
@ -783,7 +780,6 @@ python3 ./test.py -f 2-query/arcsin.py -Q 3
|
|||
python3 ./test.py -f 2-query/arccos.py -Q 3
|
||||
python3 ./test.py -f 2-query/arctan.py -Q 3
|
||||
python3 ./test.py -f 2-query/query_cols_tags_and_or.py -Q 3
|
||||
python3 ./test.py -f 2-query/nestedQueryInterval.py -Q 3
|
||||
python3 ./test.py -f 2-query/stablity.py -Q 3
|
||||
python3 ./test.py -f 2-query/stablity_1.py -Q 3
|
||||
python3 ./test.py -f 2-query/avg.py -Q 3
|
||||
|
@ -881,7 +877,6 @@ python3 ./test.py -f 2-query/arcsin.py -Q 4
|
|||
python3 ./test.py -f 2-query/arccos.py -Q 4
|
||||
python3 ./test.py -f 2-query/arctan.py -Q 4
|
||||
python3 ./test.py -f 2-query/query_cols_tags_and_or.py -Q 4
|
||||
python3 ./test.py -f 2-query/nestedQueryInterval.py -Q 4
|
||||
python3 ./test.py -f 2-query/stablity.py -Q 4
|
||||
python3 ./test.py -f 2-query/stablity_1.py -Q 4
|
||||
python3 ./test.py -f 2-query/avg.py -Q 4
|
||||
|
@ -914,7 +909,6 @@ python3 ./test.py -f 2-query/last_row.py -Q 4
|
|||
python3 ./test.py -f 2-query/tsbsQuery.py -Q 4
|
||||
python3 ./test.py -f 2-query/sml.py -Q 4
|
||||
python3 ./test.py -f 2-query/interp.py -Q 4
|
||||
python3 ./test.py -f 2-query/fill.py -Q 4
|
||||
python3 ./test.py -f 2-query/case_when.py -Q 4
|
||||
python3 ./test.py -f 2-query/insert_select.py
|
||||
python3 ./test.py -f 2-query/insert_select.py -R
|
||||
|
|
Loading…
Reference in New Issue