This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 061ddbe601b branch-3.0: [opt](iceberg) opt the error msg when create
db which already exists #46334 (#46413)
061ddbe601b is described below
commit 061ddbe601b71402c2e3fe1ea636b1e6e0559262
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Jan 4 19:05:23 2025 +0800
branch-3.0: [opt](iceberg) opt the error msg when create db which already
exists #46334 (#46413)
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 da61b2ac1ab..bf07284a6d8 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;
@@ -125,7 +126,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]