diff --git a/include/common/tdatablock.h b/include/common/tdatablock.h index 86ce591b3d73bd79dd7020d43aed8cafb5854806..75ee878ea2d47f90bc1848606a9eab3fef947f9d 100644 --- a/include/common/tdatablock.h +++ b/include/common/tdatablock.h @@ -177,6 +177,7 @@ static FORCE_INLINE void colDataSetDouble(SColumnInfoData* pColumnInfoData, uint int32_t getJsonValueLen(const char* data); int32_t colDataSetVal(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, bool isNull); +int32_t colDataAppend(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, bool isNull); int32_t colDataSetNItems(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, uint32_t numOfRows); int32_t colDataMergeCol(SColumnInfoData* pColumnInfoData, int32_t numOfRow1, int32_t* capacity, const SColumnInfoData* pSource, int32_t numOfRow2); diff --git a/source/common/src/tdatablock.c b/source/common/src/tdatablock.c index ebe634648d54aa4edd3626b06bb612924119b60f..85dccbca83ed896fc108e23623511e99e5146477 100644 --- a/source/common/src/tdatablock.c +++ b/source/common/src/tdatablock.c @@ -63,6 +63,10 @@ int32_t getJsonValueLen(const char* data) { return dataLen; } +int32_t colDataAppend(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, bool isNull) { + return colDataSetVal(pColumnInfoData, rowIndex, pData, isNull); +} + int32_t colDataSetVal(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, bool isNull) { if (isNull) { // There is a placehold for each NULL value of binary or nchar type.