diff --git a/src/tsdb/src/tsdbMeta.c b/src/tsdb/src/tsdbMeta.c index 9f5b813ac745dc78a5541801ca9753ef48de1c19..7e9eeb6ee8486abecce704f2bd84e0cb50ab52bf 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};