From 9c3a130b12dec3763910fc77727cb87cf89ac1a9 Mon Sep 17 00:00:00 2001 From: xywang Date: Mon, 7 Mar 2022 13:50:47 +0800 Subject: [PATCH] [TS-1289]: failed to create stable if tag column was json string --- src/util/src/ttokenizer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/src/ttokenizer.c b/src/util/src/ttokenizer.c index 8fca992911..1f99605cc5 100644 --- a/src/util/src/ttokenizer.c +++ b/src/util/src/ttokenizer.c @@ -570,6 +570,12 @@ uint32_t tGetToken(char* z, uint32_t* tokenId) { *tokenId = TK_ID; return i; } + case '{': { + for (i = 1; z[i] && z[i - 1] != '}'; i++) { + } + *tokenId = TK_STRING; + return i; + } case 'T': case 't': case 'F': -- GitLab