[Fix-5540][JSON Split] Fix some new tables and fields are missing in the sql upgrade script#5611
[Fix-5540][JSON Split] Fix some new tables and fields are missing in the sql upgrade script#5611wen-hemin merged 20 commits intoapache:devfrom echohlne:sql_scheme_upgrade
Conversation
|
@JinyLeeChina please take a look.Thx |
Codecov Report
@@ Coverage Diff @@
## dev #5611 +/- ##
============================================
+ Coverage 45.16% 45.35% +0.19%
- Complexity 3657 3675 +18
============================================
Files 607 607
Lines 24758 24780 +22
Branches 2798 2801 +3
============================================
+ Hits 11181 11240 +59
+ Misses 12510 12468 -42
- Partials 1067 1072 +5
Continue to review full report at Codecov.
|
| DROP PROCEDURE uc_dolphin_T_t_ds_process_definition_A_add_code; | ||
|
|
||
| -- uc_dolphin_T_t_ds_process_definition_A_add_project_code | ||
| drop PROCEDURE if EXISTS uc_dolphin_T_t_ds_process_definition_A_add_project_code; |
There was a problem hiding this comment.
I think there should be remove project_id from t_ds_process_definition
| THEN | ||
| ALTER TABLE t_ds_process_definition ADD `code` bigint(20) NOT NULL COMMENT 'encoding'; | ||
| END IF; | ||
| END; |
There was a problem hiding this comment.
Please add warning_group_id to t_ds_process_definition
There was a problem hiding this comment.
@JinyLeeChina
warning_group_id has been added before.| DROP PROCEDURE uc_dolphin_T_t_ds_project_instance_A_add_code; | ||
|
|
||
| -- uc_dolphin_T_t_ds_process_definition_A_add_code | ||
| drop PROCEDURE if EXISTS uc_dolphin_T_t_ds_process_definition_A_add_code; |
There was a problem hiding this comment.
Please update UNIQUE KEY of t_ds_process_definition
There was a problem hiding this comment.
thanks @JinyLeeChina , solved it.
|
Thanks for your contribution, pls fix review comment |
wen-hemin
left a comment
There was a problem hiding this comment.
Thank you for your contribution, please check
|
@JinyLeeChina @wen-hemin, thanks for your review, I have update the code, please review again, thanks!🤪 |
|
Hi:
|
|
+1 |
|
Hi:
|
1 similar comment
|
Hi:
|
|
Kudos, SonarCloud Quality Gate passed! |
Purpose of the pull request
The PRs associated with issue-4417 introduced a large number of database schema changes, but these new features were not represented in the corresponding SQL files in the Dev branch, resulting in some runtime exceptions in the dev code environment,
Fix #5540, Fix ##5610
reproduce step:
org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinSchedulerBrief change log
According to the
sql\dolphinscheduler_mysql.sqlandsql\dolphinscheduler_postgre.sql, I tried to add the newly added tables and fields in the upgrade script.Verify this pull request
what's more , The database schema changes very frequently, and I think the related unit tests may not cover all aspects. When I have time, may be I can explore whether there is a better way to detect the SQL problem, is anyone has good ideas ?