From 074b0428385cbbe220e644e333320c7029e23990 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sun, 17 Oct 2021 02:06:24 +0800 Subject: [PATCH] TD-6129 support null true false for json tag --- src/tsdb/src/tsdbMeta.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/tsdb/src/tsdbMeta.c b/src/tsdb/src/tsdbMeta.c index 9f5b813ac7..7e9eeb6ee8 100644 --- a/src/tsdb/src/tsdbMeta.c +++ b/src/tsdb/src/tsdbMeta.c @@ -1113,10 +1113,6 @@ static int tsdbAddTableIntoIndex(STsdbMeta *pMeta, STable *pTable, bool refSuper if (j == 1){ uint8_t jsonNULL = *(uint8_t*)(varDataVal(val)); ASSERT(jsonNULL == TSDB_DATA_JSON_NULL); - - SColIdx * pColIdxNull = kvRowColIdxAt(pTable->tagVal, j+1); - void* valNull = (kvRowColVal(pTable->tagVal, pColIdxNull)); - if(*(uint8_t*)(valNull+CHAR_BYTES) == TSDB_DATA_JSON_NOT_NULL) continue; // do not add null type if json is not null } char keyMd5[TSDB_MAX_JSON_KEY_MD5_LEN] = {0}; @@ -1194,9 +1190,6 @@ static int tsdbRemoveTableFromIndex(STsdbMeta *pMeta, STable *pTable) { if (j == 1){ uint8_t jsonNULL = *(uint8_t*)(varDataVal(val)); ASSERT(jsonNULL == TSDB_DATA_JSON_NULL); - SColIdx * pColIdxNull = kvRowColIdxAt(pTable->tagVal, j+1); - void* valNull = (kvRowColVal(pTable->tagVal, pColIdxNull)); - if(*(uint8_t*)(valNull+CHAR_BYTES) == TSDB_DATA_JSON_NOT_NULL) continue; } char keyMd5[TSDB_MAX_JSON_KEY_MD5_LEN] = {0}; -- GitLab