diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index bd8c9951e17a9f846077c25dc102c8c36b2bc9cd..d41c9fbba858965cc9c4eac8852d96d2ce62c8d1 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -2173,6 +2173,7 @@ static void ensureOutputBuffer(SQueryRuntimeEnv* pRuntimeEnv, SDataBlockInfo* pB if (tmp == NULL) { // todo handle the oom assert(0); } else { + memset(tmp + sizeof(tFilePage) + bytes * pRec->rows, 0, (newSize - pRec->rows) * bytes); pQuery->sdata[i] = (tFilePage *)tmp; }