opti:modify logic for telnet and json in schemaless

This commit is contained in:
wangmm0220 2022-12-09 00:17:00 +08:00
parent bce072b5cb
commit 078f65cfc0
1 changed files with 6 additions and 0 deletions

View File

@ -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);