Merge pull request #14153 from taosdata/enh/delete
enh: modify delete output res
This commit is contained in:
commit
750a046e31
|
@ -54,6 +54,7 @@ typedef struct {
|
|||
SHashObj* map; // speedup acquire the tableQueryInfo by table uid
|
||||
void* pTagCond;
|
||||
void* pTagIndexCond;
|
||||
uint64_t suid;
|
||||
} STableListInfo;
|
||||
|
||||
typedef struct SColumnDataAgg {
|
||||
|
|
|
@ -33,7 +33,7 @@ struct SDataSink;
|
|||
struct SSDataBlock;
|
||||
|
||||
typedef struct SDeleterRes {
|
||||
uint64_t uid;
|
||||
uint64_t suid;
|
||||
SArray* uidList;
|
||||
int64_t skey;
|
||||
int64_t ekey;
|
||||
|
@ -41,6 +41,7 @@ typedef struct SDeleterRes {
|
|||
} SDeleterRes;
|
||||
|
||||
typedef struct SDeleterParam {
|
||||
uint64_t suid;
|
||||
SArray* pUidList;
|
||||
} SDeleterParam;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ enum {
|
|||
};
|
||||
|
||||
typedef struct SDeleteRes {
|
||||
uint64_t uid;
|
||||
uint64_t suid;
|
||||
SArray* uidList;
|
||||
int64_t skey;
|
||||
int64_t ekey;
|
||||
|
|
|
@ -86,7 +86,7 @@ static void toDataCacheEntry(SDataDeleterHandle* pHandle, const SInputData* pInp
|
|||
SColumnInfoData* pColRes = (SColumnInfoData*)taosArrayGet(pInput->pData->pDataBlock, 0);
|
||||
|
||||
SDeleterRes* pRes = (SDeleterRes*)pEntry->data;
|
||||
pRes->uid = pHandle->pDeleter->tableId;
|
||||
pRes->suid = pHandle->pParam->suid;
|
||||
pRes->uidList = pHandle->pParam->pUidList;
|
||||
pRes->skey = pHandle->pDeleter->deleteTimeRange.skey;
|
||||
pRes->ekey = pHandle->pDeleter->deleteTimeRange.ekey;
|
||||
|
|
|
@ -300,6 +300,8 @@ int32_t getTableList(void* metaHandle, SScanPhysiNode* pScanNode, STableListInfo
|
|||
|
||||
uint64_t tableUid = pScanNode->uid;
|
||||
|
||||
pListInfo->suid = pScanNode->suid;
|
||||
|
||||
SNode* pTagCond = (SNode*)pListInfo->pTagCond;
|
||||
SNode* pTagIndexCond = (SNode*)pListInfo->pTagIndexCond;
|
||||
if (pScanNode->tableType == TSDB_SUPER_TABLE) {
|
||||
|
|
|
@ -4465,6 +4465,7 @@ int32_t createDataSinkParam(SDataSinkNode* pNode, void** pParam, qTaskInfo_t* pT
|
|||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
}
|
||||
int32_t tbNum = taosArrayGetSize(pTask->tableqinfoList.pTableList);
|
||||
pDeleterParam->suid = pTask->tableqinfoList.suid;
|
||||
pDeleterParam->pUidList = taosArrayInit(tbNum, sizeof(uint64_t));
|
||||
if (NULL == pDeleterParam->pUidList) {
|
||||
taosMemoryFree(pDeleterParam);
|
||||
|
|
|
@ -271,7 +271,7 @@ int32_t qwGetDeleteResFromSink(QW_FPARAMS_DEF, SQWTaskCtx *ctx, int32_t *dataLen
|
|||
SDeleterRes* pDelRes = (SDeleterRes*)output.pData;
|
||||
|
||||
rsp.affectedRows = pDelRes->affectedRows;
|
||||
pRes->uid = pDelRes->uid;
|
||||
pRes->suid = pDelRes->suid;
|
||||
pRes->uidList = pDelRes->uidList;
|
||||
pRes->skey = pDelRes->skey;
|
||||
pRes->ekey = pDelRes->ekey;
|
||||
|
|
|
@ -233,7 +233,7 @@ if $rows != 4 then
|
|||
endi
|
||||
|
||||
sql show dnode 1 variables;
|
||||
if $rows != 114 then
|
||||
if $rows != 116 then
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
|
Loading…
Reference in New Issue