fix(query): fix error in windows and darwin system.
This commit is contained in:
parent
d77f5fa70c
commit
86fda9f3da
|
@ -244,7 +244,7 @@ static int32_t addNewWindowResultBuf(SResultRow* pWindowRes, SDiskbasedBuf* pRes
|
||||||
|
|
||||||
// in the first scan, new space needed for results
|
// in the first scan, new space needed for results
|
||||||
int32_t pageId = -1;
|
int32_t pageId = -1;
|
||||||
SIDList list = getDataBufPagesIdList(pResultBuf);
|
SArray* list = getDataBufPagesIdList(pResultBuf);
|
||||||
|
|
||||||
if (taosArrayGetSize(list) == 0) {
|
if (taosArrayGetSize(list) == 0) {
|
||||||
pData = getNewBufPage(pResultBuf, &pageId);
|
pData = getNewBufPage(pResultBuf, &pageId);
|
||||||
|
|
|
@ -494,7 +494,7 @@ double getPercentileImpl(tMemBucket *pMemBucket, int32_t count, double fraction)
|
||||||
resetSlotInfo(pMemBucket);
|
resetSlotInfo(pMemBucket);
|
||||||
|
|
||||||
int32_t groupId = getGroupId(pMemBucket->numOfSlots, i, pMemBucket->times - 1);
|
int32_t groupId = getGroupId(pMemBucket->numOfSlots, i, pMemBucket->times - 1);
|
||||||
SIDList list = taosHashGet(pMemBucket->groupPagesMap, &groupId, sizeof(groupId));
|
SArray* list = taosHashGet(pMemBucket->groupPagesMap, &groupId, sizeof(groupId));
|
||||||
ASSERT(list != NULL && list->size > 0);
|
ASSERT(list != NULL && list->size > 0);
|
||||||
|
|
||||||
for (int32_t f = 0; f < list->size; ++f) {
|
for (int32_t f = 0; f < list->size; ++f) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ void simpleTest() {
|
||||||
|
|
||||||
ASSERT_EQ(getTotalBufSize(pBuf), 1024);
|
ASSERT_EQ(getTotalBufSize(pBuf), 1024);
|
||||||
|
|
||||||
SIDList list = getDataBufPagesIdList(pBuf);
|
SArray* list = getDataBufPagesIdList(pBuf);
|
||||||
ASSERT_EQ(taosArrayGetSize(list), 1);
|
ASSERT_EQ(taosArrayGetSize(list), 1);
|
||||||
// ASSERT_EQ(getNumOfBufGroupId(pBuf), 1);
|
// ASSERT_EQ(getNumOfBufGroupId(pBuf), 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue