github-actions[bot] commented on issue #17979:
URL: 
https://github.com/apache/dolphinscheduler/issues/17979#issuecomment-3901293100

   ### 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.
   
   Workflow execution failed and a data truncation error was reported because 
`t_ds_serial_command.workflow_definition_code` is defined as INT(11),
   And `t_ds_workflow_definition.code` is BIGINT(20). Larger workflow 
definition encoding exceeds INT range.
   
   ### What you expected to happen
   
   Both columns should use the same type (BIGINT) so workflow runs do not fail 
due to type overflow.
   The two fields should use the same type (BIGINT) to avoid workflow failure 
due to type overflow.
   
   ### 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]

Reply via email to