KwongHing opened a new issue, #17979: URL: https://github.com/apache/dolphinscheduler/issues/17979
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened Workflow executions fail with a data truncation error because `t_ds_serial_command.workflow_definition_code` is defined as INT(11), but `t_ds_workflow_definition.code` is BIGINT(20). Large workflow definition codes exceed the INT range. 工作流执行失败并报数据截断错误,因为 `t_ds_serial_command.workflow_definition_code` 定义为 INT(11), 而 `t_ds_workflow_definition.code` 为 BIGINT(20)。较大的工作流定义编码超出了 INT 范围。 ### What you expected to happen Both columns should use the same type (BIGINT) so workflow runs do not fail due to type overflow. 两个字段应使用一致类型(BIGINT),避免因类型溢出导致工作流运行失败。 ### How to reproduce Backfill workflow failed: Backfill workflow failed: DataIntegrityViolationException: ### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'workflow_definition_code' at row 1 ### The error may exist in org/apache/dolphinscheduler/dao/mapper/SerialCommandMapper.java (best guess) ### The error may involve org.apache.dolphinscheduler.dao.mapper.SerialCommandMapper.insert-Inline ### The error occurred while setting parameters ### SQL: INSERT INTO t_ds_serial_command ( workflow_instance_id, workflow_definition_code, workflow_definition_version, command, state, create_time, update_time ) VALUES ( ?, ?, ?, ?, ?, ?, ? ) ### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'workflow_definition_code' at row 1 ; Data truncation: Out of range value for column 'workflow_definition_code' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncat ion: Data truncation: Out of range value for column 'workflow_definition_code' at row 1 ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
