[Chore](Job)Fix the wrong log when the export job reads fields and add more clear log information (#21490)

* [Chore](Job)Fix the wrong log when the export job reads fields and add more clear log information

* add OriginStatement .toString method
This commit is contained in:
Calvin Kirs
2023-07-09 17:06:38 +08:00
committed by GitHub
parent 779b675e9d
commit d9974e6337
2 changed files with 9 additions and 1 deletions

View File

@ -733,7 +733,7 @@ public class ExportJob implements Writable {
stmt = (ExportStmt) SqlParserUtils.getStmt(parser, origStmt.idx);
this.whereExpr = stmt.getWhereExpr();
} catch (Exception e) {
throw new IOException("error happens when parsing create routine load stmt: " + origStmt, e);
throw new IOException("error happens when parsing export stmt: " + origStmt, e);
}
}

View File

@ -55,4 +55,12 @@ public class OriginStatement implements Writable {
String json = GsonUtils.GSON.toJson(this);
Text.writeString(out, json);
}
@Override
public String toString() {
return "OriginStatement{"
+ "originStmt='" + originStmt + '\''
+ ", idx=" + idx
+ '}';
}
}