{"record":{"id":"26c9156a040c7af6","repo":"apache/seatunnel","slug":"create-database-s-failed","errorCode":null,"errorMessage":"create database [%s] failed","messagePattern":"create database \\[(.+?)\\] failed","errorType":"exception","errorClass":"CatalogException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java","lineNumber":444,"sourceCode":"            throws TableNotExistException, CatalogException {\n        String query = DorisCatalogUtil.getDropTableQuery(tablePath, ignoreIfNotExists);\n        try (Statement stmt = conn.createStatement()) {\n            stmt.execute(query);\n        } catch (SQLException e) {\n            throw new CatalogException(e);\n        }\n    }\n\n    @Override\n    public void createDatabase(TablePath tablePath, boolean ignoreIfExists)\n            throws DatabaseAlreadyExistException, CatalogException {\n        String query =\n                DorisCatalogUtil.getCreateDatabaseQuery(\n                        tablePath.getDatabaseName(), ignoreIfExists);\n        try (Statement stmt = conn.createStatement()) {\n            stmt.execute(query);\n        } catch (SQLException e) {\n            throw new CatalogException(\n                    String.format(\"create database [%s] failed\", tablePath.getDatabaseName()), e);\n        }\n    }\n\n    @Override\n    public void dropDatabase(TablePath tablePath, boolean ignoreIfNotExists)\n            throws DatabaseNotExistException, CatalogException {\n        String query =\n                DorisCatalogUtil.getDropDatabaseQuery(\n                        tablePath.getDatabaseName(), ignoreIfNotExists);\n        try (Statement stmt = conn.createStatement()) {\n            stmt.execute(query);\n        } catch (SQLException e) {\n            throw new CatalogException(\n                    String.format(\"drop database [%s] failed\", tablePath.getDatabaseName()), e);\n        }\n    }\n","sourceCodeStart":426,"sourceCodeEnd":462,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java#L426-L462","documentation":"Raised by DorisCatalog.createDatabase when the JDBC statement executing the CREATE DATABASE DDL against the Doris FE fails with a SQLException. It wraps the underlying SQL failure and names the database that could not be created.","triggerScenarios":"Thrown at seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java:444 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the Doris FE JDBC URL, credentials, and that the FE is reachable","Check for an existing database with the same name and set ignoreIfExists or drop it first","Inspect the wrapped SQLException for the real Doris error (privileges, syntax, resource limits)"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cf67b549a7a6c35fa0beb12d83c62892427ea919","analyzedAt":"2026-09-10T21:44:55.265Z","contentChangedAt":"2026-09-10T21:44:55.265Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}