diff --git a/src/common/src/tdataformat.c b/src/common/src/tdataformat.c index 44a138cec422fe4315126778987b64dd9677e058..9bcada27cbe0c54c18ebf6ab90e04de7ccb1a914 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); }