From 30b51e4041f696c512af0610c4f0000c56b72864 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Tue, 9 Aug 2022 16:57:41 +0800 Subject: [PATCH 1/2] enh: row optimization --- include/common/tdataformat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/common/tdataformat.h b/include/common/tdataformat.h index 311eb72b4d..a304dd93b2 100644 --- a/include/common/tdataformat.h +++ b/include/common/tdataformat.h @@ -200,8 +200,8 @@ struct STag { #if 1 //================================================================================================================================================ // Imported since 3.0 and use bitmap to demonstrate None/Null/Norm, while use Null/Norm below 3.0 without of bitmap. #define TD_SUPPORT_BITMAP -#define TD_SUPPORT_READ2 -#define TD_SUPPORT_BACK2 // suppport back compatibility of 2.0 +#undef TD_SUPPORT_READ2 +#undef TD_SUPPORT_BACK2 // suppport back compatibility of 2.0 #define TASSERT(x) ASSERT(x) From 446b3291e76b91a5463cbb3d71b58ad8e35f6a9a Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Thu, 11 Aug 2022 09:53:51 +0800 Subject: [PATCH 2/2] fix: remove obsolete code --- source/common/src/trow.c | 1 - 1 file changed, 1 deletion(-) diff --git a/source/common/src/trow.c b/source/common/src/trow.c index 24032c8df2..565498a47b 100644 --- a/source/common/src/trow.c +++ b/source/common/src/trow.c @@ -521,7 +521,6 @@ bool tdSTSRowIterNext(STSRowIter *pIter, SCellVal *pVal) { tdSTSRowIterGetTpVal(pIter, pCol->type, pCol->offset - sizeof(TSKEY), pVal); } else if (TD_IS_KV_ROW(pIter->pRow)) { tdSTSRowIterGetKvVal(pIter, pCol->colId, &pIter->kvIdx, pVal); - ASSERT(0); } else { ASSERT(0); }