{"record":{"id":"5c93f782ba87bb51","repo":"apache/seatunnel","slug":"create-table-statement-execute-failed","errorCode":null,"errorMessage":"create table statement execute failed","messagePattern":"create table statement execute 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":420,"sourceCode":"        }\n\n        boolean tableExists = tableExists(tablePath);\n        if (ignoreIfExists && tableExists) {\n            LOG.info(\"table {} is exists, skip create\", tablePath.getFullName());\n            return;\n        }\n\n        if (tableExists) {\n            throw new TableAlreadyExistException(catalogName, tablePath);\n        }\n\n        String stmt =\n                DorisCatalogUtil.getCreateTableStatement(\n                        createTableTemplate, tablePath, table, typeConverter);\n        try (Statement statement = conn.createStatement()) {\n            statement.execute(stmt);\n        } catch (SQLException e) {\n            throw new CatalogException(\"create table statement execute failed\", e);\n        }\n    }\n\n    @Override\n    public void dropTable(TablePath tablePath, boolean ignoreIfNotExists)\n            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 =","sourceCodeStart":402,"sourceCodeEnd":438,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java#L402-L438","documentation":"DorisCatalog.createTable wraps SQLException from executing the generated CREATE TABLE statement into CatalogException('create table statement execute failed'); the DDL reached Doris but was rejected (syntax/template mismatch, invalid keys/distribution/bucket config, permissions, or dropped connection).","triggerScenarios":"Thrown at seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/catalog/DorisCatalog.java:420 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check FE logs/audit for the exact DDL error","Validate the create-table-template (keys, distribution, buckets) against the table data","Ensure the user has CREATE privileges and the DDL matches the Doris version's syntax"],"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"}