zhongjiajie commented on code in PR #14406:
URL: 
https://github.com/apache/dolphinscheduler/pull/14406#discussion_r1243084373


##########
dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql:
##########
@@ -1370,6 +1370,12 @@ VALUES(28, 'enum_list', 'input', '$t(enum_list)', NULL, 
NULL, 'Please enter enum
 INSERT INTO `t_ds_dq_rule_input_entry`
 (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, 
`option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, 
`is_emit`, `is_validate`, `create_time`, `update_time`)
 VALUES(29, 'begin_time', 'input', '$t(begin_time)', NULL, NULL, 'Please enter 
begin time', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.0', '2021-03-03 
11:31:24.0');
+INSERT INTO `t_ds_dq_rule_input_entry`
+(`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, 
`option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, 
`is_emit`, `is_validate`, `create_time`, `update_time`)
+VALUES(30, 'src_database', 'select', '$t(src_database)', NULL, NULL, 'Please 
select source database', 0, 0, 0, 1, 1, 1, 1, '2021-03-03 11:31:24.0', 
'2021-03-03 11:31:24.0');
+INSERT INTO `t_ds_dq_rule_input_entry`
+(`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, 
`option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, 
`is_emit`, `is_validate`, `create_time`, `update_time`)
+VALUES(31, 'target_database', 'select', '$t(target_database)', NULL, NULL, 
'Please select target database', 0, 0, 0, 1, 1, 1, 1, '2021-03-03 11:31:24.0', 
'2021-03-03 11:31:24.0');

Review Comment:
   Can we avoid adding new input entry, but reuse the `target_datasource_id` or 
`src_datasource_id` to connect the different datasource?



##########
dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql:
##########
@@ -1370,6 +1370,12 @@ VALUES(28, 'enum_list', 'input', '$t(enum_list)', NULL, 
NULL, 'Please enter enum
 INSERT INTO `t_ds_dq_rule_input_entry`
 (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, 
`option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, 
`is_emit`, `is_validate`, `create_time`, `update_time`)
 VALUES(29, 'begin_time', 'input', '$t(begin_time)', NULL, NULL, 'Please enter 
begin time', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.0', '2021-03-03 
11:31:24.0');
+INSERT INTO `t_ds_dq_rule_input_entry`
+(`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, 
`option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, 
`is_emit`, `is_validate`, `create_time`, `update_time`)
+VALUES(30, 'src_database', 'select', '$t(src_database)', NULL, NULL, 'Please 
select source database', 0, 0, 0, 1, 1, 1, 1, '2021-03-03 11:31:24.0', 
'2021-03-03 11:31:24.0');
+INSERT INTO `t_ds_dq_rule_input_entry`
+(`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, 
`option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, 
`is_emit`, `is_validate`, `create_time`, `update_time`)
+VALUES(31, 'target_database', 'select', '$t(target_database)', NULL, NULL, 
'Please select target database', 0, 0, 0, 1, 1, 1, 1, '2021-03-03 11:31:24.0', 
'2021-03-03 11:31:24.0');

Review Comment:
   I think we already have many input entry here



##########
dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql:
##########
@@ -1370,6 +1370,12 @@ VALUES(28, 'enum_list', 'input', '$t(enum_list)', NULL, 
NULL, 'Please enter enum
 INSERT INTO `t_ds_dq_rule_input_entry`
 (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, 
`option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, 
`is_emit`, `is_validate`, `create_time`, `update_time`)
 VALUES(29, 'begin_time', 'input', '$t(begin_time)', NULL, NULL, 'Please enter 
begin time', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.0', '2021-03-03 
11:31:24.0');
+INSERT INTO `t_ds_dq_rule_input_entry`
+(`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, 
`option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, 
`is_emit`, `is_validate`, `create_time`, `update_time`)
+VALUES(30, 'src_database', 'select', '$t(src_database)', NULL, NULL, 'Please 
select source database', 0, 0, 0, 1, 1, 1, 1, '2021-03-03 11:31:24.0', 
'2021-03-03 11:31:24.0');
+INSERT INTO `t_ds_dq_rule_input_entry`
+(`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, 
`option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, 
`is_emit`, `is_validate`, `create_time`, `update_time`)
+VALUES(31, 'target_database', 'select', '$t(target_database)', NULL, NULL, 
'Please select target database', 0, 0, 0, 1, 1, 1, 1, '2021-03-03 11:31:24.0', 
'2021-03-03 11:31:24.0');

Review Comment:
   we can return a list of database available for current datasource, and let 
user select one of them, WDYT?



-- 
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