From 8ffe45fc948068d501de24c5c58b057e9ebc9ae3 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Tue, 30 Nov 2021 22:50:20 +0800 Subject: [PATCH] enable different value type of the same key in json --- src/query/src/qFilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qFilter.c b/src/query/src/qFilter.c index 6d06d8e3cd..45661ee982 100644 --- a/src/query/src/qFilter.c +++ b/src/query/src/qFilter.c @@ -1573,7 +1573,7 @@ void filterDumpInfoToString(SFilterInfo *info, const char *msg, int32_t options) tlen = varDataLen(data); data += VARSTR_HEADER_SIZE; } - converToStr(str + len, type, data, tlen > 32 ? 32 : tlen, &tlen); + if (data) converToStr(str + len, type, data, tlen > 32 ? 32 : tlen, &tlen); } else { strcat(str, "NULL"); } -- GitLab