{"record":{"id":"fe96d4e0fb8fca20","repo":"apache/seatunnel","slug":"unsupported-data-type-fe96d4","errorCode":"UNSUPPORTED_DATA_TYPE","errorMessage":"Unsupported this data type","messagePattern":"Unsupported this data type","errorType":"error_code","errorClass":"OpenMldbConnectorException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-openmldb/src/main/java/org/apache/seatunnel/connectors/seatunnel/openmldb/source/OpenMldbSourceReader.java","lineNumber":114,"sourceCode":"                return resultSet.getInt(index);\n            case SMALLINT:\n                return resultSet.getShort(index);\n            case BIGINT:\n                return resultSet.getLong(index);\n            case FLOAT:\n                return resultSet.getFloat(index);\n            case DOUBLE:\n                return resultSet.getDouble(index);\n            case STRING:\n                return resultSet.getString(index);\n            case DATE:\n                Date date = resultSet.getDate(index);\n                return date.toLocalDate();\n            case TIMESTAMP:\n                Timestamp timestamp = resultSet.getTimestamp(index);\n                return timestamp.toLocalDateTime();\n            default:\n                throw new OpenMldbConnectorException(\n                        CommonErrorCodeDeprecated.UNSUPPORTED_DATA_TYPE,\n                        \"Unsupported this data type\");\n        }\n    }\n}\n","sourceCodeStart":96,"sourceCodeEnd":120,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-openmldb/src/main/java/org/apache/seatunnel/connectors/seatunnel/openmldb/source/OpenMldbSourceReader.java#L96-L120","documentation":"Thrown by OpenMldbSourceReader.getObject when converting a JDBC result-set value whose SeaTunnel SeaTunnelDataType is not among the handled cases (string/boolean/tinyint/smallint/int/bigint/float/double/date/timestamp). The reader cannot materialize the row, so it raises UNSUPPORTED_DATA_TYPE during pollNext.","triggerScenarios":"pollNext iterates result set columns and getObject encounters a column type that fell through the switch default — typically a type that was somehow allowed at schema conversion time but has no read-side conversion (e.g. BYTES/DECIMAL/BINARY).","commonSituations":"Table schema changed between planning and read time, source SQL selecting binary/decimal columns, or schema/type mismatch between the connector's catalog conversion and the actual result set metadata.","solutions":["Exclude or CAST the offending column in the source SQL to a supported type.","Check that the table schema did not change since job startup; restart with the updated schema.","Add a read-side case for the type in OpenMldbSourceReader.getObject if you maintain the connector.","File/verify a SeaTunnel issue for the missing type mapping in the OpenMldb connector."],"exampleFix":"// before\nSELECT id, payload FROM db1.table1  -- payload is BINARY\n// after\nSELECT id, CAST(payload AS STRING) AS payload FROM db1.table1","handlingStrategy":"validation","validationCode":"// Before reading, compare result-set metadata types against the supported set:\n// ResultSetMetaData md = rs.getMetaData();\n// for (int i = 1; i <= md.getColumnCount(); i++) check md.getColumnType(i) is supported.","typeGuard":null,"tryCatchPattern":"try {\n    row = reader.pollNext();\n} catch (OpenMldbConnectorException e) {\n    // check message \"Unsupported this data type\"; re-plan with CASTed columns\n    throw e;\n}","preventionTips":["CAST unsupported columns to supported types in the SELECT statement.","Avoid schema changes on source tables while jobs are running.","Restart jobs after any table schema evolution so schema and reader stay in sync."],"tags":["openmldb","data-type","type-mapping","unsupported-type"],"backgroundTag":"unsupported-dtype","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"}