提交 68c57311 编写于 作者: wmmhello's avatar wmmhello

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

上级 300389f3
......@@ -5249,12 +5249,17 @@ char* parseTagDatatoJson(void *p){
int8_t jsonPlaceHolder = *(int8_t*)val;
ASSERT(jsonPlaceHolder == TSDB_DATA_JSON_PLACEHOLDER);
continue;
}else if(j == 1){
}
if(j == 1){
uint8_t jsonNULL = *(uint8_t*)(varDataVal(val));
ASSERT(jsonNULL == TSDB_DATA_JSON_NULL);
}else if (j == 2 && *(uint8_t*)val == TSDB_DATA_JSON_NULL){
goto end;
}else if (j%2 == 1) { // json key encode by binary
continue;
}
if (j == 2){
if(*(uint8_t*)val == TSDB_DATA_JSON_NULL) goto end;
continue;
}
if (j%2 == 1) { // json key encode by binary
ASSERT(varDataLen(val) <= TSDB_MAX_JSON_KEY_LEN);
memset(tagJsonKey, 0, sizeof(tagJsonKey));
memcpy(tagJsonKey, varDataVal(val), varDataLen(val));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册