From df9be12af04bcbd19d41f124a939de79bb29928d Mon Sep 17 00:00:00 2001 From: slzhou Date: Thu, 9 Mar 2023 20:29:42 +0800 Subject: [PATCH] fix: fix nullbit map error --- source/libs/function/test/udf1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/libs/function/test/udf1.c b/source/libs/function/test/udf1.c index a395fc99a9..1977c09e0f 100644 --- a/source/libs/function/test/udf1.c +++ b/source/libs/function/test/udf1.c @@ -14,10 +14,8 @@ DLL_EXPORT int32_t udf1_init() { return 0; } DLL_EXPORT int32_t udf1_destroy() { return 0; } DLL_EXPORT int32_t udf1(SUdfDataBlock *block, SUdfColumn *resultCol) { - SUdfColumnData *resultData = &resultCol->colData; - resultData->numOfRows = block->numOfRows; - for (int32_t i = 0; i < resultData->numOfRows; ++i) { + for (int32_t i = 0; i < block->numOfRows; ++i) { int j = 0; for (; j < block->numOfCols; ++j) { if (udfColDataIsNull(block->udfCols[j], i)) {