From 5f04e54d3d8f433705b692037a30b34abc9dbc60 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Tue, 14 Jul 2020 13:43:50 +0800 Subject: [PATCH] fix null value commit coredump --- src/tsdb/src/tsdbRWHelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbRWHelper.c b/src/tsdb/src/tsdbRWHelper.c index b24731beda..fc2592f732 100644 --- a/src/tsdb/src/tsdbRWHelper.c +++ b/src/tsdb/src/tsdbRWHelper.c @@ -677,7 +677,7 @@ static int tsdbWriteBlockToFile(SRWHelper *pHelper, SFile *pFile, SDataCols *pDa nColsNotAllNull++; } - ASSERT(nColsNotAllNull > 0 && nColsNotAllNull <= pDataCols->numOfCols); + ASSERT(nColsNotAllNull >= 0 && nColsNotAllNull <= pDataCols->numOfCols); // Compress the data if neccessary int tcol = 0; -- GitLab