{"record":{"id":"1e7ad4c6521967f7","repo":"apache/seatunnel","slug":"the-type-type-is-not-supported","errorCode":null,"errorMessage":"The type <type> is not supported!","messagePattern":"The type <type> is not supported!","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/serialize/SeaTunnelRowSerializer.java","lineNumber":145,"sourceCode":"    @Override\n    public void open() throws IOException {}\n\n    @Override\n    public byte[] serialize(SeaTunnelRow seaTunnelRow) throws IOException {\n\n        if (enableDelete) {\n\n            List<Object> newFields = new ArrayList<>(Arrays.asList(seaTunnelRow.getFields()));\n            newFields.add(parseDeleteSign(seaTunnelRow.getRowKind()));\n            seaTunnelRow = new SeaTunnelRow(newFields.toArray());\n        }\n\n        if (JSON.equals(type)) {\n            return buildJsonString(seaTunnelRow);\n        } else if (CSV.equals(type)) {\n            return buildCSVString(seaTunnelRow);\n        } else {\n            throw new IllegalArgumentException(\"The type \" + type + \" is not supported!\");\n        }\n    }\n\n    @Override\n    public void close() throws IOException {}\n}\n","sourceCodeStart":127,"sourceCodeEnd":152,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/serialize/SeaTunnelRowSerializer.java#L127-L152","documentation":"SeaTunnelRowSerializer.serialize supports only the configured formats `json` and `csv`; any other `format` value in the Doris sink config throws IllegalArgumentException. This guards against typos since the format directly controls stream-load payload encoding.","triggerScenarios":"Setting `format = \"JSON\"` (uppercase), `format = \"parquet\"`, or any misspelled value in the Doris sink options; programmatic construction of the serializer with an invalid type string.","commonSituations":"Config typo or copied config from another connector; case sensitivity confusion (config expects lowercase \"json\"/\"csv\").","solutions":["Set the Doris sink `format` option to exactly `json` or `csv` (lowercase)","Validate the config before running the job","Check connector docs for supported formats"],"exampleFix":"// before\nsink {\n  Doris {\n    format = \"JSON\"\n  }\n}\n// after\nsink {\n  Doris {\n    format = \"json\"\n  }\n}","handlingStrategy":"validation","validationCode":"String format = config.getString(\"format\");\nif (!\"json\".equals(format) && !\"csv\".equals(format)) throw new IllegalArgumentException(\"format must be json or csv\");","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use exactly lowercase \"json\" or \"csv\" in the Doris sink format option","Copy config samples from official docs, not other connectors","Lint connector configs before job submission"],"tags":["config","invalid-enum","doris"],"backgroundTag":"invalid-enum-value","analyzedSha":"cf67b549a7a6c35fa0beb12d83c62892427ea919","analyzedAt":"2026-09-10T21:44:55.265Z","contentChangedAt":"2026-09-10T21:44:55.265Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}