提交 074b0428 编写于 作者: wmmhello's avatar wmmhello

TD-6129<feature> support null true false for json tag

上级 748b9741
......@@ -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};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册