diff --git a/src/common/src/tdataformat.c b/src/common/src/tdataformat.c index c57baa2cf8dfdb4b28880f4907bbb7b8484fb215..2ea2b79078ef6b2f1153f9267600cca4011b2b85 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;