From c5d785331ad0e3908d347fbf40fbaa2d0a82cbc0 Mon Sep 17 00:00:00 2001 From: yangtao555 Date: Thu, 30 Apr 2026 22:02:23 +0800 Subject: [PATCH] [fix](insert) Avoid formatting generated insert errors --- .../trees/plans/commands/insert/AbstractInsertExecutor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/AbstractInsertExecutor.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/AbstractInsertExecutor.java index 262b10a25c4dee..b8e7ef078ad5a1 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/AbstractInsertExecutor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/AbstractInsertExecutor.java @@ -201,8 +201,8 @@ protected final void execImpl(StmtExecutor executor) throws Exception { coordinator.cancel(new Status(TStatusCode.CANCELLED, "insert timeout")); if (notTimeout) { errMsg = coordinator.getExecStatus().getErrorMsg(); - ErrorReport.reportDdlException("there exists unhealthy backend. " - + errMsg, ErrorCode.ERR_FAILED_WHEN_INSERT); + ErrorReport.reportDdlException("%s", ErrorCode.ERR_FAILED_WHEN_INSERT, + "there exists unhealthy backend. " + errMsg); } else { ErrorReport.reportDdlException(ErrorCode.ERR_EXECUTE_TIMEOUT); }