{"record":{"id":"f47a623e22bac98a","repo":"apache/seatunnel","slug":"the-timestamp-column-type-timestamp-is-out-f47a62","errorCode":null,"errorMessage":"The timestamp column {} type timestamp({}) is out of range, which exceeds the maximum scale of {}, it will be converted to timestamp({})","messagePattern":"The timestamp column (.+?) type timestamp\\((.+?)\\) is out of range, which exceeds the maximum scale of (.+?), it will be converted to timestamp\\((.+?)\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/dm/DmdbTypeConverter.java","lineNumber":481,"sourceCode":"                                        + \"it will be converted to time({})\",\n                                column.getName(),\n                                column.getScale(),\n                                MAX_SCALE,\n                                timeScale);\n                    }\n                    builder.columnType(String.format(\"%s(%s)\", DM_TIME, timeScale));\n                    builder.scale(timeScale);\n                } else {\n                    builder.columnType(DM_TIME);\n                }\n                break;\n            case TIMESTAMP:\n                builder.dataType(DM_TIMESTAMP);\n                if (column.getScale() != null && column.getScale() > 0) {\n                    Integer timestampScale = column.getScale();\n                    if (timestampScale > MAX_TIMESTAMP_SCALE) {\n                        timestampScale = MAX_TIMESTAMP_SCALE;\n                        log.warn(\n                                \"The timestamp column {} type timestamp({}) is out of range, \"\n                                        + \"which exceeds the maximum scale of {}, \"\n                                        + \"it will be converted to timestamp({})\",\n                                column.getName(),\n                                column.getScale(),\n                                MAX_TIMESTAMP_SCALE,\n                                timestampScale);\n                    }\n                    builder.columnType(String.format(\"%s(%s)\", DM_TIMESTAMP, timestampScale));\n                    builder.scale(timestampScale);\n                } else {\n                    builder.columnType(DM_TIMESTAMP);\n                }\n                break;\n            case TIMESTAMP_TZ:\n                builder.dataType(DM_DATETIME_WITH_TIME_ZONE);\n                if (column.getScale() != null && column.getScale() > 0) {\n                    Integer timestampTzScale = column.getScale();","sourceCodeStart":463,"sourceCodeEnd":499,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/dm/DmdbTypeConverter.java#L463-L499","documentation":"A log warning in DmdbTypeConverter.reconvert for TIMESTAMP columns: the fractional-second scale exceeds MAX_TIMESTAMP_SCALE, so the converter clamps it to the maximum and builds a DM TIMESTAMP with reduced sub-second precision.","triggerScenarios":"reconvert() on a TimestampType column with scale != null && scale > MAX_TIMESTAMP_SCALE (e.g. TIMESTAMP(9) from nanosecond-precision sources).","commonSituations":"Replicating MySQL/Postgres TIMESTAMP(6) or higher into Dameng; losing nanosecond/microsecond precision in the target schema.","solutions":["Set the source timestamp scale within Dameng's MAX_TIMESTAMP_SCALE","Accept the clamped timestamp(x) precision","Pre-create the DM column type manually and skip auto conversion","Truncate fractional seconds in a transform before writing"],"exampleFix":"// before\nTIMESTAMP(9)\n// after\nTIMESTAMP(6) -- clamped to MAX_TIMESTAMP_SCALE","handlingStrategy":"validation","validationCode":"if (column.getScale() != null && column.getScale() > MAX_TIMESTAMP_SCALE) {\n    // truncate to supported scale before sync\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use microsecond (6) or millisecond (3) precision timestamps when targeting Dameng","Compare source and target timestamp precision after initial sync"],"tags":["jdbc","dameng","timestamp","precision"],"backgroundTag":"value-out-of-range","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"}