From ffdb9920118c354cbcdc8a318b4a721b01ac9073 Mon Sep 17 00:00:00 2001 From: hzcheng Date: Mon, 27 Apr 2020 11:58:43 +0800 Subject: [PATCH] TD-166 --- src/client/src/tscUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 13e1582526..b6fe38e5c2 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -655,7 +655,7 @@ static void trimDataBlock(void* pDataBlock, STableDataBlocks* pTableDataBlock) { int toffset = 0; for (int32_t j = 0; j < tinfo.numOfColumns; j++) { - tdAppendColVal(trow, p, pSchema[j].type, pSchema[j].bytes, toffset); + tdAppendColVal(trow, isNull(p, pSchema[j].type) ? NULL : p, pSchema[j].type, pSchema[j].bytes, toffset); toffset += TYPE_BYTES[pSchema[j].type]; p += pSchema[j].bytes; } -- GitLab