This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new eb867f593a4 branch-2.1: [opt](iceberg) opt the error msg when create
db which already exists #46334 (#46414)
eb867f593a4 is described below
commit eb867f593a4ad05a314d0e3ea640af523dfcd261
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Jan 4 19:05:52 2025 +0800
branch-2.1: [opt](iceberg) opt the error msg when create db which already
exists #46334 (#46414)
Cherry-picked from #46334
Co-authored-by: Mingyu Chen (Rayner) <[email protected]>
---
.../java/org/apache/doris/datasource/iceberg/IcebergMetadataOps.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergMetadataOps.java
b/fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergMetadataOps.java
index cc98b501f38..b5322e292ee 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergMetadataOps.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergMetadataOps.java
@@ -29,6 +29,7 @@ import org.apache.doris.common.ErrorCode;
import org.apache.doris.common.ErrorReport;
import org.apache.doris.common.UserException;
import
org.apache.doris.common.security.authentication.PreExecutionAuthenticator;
+import org.apache.doris.common.util.Util;
import org.apache.doris.datasource.DorisTypeVisitor;
import org.apache.doris.datasource.ExternalCatalog;
import org.apache.doris.datasource.ExternalDatabase;
@@ -123,7 +124,7 @@ public class IcebergMetadataOps implements
ExternalMetadataOps {
});
} catch (Exception e) {
throw new DdlException("Failed to create database: "
- + stmt.getFullDbName() + ", error message is:" +
e.getMessage(), e);
+ + stmt.getFullDbName() + ": " +
Util.getRootCauseMessage(e), e);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]