From b96d9485396c600c057f05d9e58e820b2885af19 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 24 Nov 2022 16:55:06 +0800 Subject: [PATCH] add an interface --- include/common/tdataformat.h | 1 + source/common/src/tdataformat.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/common/tdataformat.h b/include/common/tdataformat.h index d7a6592ae3..057cff7624 100644 --- a/include/common/tdataformat.h +++ b/include/common/tdataformat.h @@ -87,6 +87,7 @@ int32_t tBufferReserve(SBuffer *pBuffer, int64_t nData, void **ppData); int32_t tRowBuild(SArray *aColVal, STSchema *pTSchema, SRow **ppRow); void tRowGet(SRow *pRow, STSchema *pTSchema, int32_t iCol, SColVal *pColVal); void tRowDestroy(SRow *pRow); +int32_t tRowMergeSort(SArray *aRow, STSchema *pTSchema); // SRowIter ================================ int32_t tRowIterOpen(SRow *pRow, STSchema *pTSchema, SRowIter **ppIter); diff --git a/source/common/src/tdataformat.c b/source/common/src/tdataformat.c index 60f473b171..f1ccef586e 100644 --- a/source/common/src/tdataformat.c +++ b/source/common/src/tdataformat.c @@ -492,6 +492,11 @@ void tRowGet(SRow *pRow, STSchema *pTSchema, int32_t iCol, SColVal *pColVal) { void tRowDestroy(SRow *pRow) { tFree((uint8_t *)pRow); } +int32_t tRowMergeSort(SArray *aRow, STSchema *pTSchema) { + // todo + return 0; +} + // SRowIter ======================================== struct SRowIter { SRow *pRow;