From 078f65cfc065e4dcd668f003f84344f5b3e560ed Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 9 Dec 2022 00:17:00 +0800 Subject: [PATCH] opti:modify logic for telnet and json in schemaless --- source/client/src/clientSml.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index b887fde00e..4d6ae16cab 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -2778,6 +2778,9 @@ static int32_t smlParseJSON(SSmlHandle *info, char *payload) { info->lines = taosMemoryCalloc(info->lineNum, sizeof(SSmlLineInfo)); memset(&info->preLine, 0, sizeof(SSmlLineInfo)); + info->currSTableMeta = NULL; + info->currTableDataCtx = NULL; + SVnodeModifOpStmt* stmt= (SVnodeModifOpStmt*)(info->pQuery->pRoot); stmt->freeHashFunc(stmt->pTableBlockHashObj); stmt->pTableBlockHashObj = taosHashInit(16, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), true, HASH_NO_LOCK); @@ -2947,6 +2950,9 @@ static int32_t smlParseLine(SSmlHandle *info, char *lines[], char *rawLine, char info->lines = taosMemoryCalloc(info->lineNum, sizeof(SSmlLineInfo)); memset(&info->preLine, 0, sizeof(SSmlLineInfo)); + info->currSTableMeta = NULL; + info->currTableDataCtx = NULL; + SVnodeModifOpStmt* stmt= (SVnodeModifOpStmt*)(info->pQuery->pRoot); stmt->freeHashFunc(stmt->pTableBlockHashObj); stmt->pTableBlockHashObj = taosHashInit(16, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), true, HASH_NO_LOCK);