diff --git a/src/client/src/tscParseInsert.c b/src/client/src/tscParseInsert.c index ecde02355a7d64bf08fed33fe5d339455325fb75..8c9497c53006286b6cc82e02a2a6181881927c8d 100644 --- a/src/client/src/tscParseInsert.c +++ b/src/client/src/tscParseInsert.c @@ -1007,10 +1007,12 @@ int doParserInsertSql(SSqlObj *pSql, char *str) { } void *fp = pSql->fp; + ptrdiff_t pos = pSql->asyncTblPos - pSql->sqlstr; + if ((code = tscParseSqlForCreateTableOnDemand(&str, pSql)) != TSDB_CODE_SUCCESS) { if (fp != NULL) { if (TSDB_CODE_ACTION_IN_PROGRESS == code) { - tscTrace("async insert and waiting to get meter meta, then continue parse sql: %s", pSql->asyncTblPos); + tscTrace("async insert and waiting to get meter meta, then continue parse sql from offset: %" PRId64, pos); return code; } tscTrace("async insert parse error, code:%d, %s", code, tsError[code]);