fix error in sort logic
This commit is contained in:
parent
c4f67c25fb
commit
c9de8b3b15
|
@ -50,7 +50,6 @@ typedef struct SMsortComparParam {
|
||||||
void **pSources;
|
void **pSources;
|
||||||
int32_t numOfSources;
|
int32_t numOfSources;
|
||||||
SArray *orderInfo; // SArray<SBlockOrderInfo>
|
SArray *orderInfo; // SArray<SBlockOrderInfo>
|
||||||
bool nullFirst;
|
|
||||||
} SMsortComparParam;
|
} SMsortComparParam;
|
||||||
|
|
||||||
typedef struct SSortHandle SSortHandle;
|
typedef struct SSortHandle SSortHandle;
|
||||||
|
|
|
@ -4144,6 +4144,7 @@ int32_t loadRemoteDataCallback(void* param, const SDataBuf* pMsg, int32_t code)
|
||||||
|
|
||||||
pSourceDataInfo->status = EX_SOURCE_DATA_READY;
|
pSourceDataInfo->status = EX_SOURCE_DATA_READY;
|
||||||
tsem_post(&pSourceDataInfo->pEx->ready);
|
tsem_post(&pSourceDataInfo->pEx->ready);
|
||||||
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void destroySendMsgInfo(SMsgSendInfo* pMsgBody) {
|
static void destroySendMsgInfo(SMsgSendInfo* pMsgBody) {
|
||||||
|
|
|
@ -391,11 +391,11 @@ int32_t msortComparFn(const void *pLeft, const void *pRight, void *param) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rightNull) {
|
if (rightNull) {
|
||||||
return pParam->nullFirst? 1:-1;
|
return pOrder->nullFirst? 1:-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (leftNull) {
|
if (leftNull) {
|
||||||
return pParam->nullFirst? -1:1;
|
return pOrder->nullFirst? -1:1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void* left1 = colDataGetData(pLeftColInfoData, pLeftSource->src.rowIndex);
|
void* left1 = colDataGetData(pLeftColInfoData, pLeftSource->src.rowIndex);
|
||||||
|
|
Loading…
Reference in New Issue