From e07c30be1cd855d65fd2fa0a69b9b19809c2bf2d Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 4 Jan 2023 00:49:38 +0800 Subject: [PATCH] fix(query): clear the length before append var data. --- source/libs/executor/src/executorimpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/libs/executor/src/executorimpl.c b/source/libs/executor/src/executorimpl.c index 3803bd8b01..2e8611c7dd 100644 --- a/source/libs/executor/src/executorimpl.c +++ b/source/libs/executor/src/executorimpl.c @@ -871,6 +871,8 @@ void extractQualifiedTupleByFilterResult(SSDataBlock* pBlock, const SColumnInfoD if (IS_VAR_DATA_TYPE(pDst->info.type)) { int32_t j = 0; + pDst->varmeta.length = 0; + while(j < totalRows) { if (pIndicator[j] == 0) { continue;