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

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

上级 30699ed2
......@@ -5352,7 +5352,7 @@ int parseJsontoTagData(char* json, SKVRowBuilder* kvRowBuilder, char* errMsg, in
int32_t outLen = 0;
strncpy(varDataVal(tagKey), jsonKey, strlen(jsonKey));
outLen = strlen(jsonKey);
taosHashPut(keyHash, jsonKey, strlen(jsonKey), 0, CHAR_BYTES);
taosHashPut(keyHash, jsonKey, outLen, &outLen, CHAR_BYTES); // add key to hash to remove dumplicate, value is useless
varDataSetLen(tagKey, outLen);
tdAddColToKVRow(kvRowBuilder, jsonIndex++, TSDB_DATA_TYPE_NCHAR, tagKey, false); // add json key
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册