From cc451f1fbccdb63cae5265d7ef504761dfe5391d Mon Sep 17 00:00:00 2001 From: Liu Jicong Date: Wed, 4 Aug 2021 01:02:00 +0800 Subject: [PATCH] [TD-5694]: fix --- src/common/src/tdataformat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/src/tdataformat.c b/src/common/src/tdataformat.c index 44a138cec4..9bcada27cb 100644 --- a/src/common/src/tdataformat.c +++ b/src/common/src/tdataformat.c @@ -375,6 +375,7 @@ int tdInitDataCols(SDataCols *pCols, STSchema *pSchema) { for (i = 0; i < schemaNCols(pSchema); i++) { dataColInit(pCols->cols + i, schemaColAt(pSchema, i), pCols->maxPoints); + pCols->cols[i].spaceSize = 0; tdAllocMemForCol(pCols->cols + i, pCols->maxPoints); } -- GitLab