diff --git a/src/client/src/tscParseInsert.c b/src/client/src/tscParseInsert.c index 7bcc9f66353055d37e57abc4b5ec780837c8d388..25c6f43647fd63aa698fad9d7226ad09153e8d0e 100644 --- a/src/client/src/tscParseInsert.c +++ b/src/client/src/tscParseInsert.c @@ -52,7 +52,7 @@ int initMemRowBuilder(SMemRowBuilder *pBuilder, uint32_t nRows, SParsedDataColIn uint32_t dataLen = TD_MEM_ROW_DATA_HEAD_SIZE + pColInfo->allNullLen; uint32_t kvLen = TD_MEM_ROW_KV_HEAD_SIZE + pColInfo->numOfBound * sizeof(SColIdx) + pColInfo->boundNullLen; - if (isConvertToKVRow(kvLen, dataLen)) { + if (isUtilizeKVRow(kvLen, dataLen)) { pBuilder->memRowType = SMEM_ROW_KV; } else { pBuilder->memRowType = SMEM_ROW_DATA; diff --git a/src/common/inc/tdataformat.h b/src/common/inc/tdataformat.h index c49a7fa83e3a2b0b655f92cb6fc92ad444ecc9ac..07b899a6cab18193f79e93e5d5ef2ff5af64f491 100644 --- a/src/common/inc/tdataformat.h +++ b/src/common/inc/tdataformat.h @@ -619,7 +619,7 @@ typedef void *SMemRow; #define isDataRow(r) (SMEM_ROW_DATA == memRowType(r)) #define isKvRowT(t) (SMEM_ROW_KV == (((uint8_t)(t)) & 0x01)) #define isKvRow(r) (SMEM_ROW_KV == memRowType(r)) -#define isConvertToKVRow(k, d) ((k) < ((d)*KVRatioConvert)) +#define isUtilizeKVRow(k, d) ((k) < ((d)*KVRatioConvert)) #define memRowDataBody(r) POINTER_SHIFT(r, TD_MEM_ROW_TYPE_SIZE) // section after flag #define memRowKvBody(r) \