Skip to content

Commit

Permalink
Merge pull request #26317 from taosdata/feat/TS-4917-main
Browse files Browse the repository at this point in the history
fix for create table from csv
  • Loading branch information
hzcheng authored Jun 27, 2024
2 parents 09f89d8 + 0e6c3a5 commit 0716a64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/libs/parser/src/parTranslater.c
Original file line number Diff line number Diff line change
Expand Up @@ -12822,6 +12822,8 @@ static int32_t parseOneStbRow(SMsgBuf* pMsgBuf, SParseFileContext* pParFileCtx)
code = parseTbnameToken(pMsgBuf, pParFileCtx->ctbName.tname, &token, &bFoundTbName);
}
}

if (TSDB_CODE_SUCCESS != code) break;
}

if (TSDB_CODE_SUCCESS == code) { // may fail to handle json
Expand Down Expand Up @@ -12897,6 +12899,7 @@ static int32_t parseCsvFile(SMsgBuf* pMsgBuf, SParseContext* pParseCxt, SParseFi
taosMemoryFreeClear(pParseFileCtx->pTag);
}

pParseFileCtx->pTag = NULL;
taosArrayClearEx(pParseFileCtx->aTagVals, clearTagValArrayFp);
}

Expand Down

0 comments on commit 0716a64

Please sign in to comment.