From e501df857f31644e2d441cb09229cd73fc278e42 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Wed, 3 Nov 2021 15:33:17 +0800 Subject: [PATCH] logic for update 2 --- src/common/src/tdataformat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/src/tdataformat.c b/src/common/src/tdataformat.c index c57baa2cf8..2ea2b79078 100644 --- a/src/common/src/tdataformat.c +++ b/src/common/src/tdataformat.c @@ -491,7 +491,7 @@ static void tdAppendDataRowToDataCol(SDataRow row, STSchema *pSchema, SDataCols } else if (pRowCol->colId < pDataCol->colId) { rcol++; } else { - if(forceSetNull || !isAllRowsNull(pDataCol)) { + if(forceSetNull) { dataColAppendVal(pDataCol, getNullValue(pDataCol->type), pCols->numOfRows, pCols->maxPoints, rowOffset); } dcol++; @@ -534,7 +534,7 @@ static void tdAppendKvRowToDataCol(SKVRow row, STSchema *pSchema, SDataCols *pCo } else if (colIdx->colId < pDataCol->colId) { ++rcol; } else { - if (forceSetNull || !isAllRowsNull(pDataCol)) { + if (forceSetNull) { dataColAppendVal(pDataCol, getNullValue(pDataCol->type), pCols->numOfRows, pCols->maxPoints, rowOffset); } ++dcol; -- GitLab