jweicai opened a new issue, #3490:
URL: https://github.com/apache/incubator-streampark/issues/3490

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### Java Version
   
   _No response_
   
   ### Scala Version
   
   2.12.x
   
   ### StreamPark Version
   
   2.1.2
   
   ### Flink Version
   
   1.17.1
   
   ### deploy mode
   
   None
   
   ### What happened
   
   When creating a sparksql task, app_name can be a very long string. However, 
when you copy a task and have a very long app_name, an error will be reported, 
and the error level is relatively high. This should not be a reasonable 
operation.
   
   ### Error Exception
   
   ```log
   internal server error: ### Error updating database. Cause: 
com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too 
long for column 'cluster_id' at row 1 ### The error may exist in 
org/apache/streampark/console/core/mapper/ApplicationMapper.java (best guess) 
### The error may involve 
org.apache.streampark.console.core.mapper.ApplicationMapper.insert-Inline ### 
The error occurred while setting parameters ### SQL: INSERT INTO t_flink_app ( 
team_id, job_type, user_id, job_name, version_id, cluster_id, flink_image, 
k8s_namespace, state, `release`, restart_size, option_state, alert_id, args, 
options, hot_params, resolve_order, execution_mode, dynamic_properties, 
app_type, tracking, cp_max_failure_interval, cp_failure_rate_interval, 
cp_failure_action, description, create_time, k8s_hadoop_integration, tags ) 
VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ? ) ### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: 
Data tru
 ncation: Data too long for column 'cluster_id' at row 1 ; Data truncation: 
Data too long for column 'cluster_id' at row 1; nested exception is 
com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too 
long for column 'cluster_id' at row 1
   ```
   
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!(您是否要贡献这个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