[TD-225]
This commit is contained in:
parent
ec4e3f0282
commit
e561bb7ca0
|
@ -2222,7 +2222,7 @@ static void buildTopBotStruct(STopBotInfo *pTopBotInfo, SQLFunctionCtx *pCtx) {
|
||||||
tmp += POINTER_BYTES * pCtx->param[0].i64Key;
|
tmp += POINTER_BYTES * pCtx->param[0].i64Key;
|
||||||
|
|
||||||
size_t size = sizeof(tValuePair) + pCtx->tagInfo.tagsLen;
|
size_t size = sizeof(tValuePair) + pCtx->tagInfo.tagsLen;
|
||||||
assert(pCtx->param[0].i64Key > 0);
|
// assert(pCtx->param[0].i64Key > 0);
|
||||||
|
|
||||||
for (int32_t i = 0; i < pCtx->param[0].i64Key; ++i) {
|
for (int32_t i = 0; i < pCtx->param[0].i64Key; ++i) {
|
||||||
pTopBotInfo->res[i] = (tValuePair*) tmp;
|
pTopBotInfo->res[i] = (tValuePair*) tmp;
|
||||||
|
|
Loading…
Reference in New Issue