{"record":{"id":"4ccccc7eba19026c","repo":"apache/seatunnel","slug":"common-17-4ccccc","errorCode":"COMMON-17","errorMessage":"'<identifier>' unsupported convert type '<dataType>' of '<field>' to SeaTunnel data type.","messagePattern":"'<identifier>' unsupported convert type '<dataType>' of '<field>' to SeaTunnel data type\\.","errorType":"error_code","errorClass":"SeaTunnelRuntimeException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/datatype/AbstractDorisTypeConverter.java","lineNumber":196,"sourceCode":"                    builder.columnLength(typeDefine.getLength());\n                }\n                builder.dataType(BasicType.STRING_TYPE);\n                break;\n            case DORIS_LARGEINT:\n                DecimalType decimalType;\n                decimalType = new DecimalType(20, 0);\n                builder.dataType(decimalType);\n                builder.columnLength(20L);\n                builder.scale(0);\n                break;\n            case DORIS_STRING:\n            case DORIS_JSON:\n            case DORIS_VARIANT:\n                builder.dataType(BasicType.STRING_TYPE);\n                builder.columnLength(MAX_STRING_LENGTH);\n                break;\n            default:\n                throw CommonError.convertToSeaTunnelTypeError(\n                        IDENTIFIER, dorisColumnType, typeDefine.getName());\n        }\n    }\n\n    protected void sampleReconvertString(\n            Column column, BasicTypeDefine.BasicTypeDefineBuilder builder) {\n        if (column.getColumnLength() == null || column.getColumnLength() <= 0) {\n            builder.columnType(DORIS_STRING);\n            builder.dataType(DORIS_STRING);\n            return;\n        }\n\n        if (column.getColumnLength() < POWER_2_8) {\n            if (column.getSourceType() != null\n                    && column.getSourceType().toUpperCase(Locale.ROOT).startsWith(DORIS_VARCHAR)) {\n                builder.columnType(\n                        String.format(\"%s(%s)\", DORIS_VARCHAR, column.getColumnLength()));\n                builder.dataType(DORIS_VARCHAR);","sourceCodeStart":178,"sourceCodeEnd":214,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/datatype/AbstractDorisTypeConverter.java#L178-L214","documentation":"The Doris type converter could not map a Doris column type to a SeaTunnel data type. The sampled column type falls through all supported cases in the converter's switch, so conversion is refused with the connector identifier, the Doris type, and the field name.","triggerScenarios":"sampleTypeConverter encounters a Doris column type not in its supported set (e.g. an exotic or newer Doris type like a unsupported complex type) during schema reading/table discovery.","commonSituations":"Reading a Doris table created with a type added in newer Doris versions than the connector supports; using AGG_STATE or custom types; copy-pasting tables between clusters with different Doris versions.","solutions":["Change the Doris column type to one supported by the converter (e.g. STRING, INT, DATETIMEV2)","Cast the column in the source query/view to a supported type","Upgrade SeaTunnel to a version whose Doris converter supports the type"],"exampleFix":"// before: Doris column type AGG_STATE unsupported\n// after: alter table to a supported type\nALTER TABLE t MODIFY COLUMN agg_col STRING;","handlingStrategy":"validation","validationCode":"Set<String> supported = Set.of(\"BOOLEAN\",\"TINYINT\",\"SMALLINT\",\"INT\",\"BIGINT\",\"LARGEINT\",\"FLOAT\",\"DOUBLE\",\"DECIMAL\",\"DATE\",\"DATETIMEV2\",\"CHAR\",\"VARCHAR\",\"STRING\",\"JSON\",\"VARIANT\",\"ARRAY\"); if (!supported.contains(dorisType.toUpperCase())) throw new IllegalStateException(\"unsupported Doris type: \" + dorisType);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pre-check Doris table DDL for types outside the converter's supported set","Prefer STRING casts in views for exotic Doris types","Pin Doris and SeaTunnel versions known compatible"],"tags":["doris","type-conversion","schema"],"backgroundTag":"unsupported-dtype","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"}