dolphinscheduler: [Bug] [UT] UT failed in DAO module

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When I run the UT in TaskInstanceMapperTest, it failed. The process_definition_code is null.

### SQL: INSERT INTO t_ds_process_instance  ( warning_group_id,   timeout,          executor_id,     max_try_times, tenant_id,   command_param, run_times, process_definition_version )  VALUES  ( ?,   ?,          ?,     ?, ?,   ?, ?, ? )
### Cause: java.sql.SQLException: Field 'process_definition_code' doesn't have a default value
; Field 'process_definition_code' doesn't have a default value; nested exception is java.sql.SQLException: Field 'process_definition_code' doesn't have a default value

What you expected to happen

UT execute success.

How to reproduce

Execute TaskInstanceMapperTest.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

@EricPyZhou Can you find this file? image

Oh Yes. I didn’t see it. For some reason, it didn’t pop up in the search result on Github. My bad.

@EricPyZhou Can you find this file? image

@EricPyZhou There miss some ddl sql in upgrade sql file. You can just use dolphinscheduler_mysql.sql to create the latest schema. If you have time, you can create a new issue to fix the ddl sql.