-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[fix-8929][DAO]Description Failed to upload the file because the full name was too long #9020
Conversation
@@ -757,7 +757,7 @@ CREATE TABLE `t_ds_resources` ( | |||
`create_time` datetime DEFAULT NULL COMMENT 'create time', | |||
`update_time` datetime DEFAULT NULL COMMENT 'update time', | |||
`pid` int(11) DEFAULT NULL, | |||
`full_name` varchar(64) DEFAULT NULL, | |||
`full_name` varchar(128) DEFAULT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add it to postgres and upgrade sql.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has been updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to create a folder 2.0.6_schema
like dolphinscheduler-dao/src/main/resources/sql/upgrade/2.0.4_schema
. And put ALTER TABLE t_ds_resources MODIFY COLUMN NAME VARCHAR(128);
in mysq/dolphinscheduler_ddl.sql
. Same as postgresql
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been modified, please review it again
*/ | ||
|
||
-- uc_dolphin_T_t_ds_resources_R_full_name | ||
delimiter d// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the same style as
Lines 17 to 41 in b9448c3
delimiter d// | |
CREATE OR REPLACE FUNCTION public.dolphin_update_metadata( | |
) | |
RETURNS character varying | |
LANGUAGE 'plpgsql' | |
COST 100 | |
VOLATILE PARALLEL UNSAFE | |
AS $BODY$ | |
DECLARE | |
v_schema varchar; | |
BEGIN | |
---get schema name | |
v_schema =current_schema(); | |
EXECUTE 'ALTER TABLE ' || quote_ident(v_schema) ||'.t_ds_process_instance ADD COLUMN IF NOT EXISTS "restart_time" timestamp DEFAULT NULL'; | |
return 'Success!'; | |
exception when others then | |
---Raise EXCEPTION '(%)',SQLERRM; | |
return SQLERRM; | |
END; | |
$BODY$; | |
select dolphin_update_metadata(); | |
d// |
For continuous maintenance by others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please review it again
Codecov Report
@@ Coverage Diff @@
## dev #9020 +/- ##
============================================
- Coverage 40.28% 40.27% -0.01%
+ Complexity 4366 4365 -1
============================================
Files 808 808
Lines 32569 32569
Branches 3650 3650
============================================
- Hits 13119 13118 -1
Misses 18220 18220
- Partials 1230 1231 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
Please take a look at it. @zhongjiajie @caishunfeng
I had approve to run CI test. |
@Hou-Shuaishuai Hi, It seems there are some errors in ci. Can you merge the latest dev branch to this pr? And we will rerun it. |
@SbloodyS Have submitted |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @Hou-Shuaishuai Thanks for your contribution, and next time please add some detail description of this pr. |
… name was too long (apache#9020) * [fix-8929][DAO]Description Failed to upload the file because the full name was too long * [DS-apache#8929][fix]Description Failed to upload the file because the full name was too long * [DS-apache#8929][fix]Description Failed to upload the file because the full name was too long * [DS-apache#8929][fix]Description Failed to upload the file because the full name was too long Co-authored-by: houshuai <houshuai@jiguang.cn>
* issue 8645 (#8811) Co-authored-by: 北笙 <“zhanqian@cai-inc.com”> Co-authored-by: zhanqian <zhanqian@cai-inc.com> * [fix-8929][DAO]Description Failed to upload the file because the full name was too long (#9020) * [fix-8929][DAO]Description Failed to upload the file because the full name was too long * [DS-#8929][fix]Description Failed to upload the file because the full name was too long * [DS-#8929][fix]Description Failed to upload the file because the full name was too long * [DS-#8929][fix]Description Failed to upload the file because the full name was too long Co-authored-by: houshuai <houshuai@jiguang.cn> * [BUG][ALERT-SERVER]validate script before alert script (#9834) * validate script before alert script * fix validate script before alert script * pick 8811/9020/9834 Co-authored-by: zhanqian <360400325@qq.com> Co-authored-by: 北笙 <“zhanqian@cai-inc.com”> Co-authored-by: zhanqian <zhanqian@cai-inc.com> Co-authored-by: shuai hou <120306274@qq.com> Co-authored-by: houshuai <houshuai@jiguang.cn> Co-authored-by: Tq <tianqitobethefirst@gmail.com> Co-authored-by: JinyLeeChina <jiny.li@foxmail.com>
* issue 8645 (#8811) Co-authored-by: 北笙 <“zhanqian@cai-inc.com”> Co-authored-by: zhanqian <zhanqian@cai-inc.com> * [fix-8929][DAO]Description Failed to upload the file because the full name was too long (#9020) * [fix-8929][DAO]Description Failed to upload the file because the full name was too long * [DS-#8929][fix]Description Failed to upload the file because the full name was too long * [DS-#8929][fix]Description Failed to upload the file because the full name was too long * [DS-#8929][fix]Description Failed to upload the file because the full name was too long Co-authored-by: houshuai <houshuai@jiguang.cn> * [BUG][ALERT-SERVER]validate script before alert script (#9834) * validate script before alert script * fix validate script before alert script * pick 8811/9020/9834 * fix ut * fix pick error Co-authored-by: zhanqian <360400325@qq.com> Co-authored-by: 北笙 <“zhanqian@cai-inc.com”> Co-authored-by: zhanqian <zhanqian@cai-inc.com> Co-authored-by: shuai hou <120306274@qq.com> Co-authored-by: houshuai <houshuai@jiguang.cn> Co-authored-by: Tq <tianqitobethefirst@gmail.com> Co-authored-by: JinyLeeChina <jiny.li@foxmail.com>
* issue 8645 (#8811) Co-authored-by: 北笙 <“zhanqian@cai-inc.com”> Co-authored-by: zhanqian <zhanqian@cai-inc.com> * [fix-8929][DAO]Description Failed to upload the file because the full name was too long (#9020) * [fix-8929][DAO]Description Failed to upload the file because the full name was too long * [DS-#8929][fix]Description Failed to upload the file because the full name was too long * [DS-#8929][fix]Description Failed to upload the file because the full name was too long * [DS-#8929][fix]Description Failed to upload the file because the full name was too long Co-authored-by: houshuai <houshuai@jiguang.cn> * [BUG][ALERT-SERVER]validate script before alert script (#9834) * validate script before alert script * fix validate script before alert script * pick 8811/9020/9834 * fix ut * fix pick error * fix 10762 Co-authored-by: zhanqian <360400325@qq.com> Co-authored-by: 北笙 <“zhanqian@cai-inc.com”> Co-authored-by: zhanqian <zhanqian@cai-inc.com> Co-authored-by: shuai hou <120306274@qq.com> Co-authored-by: houshuai <houshuai@jiguang.cn> Co-authored-by: Tq <tianqitobethefirst@gmail.com> Co-authored-by: JinyLeeChina <jiny.li@foxmail.com>
No description provided.