From 82aff4eacda2d184b594a00389fdda440e8eca51 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Wed, 27 Apr 2022 16:11:12 +0800 Subject: [PATCH] fix: fix coredump if mode function with interval --- src/query/src/qExecutor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index a4a20b8fff..6531d4f7ac 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -332,7 +332,7 @@ SSDataBlock* createOutputBuf(SExprInfo* pExpr, int32_t numOfOutput, int32_t numO tmp *= numOfRows; if (tmp >= 1024*1024*1024) { // 1G qError("size is too large, failed to allocate column buffer for output buffer"); - goto _clean; + tmp = 128*1024*1024; } size_t size = (size_t)MAX(tmp, minSize); idata.pData = calloc(1, size); // at least to hold a pointer on x64 platform -- GitLab